1--source include/have_rocksdb.inc 2 3# 4# Check whether DEFAULT column attribute 5# is supported in CREATE and ALTER TABLE. 6# If the attribute is supported at all, it will be covered 7# in more details in col_option_null and col_option_not_null tests. 8# 9 10--disable_warnings 11DROP TABLE IF EXISTS t1; 12--enable_warnings 13 14CREATE TABLE t1 (a INT PRIMARY KEY DEFAULT '0') ENGINE=rocksdb; 15SHOW COLUMNS IN t1; 16 17INSERT INTO t1 (a) VALUES (1); 18SELECT a FROM t1; 19 20ALTER TABLE t1 ADD COLUMN b CHAR(8) DEFAULT ''; 21SHOW COLUMNS IN t1; 22 23INSERT INTO t1 (b) VALUES ('a'); 24SELECT a,b FROM t1 ORDER BY a,b; 25 26DROP TABLE t1; 27 28