1--source include/have_rocksdb.inc
2
3#
4# Create tables with partitions and try to generate an error while creating
5# partitions.
6#
7
8CREATE TABLE t1(a INT,b INT,KEY (a)) ENGINE=ROCKSDB PARTITION BY HASH (a) PARTITIONS 3;
9
10SHOW TABLES;
11
12--disable_query_log
13call mtr.add_suppression("Failed to execute action for entry.*");
14--enable_query_log
15
16--error ER_WRONG_TABLE_NAME
17ALTER TABLE t1 ADD PARTITION(PARTITION p3 DATA DIRECTORY='G:/mysqltest/p3Data' INDEX DIRECTORY='H:/mysqltest/p3Index');
18
19DROP TABLE t1;
20