44 lines
937 B
Plaintext
44 lines
937 B
Plaintext
--source suite/xengine/include/have_xengine.inc
|
|
|
|
#
|
|
# Standard options in CREATE and ALTER TABLE
|
|
#
|
|
# Note: the test does not check whether the options
|
|
# have any real effect on the table, only
|
|
# that they are accepted
|
|
#
|
|
|
|
--disable_warnings
|
|
DROP TABLE IF EXISTS t1;
|
|
--enable_warnings
|
|
|
|
# Create table with standard options
|
|
|
|
CREATE TABLE t1 (a INT PRIMARY KEY, b CHAR(8)) ENGINE=xengine
|
|
DEFAULT CHARACTER SET = utf8
|
|
COLLATE = utf8_general_ci
|
|
COMMENT = 'standard table options'
|
|
;
|
|
SHOW CREATE TABLE t1;
|
|
|
|
# Alter comment
|
|
|
|
ALTER TABLE t1 COMMENT = 'table altered';
|
|
SHOW CREATE TABLE t1;
|
|
|
|
# Alter ENGINE value
|
|
|
|
ALTER TABLE t1 ENGINE=MEMORY;
|
|
SHOW CREATE TABLE t1;
|
|
ALTER TABLE t1 ENGINE=xengine;
|
|
SHOW CREATE TABLE t1;
|
|
|
|
# Alter character set and collation
|
|
|
|
ALTER TABLE t1 CHARACTER SET = latin1 COLLATE = latin1_swedish_ci;
|
|
SHOW CREATE TABLE t1;
|
|
|
|
DROP TABLE t1;
|
|
|
|
--source suite/xengine/include/check_xengine_log_error.inc
|