Current Path : /home/usr.opt/mysql57/mysql-test/suite/engines/funcs/r/ |
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/r/in_string_set_enum_fail.result |
DROP TABLE IF EXISTS t7; SET SQL_MODE='TRADITIONAL'; CREATE TABLE t7(c1 SET('a','b','c') NULL); INSERT INTO t7(c1) VALUES('abc'); ERROR 01000: Data truncated for column 'c1' at row 1 SELECT * FROM t7; c1 INSERT INTO t7(c1) VALUES(123); ERROR 01000: Data truncated for column 'c1' at row 1 SELECT * FROM t7; c1 INSERT INTO t7(c1) VALUES(0x878A); ERROR 01000: Data truncated for column 'c1' at row 1 SELECT * FROM t7; c1 INSERT INTO t7(c1) VALUES(NOW()); ERROR 01000: Data truncated for column 'c1' at row 1 SELECT * FROM t7; c1 DROP TABLE t7; SET SQL_MODE=''; Warnings: Warning 3090 Changing sql mode 'NO_AUTO_CREATE_USER' is deprecated. It will be removed in a future release. SET SQL_MODE='TRADITIONAL'; Warnings: Warning 3090 Changing sql mode 'NO_AUTO_CREATE_USER' is deprecated. It will be removed in a future release. CREATE TABLE t7(c1 ENUM('a','b','c') NULL); INSERT INTO t7(c1) VALUES('abc'); ERROR 01000: Data truncated for column 'c1' at row 1 SELECT * FROM t7; c1 INSERT INTO t7(c1) VALUES(123); ERROR 01000: Data truncated for column 'c1' at row 1 SELECT * FROM t7; c1 INSERT INTO t7(c1) VALUES(0x878A); ERROR 01000: Data truncated for column 'c1' at row 1 SELECT * FROM t7; c1 INSERT INTO t7(c1) VALUES(NOW()); ERROR 01000: Data truncated for column 'c1' at row 1 SELECT * FROM t7; c1 DROP TABLE t7; SET SQL_MODE=''; Warnings: Warning 3090 Changing sql mode 'NO_AUTO_CREATE_USER' is deprecated. It will be removed in a future release.