summaryrefslogtreecommitdiff
path: root/mysql-test/suite/engines/funcs/t/tc_column_default_string.test
diff options
context:
space:
mode:
Diffstat (limited to 'mysql-test/suite/engines/funcs/t/tc_column_default_string.test')
-rw-r--r--mysql-test/suite/engines/funcs/t/tc_column_default_string.test44
1 files changed, 44 insertions, 0 deletions
diff --git a/mysql-test/suite/engines/funcs/t/tc_column_default_string.test b/mysql-test/suite/engines/funcs/t/tc_column_default_string.test
new file mode 100644
index 00000000000..f55e2b9462a
--- /dev/null
+++ b/mysql-test/suite/engines/funcs/t/tc_column_default_string.test
@@ -0,0 +1,44 @@
+--disable_warnings
+DROP TABLE IF EXISTS t14;
+--enable_warnings
+CREATE TABLE t14(c1 CHAR(10) NULL DEFAULT 'x');
+SHOW TABLES;
+let $ENGINE=`select variable_value from information_schema.global_variables where variable_name='STORAGE_ENGINE'`;
+--replace_result $ENGINE ENGINE " PAGE_CHECKSUM=0" ""
+SHOW CREATE TABLE t14; DROP TABLE t14; SHOW TABLES;
+CREATE TABLE t14(c1 VARCHAR(10) NULL DEFAULT 'x');
+SHOW TABLES;
+let $ENGINE=`select variable_value from information_schema.global_variables where variable_name='STORAGE_ENGINE'`;
+--replace_result $ENGINE ENGINE " PAGE_CHECKSUM=0" ""
+SHOW CREATE TABLE t14; DROP TABLE t14; SHOW TABLES;
+CREATE TABLE t14(c1 BINARY(10) NULL DEFAULT 'x');
+SHOW TABLES;
+let $ENGINE=`select variable_value from information_schema.global_variables where variable_name='STORAGE_ENGINE'`;
+--replace_result $ENGINE ENGINE " PAGE_CHECKSUM=0" ""
+SHOW CREATE TABLE t14; DROP TABLE t14; SHOW TABLES;
+CREATE TABLE t14(c1 VARBINARY(10) NULL DEFAULT 'x');
+SHOW TABLES;
+let $ENGINE=`select variable_value from information_schema.global_variables where variable_name='STORAGE_ENGINE'`;
+--replace_result $ENGINE ENGINE " PAGE_CHECKSUM=0" ""
+SHOW CREATE TABLE t14; DROP TABLE t14; SHOW TABLES;
+CREATE TABLE t14(c1 CHAR(10) NOT NULL DEFAULT 'x');
+SHOW TABLES;
+let $ENGINE=`select variable_value from information_schema.global_variables where variable_name='STORAGE_ENGINE'`;
+--replace_result $ENGINE ENGINE " PAGE_CHECKSUM=0" ""
+SHOW CREATE TABLE t14; DROP TABLE t14; SHOW TABLES;
+CREATE TABLE t14(c1 VARCHAR(10) NOT NULL DEFAULT 'x');
+SHOW TABLES;
+let $ENGINE=`select variable_value from information_schema.global_variables where variable_name='STORAGE_ENGINE'`;
+--replace_result $ENGINE ENGINE " PAGE_CHECKSUM=0" ""
+SHOW CREATE TABLE t14; DROP TABLE t14; SHOW TABLES;
+CREATE TABLE t14(c1 BINARY(10) NOT NULL DEFAULT 'x');
+SHOW TABLES;
+let $ENGINE=`select variable_value from information_schema.global_variables where variable_name='STORAGE_ENGINE'`;
+--replace_result $ENGINE ENGINE " PAGE_CHECKSUM=0" ""
+SHOW CREATE TABLE t14; DROP TABLE t14; SHOW TABLES;
+CREATE TABLE t14(c1 VARBINARY(10) NOT NULL DEFAULT 'x');
+SHOW TABLES;
+let $ENGINE=`select variable_value from information_schema.global_variables where variable_name='STORAGE_ENGINE'`;
+--replace_result $ENGINE ENGINE " PAGE_CHECKSUM=0" ""
+SHOW CREATE TABLE t14; DROP TABLE t14; SHOW TABLES;
+