1--source include/have_rocksdb.inc
2
3#
4# Check whether PACK KEYS option
5# is supported in CREATE and ALTER TABLE
6#
7# Note: the test does not check whether the option
8#       has any real effect on the table, only
9#       that it's accepted
10#
11
12--disable_warnings
13DROP TABLE IF EXISTS t1;
14--enable_warnings
15
16CREATE TABLE t1 (a INT PRIMARY KEY, b CHAR(8)) ENGINE=rocksdb PACK_KEYS=1;
17SHOW CREATE TABLE t1;
18
19ALTER TABLE t1 PACK_KEYS=0;
20SHOW CREATE TABLE t1;
21
22DROP TABLE t1;
23
24