1--source include/have_rocksdb.inc 2 3# 4# This test checks some very basic capabilities 5# which will be used in almost every other test, 6# and will not be checked through support* variables. 7# If this test does not pass, there is no point 8# at executing other ones. 9# 10# Minimal requirements: 11# - supported column types: INT, CHAR (default CHAR(8), INT(11)); 12# - column attributes as declared in define_engine.inc ($default_col_opts) 13# (by default empty, which means no additional attributes apart from the type); 14# - table attributes as declared in define_engine.inc ($default_tbl_opts) 15# (by default empty, which means no additional attributes apart from ENGINE); 16# - CREATE TABLE .. (column1 <column options>, column2 <column options>) ENGINE=<storage_engine>; 17# - INSERT INTO TABLE .. VALUES (val1,val2); 18# - DROP TABLE .. 19# - SELECT a,b FROM .. 20# - SHOW CREATE TABLE .. 21# - SHOW COLUMNS IN ... 22# 23 24--disable_warnings 25DROP TABLE IF EXISTS t1; 26--enable_warnings 27 28CREATE TABLE t1 (pk INT PRIMARY KEY DEFAULT '0', a INT(11), b CHAR(8)) ENGINE=rocksdb; 29SHOW CREATE TABLE t1; 30SHOW COLUMNS IN t1; 31INSERT INTO t1 VALUES (1, 1,'a'); 32INSERT INTO t1 (a,b) VALUES (2,'b'); 33--sorted_result 34SELECT a,b FROM t1; 35DROP TABLE t1; 36 37