mirror of
https://github.com/MariaDB/server.git
synced 2025-02-01 03:21:53 +01:00
4da845ec48
Bug#12532830 - SIGFPE OR ASSERTION (PRECISION <= ((9 * 9) - 8*2)) && (DEC <= 30)
19 lines
666 B
Text
19 lines
666 B
Text
# 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 no longer uses the NULL datatype.
|
|
|
|
CREATE TEMPORARY TABLE table_54044 ENGINE = INNODB
|
|
AS SELECT IF(NULL IS NOT NULL, NULL, NULL);
|
|
SHOW CREATE TABLE table_54044;
|
|
DROP TABLE table_54044;
|
|
|
|
# These 'create table' operations should fail because of
|
|
# using NULL datatype
|
|
|
|
--error ER_CANT_CREATE_TABLE
|
|
CREATE TABLE tmp ENGINE = INNODB AS SELECT COALESCE(NULL, NULL, NULL);
|
|
--error ER_CANT_CREATE_TABLE
|
|
CREATE TABLE tmp ENGINE = INNODB AS SELECT GREATEST(NULL, NULL);
|