29 lines
675 B
Plaintext
29 lines
675 B
Plaintext
--source suite/xengine/include/have_xengine.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=xengine;
|
|
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;
|
|
|
|
--source suite/xengine/include/check_xengine_log_error.inc
|