diff options
author | Tor Didriksen <tor.didriksen@oracle.com> | 2011-08-19 09:06:50 +0200 |
---|---|---|
committer | Tor Didriksen <tor.didriksen@oracle.com> | 2011-08-19 09:06:50 +0200 |
commit | af6f0876ade33ad67e4a3f458a88ec21649656e2 (patch) | |
tree | 73cea93f02979761076fafb51153522053e8bf3a /mysql-test/suite/innodb/t/innodb_bug54044.test | |
parent | 0b78d5641248dc8c92a36713bfa9f4958b66648a (diff) | |
download | mariadb-git-af6f0876ade33ad67e4a3f458a88ec21649656e2.tar.gz |
Backport from trunk of:
Bug#12532830 - SIGFPE OR ASSERTION (PRECISION <= ((9 * 9) - 8*2)) && (DEC <= 30)
Diffstat (limited to 'mysql-test/suite/innodb/t/innodb_bug54044.test')
-rw-r--r-- | mysql-test/suite/innodb/t/innodb_bug54044.test | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/mysql-test/suite/innodb/t/innodb_bug54044.test b/mysql-test/suite/innodb/t/innodb_bug54044.test index a6722ed6399..0bbd7da0065 100644 --- a/mysql-test/suite/innodb/t/innodb_bug54044.test +++ b/mysql-test/suite/innodb/t/innodb_bug54044.test @@ -3,9 +3,17 @@ --source include/have_innodb.inc -# This 'create table' operation should fail because of -# using NULL datatype ---error ER_CANT_CREATE_TABLE +# 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); |