1--source include/have_rocksdb.inc
2
3#
4# Check whether KEY_BLOCK_SIZE 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 KEY_BLOCK_SIZE=8;
17SHOW CREATE TABLE t1;
18
19ALTER TABLE t1 KEY_BLOCK_SIZE=1;
20SHOW CREATE TABLE t1;
21
22DROP TABLE t1;
23
24