mirror of
https://github.com/MariaDB/server.git
synced 2025-01-19 13:32:33 +01:00
24 lines
958 B
Text
24 lines
958 B
Text
CREATE TEMPORARY TABLE table_54044 ENGINE = INNODB
|
|
AS SELECT IF(NULL IS NOT NULL, NULL, NULL);
|
|
SHOW CREATE TABLE table_54044;
|
|
Table Create Table
|
|
table_54044 CREATE TEMPORARY TABLE `table_54044` (
|
|
`IF(NULL IS NOT NULL, NULL, NULL)` binary(0) DEFAULT NULL
|
|
) ENGINE=InnoDB DEFAULT CHARSET=latin1
|
|
DROP TABLE table_54044;
|
|
CREATE TABLE tmp ENGINE = INNODB
|
|
AS SELECT COALESCE(NULL, NULL, NULL), GREATEST(NULL, NULL), NULL;
|
|
SHOW CREATE TABLE tmp;
|
|
Table Create Table
|
|
tmp CREATE TABLE `tmp` (
|
|
`COALESCE(NULL, NULL, NULL)` binary(0) DEFAULT NULL,
|
|
`GREATEST(NULL, NULL)` binary(0) DEFAULT NULL,
|
|
`NULL` binary(0) DEFAULT NULL
|
|
) ENGINE=InnoDB DEFAULT CHARSET=latin1
|
|
DROP TABLE tmp;
|
|
CREATE TABLE t1 (a VARCHAR(3)) ENGINE=InnoDB;
|
|
INSERT INTO t1 VALUES ('foo'),('bar');
|
|
FLUSH TABLES;
|
|
CREATE TEMPORARY TABLE tmp ENGINE=InnoDB AS SELECT VALUES(a) FROM t1;
|
|
ERROR HY000: Can't create table `test`.`tmp` (errno: 168 "Unknown (generic) error from engine")
|
|
DROP TABLE t1;
|