2010-06-24 10:49:22 +02:00
|
|
|
# This is the test for bug #54044. Special handle MYSQL_TYPE_NULL type
|
|
|
|
# during create table, so it will not trigger assertion failure.
|
|
|
|
|
2013-07-15 18:01:22 +02:00
|
|
|
--source include/have_innodb.inc
|
2010-06-24 10:49:22 +02:00
|
|
|
|
2011-08-19 09:06:50 +02:00
|
|
|
# This 'create table' operation no longer uses the NULL datatype.
|
|
|
|
|
2010-06-29 09:14:20 +02:00
|
|
|
CREATE TEMPORARY TABLE table_54044 ENGINE = INNODB
|
2010-06-24 10:49:22 +02:00
|
|
|
AS SELECT IF(NULL IS NOT NULL, NULL, NULL);
|
2011-08-19 09:06:50 +02:00
|
|
|
SHOW CREATE TABLE table_54044;
|
2013-07-15 18:01:22 +02:00
|
|
|
DROP TABLE table_54044;
|
|
|
|
|
2016-07-22 04:03:43 +02:00
|
|
|
# This 'create table' should pass since it uses a Field_string of size 0.
|
2011-08-19 09:06:50 +02:00
|
|
|
|
2016-07-22 04:03:43 +02:00
|
|
|
CREATE TABLE tmp ENGINE = INNODB
|
|
|
|
AS SELECT COALESCE(NULL, NULL, NULL), GREATEST(NULL, NULL), NULL;
|
2013-07-15 18:01:22 +02:00
|
|
|
SHOW CREATE TABLE tmp;
|
|
|
|
DROP TABLE tmp;
|