Current Path : /home/usr.opt/mysql57/mysql-test/suite/engines/funcs/t/ |
FreeBSD hs32.drive.ne.jp 9.1-RELEASE FreeBSD 9.1-RELEASE #1: Wed Jan 14 12:18:08 JST 2015 root@hs32.drive.ne.jp:/sys/amd64/compile/hs32 amd64 |
Current File : //home/usr.opt/mysql57/mysql-test/suite/engines/funcs/t/ai_sql_auto_is_null.test |
--disable_warnings DROP TABLE IF EXISTS t1; --enable_warnings CREATE TABLE t1(c1 TINYINT AUTO_INCREMENT NOT NULL KEY ); SET SQL_AUTO_IS_NULL = 1; INSERT INTO t1 VALUES(null); INSERT INTO t1 VALUES(null); INSERT INTO t1 VALUES(null); SELECT * FROM t1 WHERE c1 IS NULL; DROP TABLE t1; CREATE TABLE t1(c1 SMALLINT AUTO_INCREMENT NOT NULL KEY ); SET SQL_AUTO_IS_NULL = 1; INSERT INTO t1 VALUES(null); INSERT INTO t1 VALUES(null); INSERT INTO t1 VALUES(null); SELECT * FROM t1 WHERE c1 IS NULL; DROP TABLE t1; CREATE TABLE t1(c1 MEDIUMINT AUTO_INCREMENT NOT NULL KEY ); SET SQL_AUTO_IS_NULL = 1; INSERT INTO t1 VALUES(null); INSERT INTO t1 VALUES(null); INSERT INTO t1 VALUES(null); SELECT * FROM t1 WHERE c1 IS NULL; DROP TABLE t1; CREATE TABLE t1(c1 INT AUTO_INCREMENT NOT NULL KEY ); SET SQL_AUTO_IS_NULL = 1; INSERT INTO t1 VALUES(null); INSERT INTO t1 VALUES(null); INSERT INTO t1 VALUES(null); SELECT * FROM t1 WHERE c1 IS NULL; DROP TABLE t1; CREATE TABLE t1(c1 INTEGER AUTO_INCREMENT NOT NULL KEY ); SET SQL_AUTO_IS_NULL = 1; INSERT INTO t1 VALUES(null); INSERT INTO t1 VALUES(null); INSERT INTO t1 VALUES(null); SELECT * FROM t1 WHERE c1 IS NULL; DROP TABLE t1; CREATE TABLE t1(c1 BIGINT AUTO_INCREMENT NOT NULL KEY ); SET SQL_AUTO_IS_NULL = 1; INSERT INTO t1 VALUES(null); INSERT INTO t1 VALUES(null); INSERT INTO t1 VALUES(null); SELECT * FROM t1 WHERE c1 IS NULL; DROP TABLE t1; CREATE TABLE t1(c1 TINYINT AUTO_INCREMENT NOT NULL KEY ); SET SQL_AUTO_IS_NULL = 1; INSERT INTO t1 VALUES(null); INSERT INTO t1 VALUES(null); INSERT INTO t1 VALUES(null); SELECT * FROM t1 WHERE c1 IS NULL; DROP TABLE t1; CREATE TABLE t1(c1 SMALLINT AUTO_INCREMENT NOT NULL KEY ); SET SQL_AUTO_IS_NULL = 1; INSERT INTO t1 VALUES(null); INSERT INTO t1 VALUES(null); INSERT INTO t1 VALUES(null); SELECT * FROM t1 WHERE c1 IS NULL; DROP TABLE t1; CREATE TABLE t1(c1 MEDIUMINT AUTO_INCREMENT NOT NULL KEY ); SET SQL_AUTO_IS_NULL = 1; INSERT INTO t1 VALUES(null); INSERT INTO t1 VALUES(null); INSERT INTO t1 VALUES(null); SELECT * FROM t1 WHERE c1 IS NULL; DROP TABLE t1; CREATE TABLE t1(c1 INT AUTO_INCREMENT NOT NULL KEY ); SET SQL_AUTO_IS_NULL = 1; INSERT INTO t1 VALUES(null); INSERT INTO t1 VALUES(null); INSERT INTO t1 VALUES(null); SELECT * FROM t1 WHERE c1 IS NULL; DROP TABLE t1; CREATE TABLE t1(c1 INTEGER AUTO_INCREMENT NOT NULL KEY ); SET SQL_AUTO_IS_NULL = 1; INSERT INTO t1 VALUES(null); INSERT INTO t1 VALUES(null); INSERT INTO t1 VALUES(null); SELECT * FROM t1 WHERE c1 IS NULL; DROP TABLE t1; CREATE TABLE t1(c1 BIGINT AUTO_INCREMENT NOT NULL KEY ); SET SQL_AUTO_IS_NULL = 1; INSERT INTO t1 VALUES(null); INSERT INTO t1 VALUES(null); INSERT INTO t1 VALUES(null); SELECT * FROM t1 WHERE c1 IS NULL; DROP TABLE t1; CREATE TABLE t1(c1 TINYINT AUTO_INCREMENT NULL UNIQUE KEY ); SET SQL_AUTO_IS_NULL = 1; INSERT INTO t1 VALUES(null); INSERT INTO t1 VALUES(null); INSERT INTO t1 VALUES(null); SELECT * FROM t1 WHERE c1 IS NULL; DROP TABLE t1; CREATE TABLE t1(c1 SMALLINT AUTO_INCREMENT NULL UNIQUE KEY ); SET SQL_AUTO_IS_NULL = 1; INSERT INTO t1 VALUES(null); INSERT INTO t1 VALUES(null); INSERT INTO t1 VALUES(null); SELECT * FROM t1 WHERE c1 IS NULL; DROP TABLE t1; CREATE TABLE t1(c1 MEDIUMINT AUTO_INCREMENT NULL UNIQUE KEY ); SET SQL_AUTO_IS_NULL = 1; INSERT INTO t1 VALUES(null); INSERT INTO t1 VALUES(null); INSERT INTO t1 VALUES(null); SELECT * FROM t1 WHERE c1 IS NULL; DROP TABLE t1; CREATE TABLE t1(c1 INT AUTO_INCREMENT NULL UNIQUE KEY ); SET SQL_AUTO_IS_NULL = 1; INSERT INTO t1 VALUES(null); INSERT INTO t1 VALUES(null); INSERT INTO t1 VALUES(null); SELECT * FROM t1 WHERE c1 IS NULL; DROP TABLE t1; CREATE TABLE t1(c1 INTEGER AUTO_INCREMENT NULL UNIQUE KEY ); SET SQL_AUTO_IS_NULL = 1; INSERT INTO t1 VALUES(null); INSERT INTO t1 VALUES(null); INSERT INTO t1 VALUES(null); SELECT * FROM t1 WHERE c1 IS NULL; DROP TABLE t1; CREATE TABLE t1(c1 BIGINT AUTO_INCREMENT NULL UNIQUE KEY ); SET SQL_AUTO_IS_NULL = 1; INSERT INTO t1 VALUES(null); INSERT INTO t1 VALUES(null); INSERT INTO t1 VALUES(null); SELECT * FROM t1 WHERE c1 IS NULL; DROP TABLE t1; CREATE TABLE t1(c1 TINYINT AUTO_INCREMENT NOT NULL UNIQUE KEY ); SET SQL_AUTO_IS_NULL = 1; INSERT INTO t1 VALUES(null); INSERT INTO t1 VALUES(null); INSERT INTO t1 VALUES(null); SELECT * FROM t1 WHERE c1 IS NULL; DROP TABLE t1; CREATE TABLE t1(c1 SMALLINT AUTO_INCREMENT NOT NULL UNIQUE KEY ); SET SQL_AUTO_IS_NULL = 1; INSERT INTO t1 VALUES(null); INSERT INTO t1 VALUES(null); INSERT INTO t1 VALUES(null); SELECT * FROM t1 WHERE c1 IS NULL; DROP TABLE t1; CREATE TABLE t1(c1 MEDIUMINT AUTO_INCREMENT NOT NULL UNIQUE KEY ); SET SQL_AUTO_IS_NULL = 1; INSERT INTO t1 VALUES(null); INSERT INTO t1 VALUES(null); INSERT INTO t1 VALUES(null); SELECT * FROM t1 WHERE c1 IS NULL; DROP TABLE t1; CREATE TABLE t1(c1 INT AUTO_INCREMENT NOT NULL UNIQUE KEY ); SET SQL_AUTO_IS_NULL = 1; INSERT INTO t1 VALUES(null); INSERT INTO t1 VALUES(null); INSERT INTO t1 VALUES(null); SELECT * FROM t1 WHERE c1 IS NULL; DROP TABLE t1; CREATE TABLE t1(c1 INTEGER AUTO_INCREMENT NOT NULL UNIQUE KEY ); SET SQL_AUTO_IS_NULL = 1; INSERT INTO t1 VALUES(null); INSERT INTO t1 VALUES(null); INSERT INTO t1 VALUES(null); SELECT * FROM t1 WHERE c1 IS NULL; DROP TABLE t1; CREATE TABLE t1(c1 BIGINT AUTO_INCREMENT NOT NULL UNIQUE KEY ); SET SQL_AUTO_IS_NULL = 1; INSERT INTO t1 VALUES(null); INSERT INTO t1 VALUES(null); INSERT INTO t1 VALUES(null); SELECT * FROM t1 WHERE c1 IS NULL; DROP TABLE t1; CREATE TABLE t1(c1 TINYINT AUTO_INCREMENT NOT NULL PRIMARY KEY ); SET SQL_AUTO_IS_NULL = 1; INSERT INTO t1 VALUES(null); INSERT INTO t1 VALUES(null); INSERT INTO t1 VALUES(null); SELECT * FROM t1 WHERE c1 IS NULL; DROP TABLE t1; CREATE TABLE t1(c1 SMALLINT AUTO_INCREMENT NOT NULL PRIMARY KEY ); SET SQL_AUTO_IS_NULL = 1; INSERT INTO t1 VALUES(null); INSERT INTO t1 VALUES(null); INSERT INTO t1 VALUES(null); SELECT * FROM t1 WHERE c1 IS NULL; DROP TABLE t1; CREATE TABLE t1(c1 MEDIUMINT AUTO_INCREMENT NOT NULL PRIMARY KEY ); SET SQL_AUTO_IS_NULL = 1; INSERT INTO t1 VALUES(null); INSERT INTO t1 VALUES(null); INSERT INTO t1 VALUES(null); SELECT * FROM t1 WHERE c1 IS NULL; DROP TABLE t1; CREATE TABLE t1(c1 INT AUTO_INCREMENT NOT NULL PRIMARY KEY ); SET SQL_AUTO_IS_NULL = 1; INSERT INTO t1 VALUES(null); INSERT INTO t1 VALUES(null); INSERT INTO t1 VALUES(null); SELECT * FROM t1 WHERE c1 IS NULL; DROP TABLE t1; CREATE TABLE t1(c1 INTEGER AUTO_INCREMENT NOT NULL PRIMARY KEY ); SET SQL_AUTO_IS_NULL = 1; INSERT INTO t1 VALUES(null); INSERT INTO t1 VALUES(null); INSERT INTO t1 VALUES(null); SELECT * FROM t1 WHERE c1 IS NULL; DROP TABLE t1; CREATE TABLE t1(c1 BIGINT AUTO_INCREMENT NOT NULL PRIMARY KEY ); SET SQL_AUTO_IS_NULL = 1; INSERT INTO t1 VALUES(null); INSERT INTO t1 VALUES(null); INSERT INTO t1 VALUES(null); SELECT * FROM t1 WHERE c1 IS NULL; DROP TABLE t1; CREATE TABLE t1(c1 TINYINT UNSIGNED AUTO_INCREMENT NOT NULL KEY ); SET SQL_AUTO_IS_NULL = 1; INSERT INTO t1 VALUES(null); INSERT INTO t1 VALUES(null); INSERT INTO t1 VALUES(null); SELECT * FROM t1 WHERE c1 IS NULL; DROP TABLE t1; CREATE TABLE t1(c1 SMALLINT UNSIGNED AUTO_INCREMENT NOT NULL KEY ); SET SQL_AUTO_IS_NULL = 1; INSERT INTO t1 VALUES(null); INSERT INTO t1 VALUES(null); INSERT INTO t1 VALUES(null); SELECT * FROM t1 WHERE c1 IS NULL; DROP TABLE t1; CREATE TABLE t1(c1 MEDIUMINT UNSIGNED AUTO_INCREMENT NOT NULL KEY ); SET SQL_AUTO_IS_NULL = 1; INSERT INTO t1 VALUES(null); INSERT INTO t1 VALUES(null); INSERT INTO t1 VALUES(null); SELECT * FROM t1 WHERE c1 IS NULL; DROP TABLE t1; CREATE TABLE t1(c1 INT UNSIGNED AUTO_INCREMENT NOT NULL KEY ); SET SQL_AUTO_IS_NULL = 1; INSERT INTO t1 VALUES(null); INSERT INTO t1 VALUES(null); INSERT INTO t1 VALUES(null); SELECT * FROM t1 WHERE c1 IS NULL; DROP TABLE t1; CREATE TABLE t1(c1 INTEGER UNSIGNED AUTO_INCREMENT NOT NULL KEY ); SET SQL_AUTO_IS_NULL = 1; INSERT INTO t1 VALUES(null); INSERT INTO t1 VALUES(null); INSERT INTO t1 VALUES(null); SELECT * FROM t1 WHERE c1 IS NULL; DROP TABLE t1; CREATE TABLE t1(c1 BIGINT UNSIGNED AUTO_INCREMENT NOT NULL KEY ); SET SQL_AUTO_IS_NULL = 1; INSERT INTO t1 VALUES(null); INSERT INTO t1 VALUES(null); INSERT INTO t1 VALUES(null); SELECT * FROM t1 WHERE c1 IS NULL; DROP TABLE t1; CREATE TABLE t1(c1 TINYINT UNSIGNED AUTO_INCREMENT NOT NULL KEY ); SET SQL_AUTO_IS_NULL = 1; INSERT INTO t1 VALUES(null); INSERT INTO t1 VALUES(null); INSERT INTO t1 VALUES(null); SELECT * FROM t1 WHERE c1 IS NULL; DROP TABLE t1; CREATE TABLE t1(c1 SMALLINT UNSIGNED AUTO_INCREMENT NOT NULL KEY ); SET SQL_AUTO_IS_NULL = 1; INSERT INTO t1 VALUES(null); INSERT INTO t1 VALUES(null); INSERT INTO t1 VALUES(null); SELECT * FROM t1 WHERE c1 IS NULL; DROP TABLE t1; CREATE TABLE t1(c1 MEDIUMINT UNSIGNED AUTO_INCREMENT NOT NULL KEY ); SET SQL_AUTO_IS_NULL = 1; INSERT INTO t1 VALUES(null); INSERT INTO t1 VALUES(null); INSERT INTO t1 VALUES(null); SELECT * FROM t1 WHERE c1 IS NULL; DROP TABLE t1; CREATE TABLE t1(c1 INT UNSIGNED AUTO_INCREMENT NOT NULL KEY ); SET SQL_AUTO_IS_NULL = 1; INSERT INTO t1 VALUES(null); INSERT INTO t1 VALUES(null); INSERT INTO t1 VALUES(null); SELECT * FROM t1 WHERE c1 IS NULL; DROP TABLE t1; CREATE TABLE t1(c1 INTEGER UNSIGNED AUTO_INCREMENT NOT NULL KEY ); SET SQL_AUTO_IS_NULL = 1; INSERT INTO t1 VALUES(null); INSERT INTO t1 VALUES(null); INSERT INTO t1 VALUES(null); SELECT * FROM t1 WHERE c1 IS NULL; DROP TABLE t1; CREATE TABLE t1(c1 BIGINT UNSIGNED AUTO_INCREMENT NOT NULL KEY ); SET SQL_AUTO_IS_NULL = 1; INSERT INTO t1 VALUES(null); INSERT INTO t1 VALUES(null); INSERT INTO t1 VALUES(null); SELECT * FROM t1 WHERE c1 IS NULL; DROP TABLE t1; CREATE TABLE t1(c1 TINYINT UNSIGNED AUTO_INCREMENT NULL UNIQUE KEY ); SET SQL_AUTO_IS_NULL = 1; INSERT INTO t1 VALUES(null); INSERT INTO t1 VALUES(null); INSERT INTO t1 VALUES(null); SELECT * FROM t1 WHERE c1 IS NULL; DROP TABLE t1; CREATE TABLE t1(c1 SMALLINT UNSIGNED AUTO_INCREMENT NULL UNIQUE KEY ); SET SQL_AUTO_IS_NULL = 1; INSERT INTO t1 VALUES(null); INSERT INTO t1 VALUES(null); INSERT INTO t1 VALUES(null); SELECT * FROM t1 WHERE c1 IS NULL; DROP TABLE t1; CREATE TABLE t1(c1 MEDIUMINT UNSIGNED AUTO_INCREMENT NULL UNIQUE KEY ); SET SQL_AUTO_IS_NULL = 1; INSERT INTO t1 VALUES(null); INSERT INTO t1 VALUES(null); INSERT INTO t1 VALUES(null); SELECT * FROM t1 WHERE c1 IS NULL; DROP TABLE t1; CREATE TABLE t1(c1 INT UNSIGNED AUTO_INCREMENT NULL UNIQUE KEY ); SET SQL_AUTO_IS_NULL = 1; INSERT INTO t1 VALUES(null); INSERT INTO t1 VALUES(null); INSERT INTO t1 VALUES(null); SELECT * FROM t1 WHERE c1 IS NULL; DROP TABLE t1; CREATE TABLE t1(c1 INTEGER UNSIGNED AUTO_INCREMENT NULL UNIQUE KEY ); SET SQL_AUTO_IS_NULL = 1; INSERT INTO t1 VALUES(null); INSERT INTO t1 VALUES(null); INSERT INTO t1 VALUES(null); SELECT * FROM t1 WHERE c1 IS NULL; DROP TABLE t1; CREATE TABLE t1(c1 BIGINT UNSIGNED AUTO_INCREMENT NULL UNIQUE KEY ); SET SQL_AUTO_IS_NULL = 1; INSERT INTO t1 VALUES(null); INSERT INTO t1 VALUES(null); INSERT INTO t1 VALUES(null); SELECT * FROM t1 WHERE c1 IS NULL; DROP TABLE t1; CREATE TABLE t1(c1 TINYINT UNSIGNED AUTO_INCREMENT NOT NULL UNIQUE KEY ); SET SQL_AUTO_IS_NULL = 1; INSERT INTO t1 VALUES(null); INSERT INTO t1 VALUES(null); INSERT INTO t1 VALUES(null); SELECT * FROM t1 WHERE c1 IS NULL; DROP TABLE t1; CREATE TABLE t1(c1 SMALLINT UNSIGNED AUTO_INCREMENT NOT NULL UNIQUE KEY ); SET SQL_AUTO_IS_NULL = 1; INSERT INTO t1 VALUES(null); INSERT INTO t1 VALUES(null); INSERT INTO t1 VALUES(null); SELECT * FROM t1 WHERE c1 IS NULL; DROP TABLE t1; CREATE TABLE t1(c1 MEDIUMINT UNSIGNED AUTO_INCREMENT NOT NULL UNIQUE KEY ); SET SQL_AUTO_IS_NULL = 1; INSERT INTO t1 VALUES(null); INSERT INTO t1 VALUES(null); INSERT INTO t1 VALUES(null); SELECT * FROM t1 WHERE c1 IS NULL; DROP TABLE t1; CREATE TABLE t1(c1 INT UNSIGNED AUTO_INCREMENT NOT NULL UNIQUE KEY ); SET SQL_AUTO_IS_NULL = 1; INSERT INTO t1 VALUES(null); INSERT INTO t1 VALUES(null); INSERT INTO t1 VALUES(null); SELECT * FROM t1 WHERE c1 IS NULL; DROP TABLE t1; CREATE TABLE t1(c1 INTEGER UNSIGNED AUTO_INCREMENT NOT NULL UNIQUE KEY ); SET SQL_AUTO_IS_NULL = 1; INSERT INTO t1 VALUES(null); INSERT INTO t1 VALUES(null); INSERT INTO t1 VALUES(null); SELECT * FROM t1 WHERE c1 IS NULL; DROP TABLE t1; CREATE TABLE t1(c1 BIGINT UNSIGNED AUTO_INCREMENT NOT NULL UNIQUE KEY ); SET SQL_AUTO_IS_NULL = 1; INSERT INTO t1 VALUES(null); INSERT INTO t1 VALUES(null); INSERT INTO t1 VALUES(null); SELECT * FROM t1 WHERE c1 IS NULL; DROP TABLE t1; CREATE TABLE t1(c1 TINYINT UNSIGNED AUTO_INCREMENT NOT NULL PRIMARY KEY ); SET SQL_AUTO_IS_NULL = 1; INSERT INTO t1 VALUES(null); INSERT INTO t1 VALUES(null); INSERT INTO t1 VALUES(null); SELECT * FROM t1 WHERE c1 IS NULL; DROP TABLE t1; CREATE TABLE t1(c1 SMALLINT UNSIGNED AUTO_INCREMENT NOT NULL PRIMARY KEY ); SET SQL_AUTO_IS_NULL = 1; INSERT INTO t1 VALUES(null); INSERT INTO t1 VALUES(null); INSERT INTO t1 VALUES(null); SELECT * FROM t1 WHERE c1 IS NULL; DROP TABLE t1; CREATE TABLE t1(c1 MEDIUMINT UNSIGNED AUTO_INCREMENT NOT NULL PRIMARY KEY ); SET SQL_AUTO_IS_NULL = 1; INSERT INTO t1 VALUES(null); INSERT INTO t1 VALUES(null); INSERT INTO t1 VALUES(null); SELECT * FROM t1 WHERE c1 IS NULL; DROP TABLE t1; CREATE TABLE t1(c1 INT UNSIGNED AUTO_INCREMENT NOT NULL PRIMARY KEY ); SET SQL_AUTO_IS_NULL = 1; INSERT INTO t1 VALUES(null); INSERT INTO t1 VALUES(null); INSERT INTO t1 VALUES(null); SELECT * FROM t1 WHERE c1 IS NULL; DROP TABLE t1; CREATE TABLE t1(c1 INTEGER UNSIGNED AUTO_INCREMENT NOT NULL PRIMARY KEY ); SET SQL_AUTO_IS_NULL = 1; INSERT INTO t1 VALUES(null); INSERT INTO t1 VALUES(null); INSERT INTO t1 VALUES(null); SELECT * FROM t1 WHERE c1 IS NULL; DROP TABLE t1; CREATE TABLE t1(c1 BIGINT UNSIGNED AUTO_INCREMENT NOT NULL PRIMARY KEY ); SET SQL_AUTO_IS_NULL = 1; INSERT INTO t1 VALUES(null); INSERT INTO t1 VALUES(null); INSERT INTO t1 VALUES(null); SELECT * FROM t1 WHERE c1 IS NULL; DROP TABLE t1;