EVOLUTION-MANAGER
Edit File: col_opt_default.test
--source include/have_rocksdb.inc # # Check whether DEFAULT column attribute # is supported in CREATE and ALTER TABLE. # If the attribute is supported at all, it will be covered # in more details in col_option_null and col_option_not_null tests. # --disable_warnings DROP TABLE IF EXISTS t1; --enable_warnings CREATE TABLE t1 (a INT PRIMARY KEY DEFAULT '0') ENGINE=rocksdb; SHOW COLUMNS IN t1; INSERT INTO t1 (a) VALUES (1); SELECT a FROM t1; ALTER TABLE t1 ADD COLUMN b CHAR(8) DEFAULT ''; SHOW COLUMNS IN t1; INSERT INTO t1 (b) VALUES ('a'); SELECT a,b FROM t1 ORDER BY a,b; DROP TABLE t1;