Debian Codegraph @

mysql-test/suite/innodb/t/innodb_bug54044.test

raw
1 # This is the test for bug #54044. Special handle MYSQL_TYPE_NULL type
2 # during create table, so it will not trigger assertion failure.
3
4
5 # This 'create table' operation no longer uses the NULL datatype.
6
7 CREATE TEMPORARY TABLE table_54044 ENGINE = INNODB
8 AS SELECT IF(NULL IS NOT NULL, NULL, NULL);
9 SHOW CREATE TABLE table_54044;
10 DROP TABLE table_54044;
11
12 # This 'create table' should pass since it uses a Field_string of size 0.
13
14 CREATE TABLE tmp ENGINE = INNODB
15 AS SELECT COALESCE(NULL, NULL, NULL), GREATEST(NULL, NULL), NULL;
16 SHOW CREATE TABLE tmp;
17 DROP TABLE tmp;