1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-29 05:21:33 +03:00

Port fix for "bug #54044 Create temporary tables and using innodb crashes"

to 5.1 plugin codeline.

rb://378, approved by Marko
This commit is contained in:
Jimmy Yang
2010-06-22 19:39:20 -07:00
parent 1ac84a45df
commit 95586f2c83
4 changed files with 41 additions and 2 deletions

View File

@ -0,0 +1,3 @@
CREATE TEMPORARY TABLE TABLE_54044 ENGINE = INNODB
AS SELECT IF(NULL IS NOT NULL, NULL, NULL);
ERROR HY000: Can't create table 'test.TABLE_54044' (errno: -1)

View File

@ -0,0 +1,11 @@
# This is the test for bug #54044. Special handle MYSQL_TYPE_NULL type
# during create table, so it will not trigger assertion failure.
--source include/have_innodb.inc
# This 'create table' operation should fail because of
# using NULL datatype
--error ER_CANT_CREATE_TABLE
CREATE TEMPORARY TABLE TABLE_54044 ENGINE = INNODB
AS SELECT IF(NULL IS NOT NULL, NULL, NULL);