MDEV-369 (Mismatches in MySQL engines test suite)

Following reasons caused mismatches:
  - different handling of invalid values;
  - different CAST results with fractional seconds;
  - microseconds support in MariaDB;
  - different algorithm of comparing temporal values;
  - differences in error and warning texts and codes;
  - different approach to truncating datetime values to time;
  - additional collations;
  - different record order for queries without ORDER BY;
  - MySQL bug#66034.
More details in MDEV-369 comments.
This commit is contained in:
Elena Stepanova 2012-07-30 04:16:49 +04:00
parent 3ca3b44dbb
commit d1a90e852b
34 changed files with 3140 additions and 225 deletions

View file

@ -16,7 +16,13 @@ DROP TABLE t1;
CREATE TABLE t1(c1 TIME NULL, c2 TIME NULL); CREATE TABLE t1(c1 TIME NULL, c2 TIME NULL);
SET TIMESTAMP=1171346973; SET TIMESTAMP=1171346973;
INSERT INTO t1 VALUES(NOW(),NOW()); INSERT INTO t1 VALUES(NOW(),NOW());
Warnings:
Note 1265 Data truncated for column 'c1' at row 1
Note 1265 Data truncated for column 'c2' at row 1
INSERT INTO t1 VALUES(NOW(),NOW()); INSERT INTO t1 VALUES(NOW(),NOW());
Warnings:
Note 1265 Data truncated for column 'c1' at row 1
Note 1265 Data truncated for column 'c2' at row 1
ANALYZE TABLE t1; ANALYZE TABLE t1;
Table Op Msg_type Msg_text Table Op Msg_type Msg_text
test.t1 analyze status OK test.t1 analyze status OK

View file

@ -25,7 +25,15 @@ INSERT INTO t3 VALUES('2008-02-29 13:13:13');
DROP TABLE t3; DROP TABLE t3;
CREATE TABLE t3(c1 TIME NOT NULL); CREATE TABLE t3(c1 TIME NOT NULL);
INSERT INTO t3 VALUES('1000-01-01 00:00:00'); INSERT INTO t3 VALUES('1000-01-01 00:00:00');
Warnings:
Note 1265 Data truncated for column 'c1' at row 1
INSERT INTO t3 VALUES('1999-12-31 23:59:59'); INSERT INTO t3 VALUES('1999-12-31 23:59:59');
Warnings:
Note 1265 Data truncated for column 'c1' at row 1
INSERT INTO t3 VALUES('2000-01-01 00:00:00'); INSERT INTO t3 VALUES('2000-01-01 00:00:00');
Warnings:
Note 1265 Data truncated for column 'c1' at row 1
INSERT INTO t3 VALUES('2008-02-29 13:13:13'); INSERT INTO t3 VALUES('2008-02-29 13:13:13');
Warnings:
Note 1265 Data truncated for column 'c1' at row 1
DROP TABLE t3; DROP TABLE t3;

View file

@ -76,6 +76,7 @@ utf8_roman_ci utf8 207 # #
utf8_persian_ci utf8 208 # # utf8_persian_ci utf8 208 # #
utf8_esperanto_ci utf8 209 # # utf8_esperanto_ci utf8 209 # #
utf8_hungarian_ci utf8 210 # # utf8_hungarian_ci utf8 210 # #
utf8_croatian_ci utf8 213 # #
utf8_general_mysql500_ci utf8 223 # # utf8_general_mysql500_ci utf8 223 # #
ucs2_general_ci ucs2 35 Yes # # ucs2_general_ci ucs2 35 Yes # #
ucs2_bin ucs2 90 # # ucs2_bin ucs2 90 # #
@ -98,6 +99,7 @@ ucs2_roman_ci ucs2 143 # #
ucs2_persian_ci ucs2 144 # # ucs2_persian_ci ucs2 144 # #
ucs2_esperanto_ci ucs2 145 # # ucs2_esperanto_ci ucs2 145 # #
ucs2_hungarian_ci ucs2 146 # # ucs2_hungarian_ci ucs2 146 # #
ucs2_croatian_ci ucs2 149 # #
ucs2_general_mysql500_ci ucs2 159 # # ucs2_general_mysql500_ci ucs2 159 # #
cp866_general_ci cp866 36 Yes # # cp866_general_ci cp866 36 Yes # #
cp866_bin cp866 68 # # cp866_bin cp866 68 # #

View file

@ -76,6 +76,7 @@ utf8_roman_ci utf8 207 # #
utf8_persian_ci utf8 208 # # utf8_persian_ci utf8 208 # #
utf8_esperanto_ci utf8 209 # # utf8_esperanto_ci utf8 209 # #
utf8_hungarian_ci utf8 210 # # utf8_hungarian_ci utf8 210 # #
utf8_croatian_ci utf8 213 # #
utf8_general_mysql500_ci utf8 223 # # utf8_general_mysql500_ci utf8 223 # #
ucs2_general_ci ucs2 35 Yes # # ucs2_general_ci ucs2 35 Yes # #
ucs2_bin ucs2 90 # # ucs2_bin ucs2 90 # #
@ -98,6 +99,7 @@ ucs2_roman_ci ucs2 143 # #
ucs2_persian_ci ucs2 144 # # ucs2_persian_ci ucs2 144 # #
ucs2_esperanto_ci ucs2 145 # # ucs2_esperanto_ci ucs2 145 # #
ucs2_hungarian_ci ucs2 146 # # ucs2_hungarian_ci ucs2 146 # #
ucs2_croatian_ci ucs2 149 # #
ucs2_general_mysql500_ci ucs2 159 # # ucs2_general_mysql500_ci ucs2 159 # #
cp866_general_ci cp866 36 Yes # # cp866_general_ci cp866 36 Yes # #
cp866_bin cp866 68 # # cp866_bin cp866 68 # #

View file

@ -33,10 +33,20 @@ DROP TABLE t1;
CREATE TABLE t1(c1 TIME NOT NULL PRIMARY KEY); CREATE TABLE t1(c1 TIME NOT NULL PRIMARY KEY);
SET TIMESTAMP=1171346973; SET TIMESTAMP=1171346973;
INSERT INTO t1 (c1) VALUES(NOW()); INSERT INTO t1 (c1) VALUES(NOW());
Warnings:
Note 1265 Data truncated for column 'c1' at row 1
INSERT INTO t1 (c1) VALUES(ADDTIME(NOW(),'1 01:01:01')); INSERT INTO t1 (c1) VALUES(ADDTIME(NOW(),'1 01:01:01'));
Warnings:
Note 1265 Data truncated for column 'c1' at row 1
INSERT INTO t1 (c1) VALUES(ADDTIME(NOW(),'2 02:01:01')); INSERT INTO t1 (c1) VALUES(ADDTIME(NOW(),'2 02:01:01'));
Warnings:
Note 1265 Data truncated for column 'c1' at row 1
INSERT INTO t1 (c1) VALUES(ADDTIME(NOW(),'3 03:01:01')); INSERT INTO t1 (c1) VALUES(ADDTIME(NOW(),'3 03:01:01'));
Warnings:
Note 1265 Data truncated for column 'c1' at row 1
INSERT INTO t1 (c1) VALUES(ADDTIME(NOW(),'4 04:01:01')); INSERT INTO t1 (c1) VALUES(ADDTIME(NOW(),'4 04:01:01'));
Warnings:
Note 1265 Data truncated for column 'c1' at row 1
SELECT * FROM t1 ORDER BY c1; SELECT * FROM t1 ORDER BY c1;
c1 c1
09:09:33 09:09:33
@ -47,8 +57,6 @@ c1
DELETE FROM t1 WHERE c1 <= ADDTIME(NOW(),'2 02:01:01'); DELETE FROM t1 WHERE c1 <= ADDTIME(NOW(),'2 02:01:01');
SELECT * FROM t1 ORDER BY c1; SELECT * FROM t1 ORDER BY c1;
c1 c1
12:10:34
13:10:34
DROP TABLE t1; DROP TABLE t1;
CREATE TABLE t1(c1 DATETIME NOT NULL PRIMARY KEY); CREATE TABLE t1(c1 DATETIME NOT NULL PRIMARY KEY);
SET TIMESTAMP=1171346973; SET TIMESTAMP=1171346973;

View file

@ -66,12 +66,42 @@ DROP TABLE t1;
CREATE TABLE t1(c1 TIME NOT NULL, c2 TIME NULL, c3 TIME NULL, PRIMARY KEY(c1), UNIQUE(c2)); CREATE TABLE t1(c1 TIME NOT NULL, c2 TIME NULL, c3 TIME NULL, PRIMARY KEY(c1), UNIQUE(c2));
SET TIMESTAMP=1171346973; SET TIMESTAMP=1171346973;
INSERT INTO t1 (c1,c2,c3) VALUES(NOW(),ADDTIME(NOW(),'4 04:01:01'),NOW()); INSERT INTO t1 (c1,c2,c3) VALUES(NOW(),ADDTIME(NOW(),'4 04:01:01'),NOW());
Warnings:
Note 1265 Data truncated for column 'c1' at row 1
Note 1265 Data truncated for column 'c2' at row 1
Note 1265 Data truncated for column 'c3' at row 1
INSERT INTO t1 (c1,c2,c3) VALUES(ADDTIME(NOW(),'1 01:01:01'),ADDTIME(NOW(),'3 03:01:01'),NOW()); INSERT INTO t1 (c1,c2,c3) VALUES(ADDTIME(NOW(),'1 01:01:01'),ADDTIME(NOW(),'3 03:01:01'),NOW());
Warnings:
Note 1265 Data truncated for column 'c1' at row 1
Note 1265 Data truncated for column 'c2' at row 1
Note 1265 Data truncated for column 'c3' at row 1
INSERT INTO t1 (c1,c2,c3) VALUES(ADDTIME(NOW(),'2 02:01:01'),ADDTIME(NOW(),'2 02:01:01'),NOW()); INSERT INTO t1 (c1,c2,c3) VALUES(ADDTIME(NOW(),'2 02:01:01'),ADDTIME(NOW(),'2 02:01:01'),NOW());
Warnings:
Note 1265 Data truncated for column 'c1' at row 1
Note 1265 Data truncated for column 'c2' at row 1
Note 1265 Data truncated for column 'c3' at row 1
INSERT INTO t1 (c1,c2,c3) VALUES(ADDTIME(NOW(),'3 03:01:01'),ADDTIME(NOW(),'1 01:01:01'),NOW()); INSERT INTO t1 (c1,c2,c3) VALUES(ADDTIME(NOW(),'3 03:01:01'),ADDTIME(NOW(),'1 01:01:01'),NOW());
Warnings:
Note 1265 Data truncated for column 'c1' at row 1
Note 1265 Data truncated for column 'c2' at row 1
Note 1265 Data truncated for column 'c3' at row 1
INSERT INTO t1 (c1,c2,c3) VALUES(ADDTIME(NOW(),'4 04:01:01'),NOW(),NOW()); INSERT INTO t1 (c1,c2,c3) VALUES(ADDTIME(NOW(),'4 04:01:01'),NOW(),NOW());
Warnings:
Note 1265 Data truncated for column 'c1' at row 1
Note 1265 Data truncated for column 'c2' at row 1
Note 1265 Data truncated for column 'c3' at row 1
INSERT INTO t1 (c1,c2,c3) VALUES(ADDTIME(NOW(),'2 02:01:01'),ADDTIME(NOW(),'2 02:01:01'),NOW()) ON DUPLICATE KEY UPDATE c3=ADDTIME(NOW(),'6 06:01:01'); INSERT INTO t1 (c1,c2,c3) VALUES(ADDTIME(NOW(),'2 02:01:01'),ADDTIME(NOW(),'2 02:01:01'),NOW()) ON DUPLICATE KEY UPDATE c3=ADDTIME(NOW(),'6 06:01:01');
Warnings:
Note 1265 Data truncated for column 'c1' at row 1
Note 1265 Data truncated for column 'c2' at row 1
Note 1265 Data truncated for column 'c3' at row 1
Note 1265 Data truncated for column 'c3' at row 1
INSERT INTO t1 (c1,c2,c3) VALUES(NOW(),NOW(),NOW()) ON DUPLICATE KEY UPDATE c3=ADDTIME(NOW(),'6 06:01:01'); INSERT INTO t1 (c1,c2,c3) VALUES(NOW(),NOW(),NOW()) ON DUPLICATE KEY UPDATE c3=ADDTIME(NOW(),'6 06:01:01');
Warnings:
Note 1265 Data truncated for column 'c1' at row 1
Note 1265 Data truncated for column 'c2' at row 1
Note 1265 Data truncated for column 'c3' at row 1
Note 1265 Data truncated for column 'c3' at row 1
SELECT * FROM t1; SELECT * FROM t1;
c1 c2 c3 c1 c2 c3
09:09:33 13:10:34 15:10:34 09:09:33 13:10:34 15:10:34

View file

@ -29,8 +29,15 @@ DROP TABLE t1;
CREATE TABLE t1(c1 TIME NOT NULL PRIMARY KEY); CREATE TABLE t1(c1 TIME NOT NULL PRIMARY KEY);
SET TIMESTAMP=1171346973; SET TIMESTAMP=1171346973;
INSERT INTO t1 (c1) VALUES(NOW()); INSERT INTO t1 (c1) VALUES(NOW());
Warnings:
Note 1265 Data truncated for column 'c1' at row 1
INSERT INTO t1 (c1) VALUES(ADDTIME(NOW(),'1 01:01:01')); INSERT INTO t1 (c1) VALUES(ADDTIME(NOW(),'1 01:01:01'));
Warnings:
Note 1265 Data truncated for column 'c1' at row 1
INSERT INTO t1 (c1) VALUES(NOW()) ON DUPLICATE KEY UPDATE c1=ADDTIME(NOW(),'2 02:01:01'); INSERT INTO t1 (c1) VALUES(NOW()) ON DUPLICATE KEY UPDATE c1=ADDTIME(NOW(),'2 02:01:01');
Warnings:
Note 1265 Data truncated for column 'c1' at row 1
Note 1265 Data truncated for column 'c1' at row 1
SELECT * FROM t1; SELECT * FROM t1;
c1 c1
10:10:34 10:10:34

View file

@ -28,7 +28,11 @@ DROP TABLE t1;
CREATE TABLE t1(c1 TIME NOT NULL PRIMARY KEY); CREATE TABLE t1(c1 TIME NOT NULL PRIMARY KEY);
SET TIMESTAMP=1171346973; SET TIMESTAMP=1171346973;
INSERT INTO t1 (c1) VALUES(NOW()); INSERT INTO t1 (c1) VALUES(NOW());
Warnings:
Note 1265 Data truncated for column 'c1' at row 1
INSERT INTO t1 (c1) VALUES(ADDTIME(NOW(),'1 01:01:01')); INSERT INTO t1 (c1) VALUES(ADDTIME(NOW(),'1 01:01:01'));
Warnings:
Note 1265 Data truncated for column 'c1' at row 1
INSERT INTO t1 (c1) VALUES(NOW()); INSERT INTO t1 (c1) VALUES(NOW());
ERROR 23000: Duplicate entry '09:09:33' for key 'PRIMARY' ERROR 23000: Duplicate entry '09:09:33' for key 'PRIMARY'
SELECT * FROM t1; SELECT * FROM t1;

View file

@ -28,7 +28,11 @@ DROP TABLE t1;
CREATE TABLE t1(c1 TIME NOT NULL PRIMARY KEY); CREATE TABLE t1(c1 TIME NOT NULL PRIMARY KEY);
SET TIMESTAMP=1171346973; SET TIMESTAMP=1171346973;
INSERT INTO t1 (c1) VALUES(NOW()); INSERT INTO t1 (c1) VALUES(NOW());
Warnings:
Note 1265 Data truncated for column 'c1' at row 1
INSERT INTO t1 (c1) VALUES(ADDTIME(NOW(),'1 01:01:01')); INSERT INTO t1 (c1) VALUES(ADDTIME(NOW(),'1 01:01:01'));
Warnings:
Note 1265 Data truncated for column 'c1' at row 1
INSERT INTO t1 (c1) VALUES(NOW()); INSERT INTO t1 (c1) VALUES(NOW());
ERROR 23000: Duplicate entry '09:09:33' for key 'PRIMARY' ERROR 23000: Duplicate entry '09:09:33' for key 'PRIMARY'
SELECT * FROM t1; SELECT * FROM t1;

View file

@ -29,8 +29,15 @@ DROP TABLE t1;
CREATE TABLE t1(c1 TIME NULL UNIQUE); CREATE TABLE t1(c1 TIME NULL UNIQUE);
SET TIMESTAMP=1171346973; SET TIMESTAMP=1171346973;
INSERT INTO t1 (c1) VALUES(NOW()); INSERT INTO t1 (c1) VALUES(NOW());
Warnings:
Note 1265 Data truncated for column 'c1' at row 1
INSERT INTO t1 (c1) VALUES(ADDTIME(NOW(),'1 01:01:01')); INSERT INTO t1 (c1) VALUES(ADDTIME(NOW(),'1 01:01:01'));
Warnings:
Note 1265 Data truncated for column 'c1' at row 1
INSERT INTO t1 (c1) VALUES(NOW()) ON DUPLICATE KEY UPDATE c1=ADDTIME(NOW(),'2 02:01:01'); INSERT INTO t1 (c1) VALUES(NOW()) ON DUPLICATE KEY UPDATE c1=ADDTIME(NOW(),'2 02:01:01');
Warnings:
Note 1265 Data truncated for column 'c1' at row 1
Note 1265 Data truncated for column 'c1' at row 1
SELECT * FROM t1; SELECT * FROM t1;
c1 c1
10:10:34 10:10:34

View file

@ -28,7 +28,11 @@ DROP TABLE t1;
CREATE TABLE t1(c1 TIME NULL UNIQUE); CREATE TABLE t1(c1 TIME NULL UNIQUE);
SET TIMESTAMP=1171346973; SET TIMESTAMP=1171346973;
INSERT INTO t1 (c1) VALUES(NOW()); INSERT INTO t1 (c1) VALUES(NOW());
Warnings:
Note 1265 Data truncated for column 'c1' at row 1
INSERT INTO t1 (c1) VALUES(ADDTIME(NOW(),'1 01:01:01')); INSERT INTO t1 (c1) VALUES(ADDTIME(NOW(),'1 01:01:01'));
Warnings:
Note 1265 Data truncated for column 'c1' at row 1
INSERT INTO t1 (c1) VALUES(NOW()); INSERT INTO t1 (c1) VALUES(NOW());
ERROR 23000: Duplicate entry '09:09:33' for key 'c1' ERROR 23000: Duplicate entry '09:09:33' for key 'c1'
SELECT * FROM t1; SELECT * FROM t1;

View file

@ -28,8 +28,14 @@ DROP TABLE t1;
CREATE TABLE t1(c1 TIME NULL UNIQUE); CREATE TABLE t1(c1 TIME NULL UNIQUE);
SET TIMESTAMP=1171346973; SET TIMESTAMP=1171346973;
INSERT INTO t1 (c1) VALUES(NOW()); INSERT INTO t1 (c1) VALUES(NOW());
Warnings:
Note 1265 Data truncated for column 'c1' at row 1
INSERT INTO t1 (c1) VALUES(ADDTIME(NOW(),'1 01:01:01')); INSERT INTO t1 (c1) VALUES(ADDTIME(NOW(),'1 01:01:01'));
Warnings:
Note 1265 Data truncated for column 'c1' at row 1
INSERT IGNORE INTO t1 (c1) VALUES(NOW()); INSERT IGNORE INTO t1 (c1) VALUES(NOW());
Warnings:
Note 1265 Data truncated for column 'c1' at row 1
SELECT * FROM t1; SELECT * FROM t1;
c1 c1
09:09:33 09:09:33

View file

@ -61,11 +61,40 @@ DROP TABLE t1;
CREATE TABLE t1(c1 TIME NOT NULL, c2 TIME NOT NULL, c3 TIME NOT NULL, PRIMARY KEY(c1,c2,c3)); CREATE TABLE t1(c1 TIME NOT NULL, c2 TIME NOT NULL, c3 TIME NOT NULL, PRIMARY KEY(c1,c2,c3));
SET TIMESTAMP=1171346973; SET TIMESTAMP=1171346973;
INSERT INTO t1 (c1,c2,c3) VALUES(NOW(),NOW(),NOW()); INSERT INTO t1 (c1,c2,c3) VALUES(NOW(),NOW(),NOW());
Warnings:
Note 1265 Data truncated for column 'c1' at row 1
Note 1265 Data truncated for column 'c2' at row 1
Note 1265 Data truncated for column 'c3' at row 1
INSERT INTO t1 (c1,c2,c3) VALUES(NOW(),NOW(),ADDTIME(NOW(),'1 01:01:01')); INSERT INTO t1 (c1,c2,c3) VALUES(NOW(),NOW(),ADDTIME(NOW(),'1 01:01:01'));
Warnings:
Note 1265 Data truncated for column 'c1' at row 1
Note 1265 Data truncated for column 'c2' at row 1
Note 1265 Data truncated for column 'c3' at row 1
INSERT INTO t1 (c1,c2,c3) VALUES(NOW(),ADDTIME(NOW(),'1 01:01:01'),NOW()); INSERT INTO t1 (c1,c2,c3) VALUES(NOW(),ADDTIME(NOW(),'1 01:01:01'),NOW());
Warnings:
Note 1265 Data truncated for column 'c1' at row 1
Note 1265 Data truncated for column 'c2' at row 1
Note 1265 Data truncated for column 'c3' at row 1
INSERT INTO t1 (c1,c2,c3) VALUES(ADDTIME(NOW(),'1 01:01:01'),NOW(),NOW()); INSERT INTO t1 (c1,c2,c3) VALUES(ADDTIME(NOW(),'1 01:01:01'),NOW(),NOW());
Warnings:
Note 1265 Data truncated for column 'c1' at row 1
Note 1265 Data truncated for column 'c2' at row 1
Note 1265 Data truncated for column 'c3' at row 1
INSERT INTO t1 (c1,c2,c3) VALUES(NOW(),NOW(),NOW()) ON DUPLICATE KEY UPDATE c1=ADDTIME(NOW(),'2 02:01:01'),c2=ADDTIME(NOW(),'2 02:01:01'),c3=ADDTIME(NOW(),'2 02:01:01'); INSERT INTO t1 (c1,c2,c3) VALUES(NOW(),NOW(),NOW()) ON DUPLICATE KEY UPDATE c1=ADDTIME(NOW(),'2 02:01:01'),c2=ADDTIME(NOW(),'2 02:01:01'),c3=ADDTIME(NOW(),'2 02:01:01');
Warnings:
Note 1265 Data truncated for column 'c1' at row 1
Note 1265 Data truncated for column 'c2' at row 1
Note 1265 Data truncated for column 'c3' at row 1
Note 1265 Data truncated for column 'c1' at row 1
Note 1265 Data truncated for column 'c2' at row 1
Note 1265 Data truncated for column 'c3' at row 1
INSERT INTO t1 (c1,c2,c3) VALUES(NOW(),NOW(),ADDTIME(NOW(),'1 01:01:01')) ON DUPLICATE KEY UPDATE c1=ADDTIME(NOW(),'2 02:01:01'),c2=ADDTIME(NOW(),'2 02:01:01'); INSERT INTO t1 (c1,c2,c3) VALUES(NOW(),NOW(),ADDTIME(NOW(),'1 01:01:01')) ON DUPLICATE KEY UPDATE c1=ADDTIME(NOW(),'2 02:01:01'),c2=ADDTIME(NOW(),'2 02:01:01');
Warnings:
Note 1265 Data truncated for column 'c1' at row 1
Note 1265 Data truncated for column 'c2' at row 1
Note 1265 Data truncated for column 'c3' at row 1
Note 1265 Data truncated for column 'c1' at row 1
Note 1265 Data truncated for column 'c2' at row 1
SELECT * FROM t1; SELECT * FROM t1;
c1 c2 c3 c1 c2 c3
09:09:33 10:10:34 09:09:33 09:09:33 10:10:34 09:09:33

View file

@ -52,9 +52,25 @@ DROP TABLE t1;
CREATE TABLE t1(c1 TIME NOT NULL, c2 TIME NOT NULL, c3 TIME NOT NULL, PRIMARY KEY(c1,c2,c3)); CREATE TABLE t1(c1 TIME NOT NULL, c2 TIME NOT NULL, c3 TIME NOT NULL, PRIMARY KEY(c1,c2,c3));
SET TIMESTAMP=1171346973; SET TIMESTAMP=1171346973;
INSERT INTO t1 (c1,c2,c3) VALUES(NOW(),NOW(),NOW()); INSERT INTO t1 (c1,c2,c3) VALUES(NOW(),NOW(),NOW());
Warnings:
Note 1265 Data truncated for column 'c1' at row 1
Note 1265 Data truncated for column 'c2' at row 1
Note 1265 Data truncated for column 'c3' at row 1
INSERT INTO t1 (c1,c2,c3) VALUES(NOW(),NOW(),ADDTIME(NOW(),'1 01:01:01')); INSERT INTO t1 (c1,c2,c3) VALUES(NOW(),NOW(),ADDTIME(NOW(),'1 01:01:01'));
Warnings:
Note 1265 Data truncated for column 'c1' at row 1
Note 1265 Data truncated for column 'c2' at row 1
Note 1265 Data truncated for column 'c3' at row 1
INSERT INTO t1 (c1,c2,c3) VALUES(NOW(),ADDTIME(NOW(),'1 01:01:01'),NOW()); INSERT INTO t1 (c1,c2,c3) VALUES(NOW(),ADDTIME(NOW(),'1 01:01:01'),NOW());
Warnings:
Note 1265 Data truncated for column 'c1' at row 1
Note 1265 Data truncated for column 'c2' at row 1
Note 1265 Data truncated for column 'c3' at row 1
INSERT INTO t1 (c1,c2,c3) VALUES(ADDTIME(NOW(),'1 01:01:01'),NOW(),NOW()); INSERT INTO t1 (c1,c2,c3) VALUES(ADDTIME(NOW(),'1 01:01:01'),NOW(),NOW());
Warnings:
Note 1265 Data truncated for column 'c1' at row 1
Note 1265 Data truncated for column 'c2' at row 1
Note 1265 Data truncated for column 'c3' at row 1
INSERT INTO t1 (c1,c2,c3) VALUES(NOW(),NOW(),NOW()); INSERT INTO t1 (c1,c2,c3) VALUES(NOW(),NOW(),NOW());
ERROR 23000: Duplicate entry '09:09:33-09:09:33-09:09:33' for key 'PRIMARY' ERROR 23000: Duplicate entry '09:09:33-09:09:33-09:09:33' for key 'PRIMARY'
INSERT INTO t1 (c1,c2,c3) VALUES(NOW(),NOW(),ADDTIME(NOW(),'1 01:01:01')); INSERT INTO t1 (c1,c2,c3) VALUES(NOW(),NOW(),ADDTIME(NOW(),'1 01:01:01'));

View file

@ -52,9 +52,25 @@ DROP TABLE t1;
CREATE TABLE t1(c1 TIME NOT NULL, c2 TIME NOT NULL, c3 TIME NOT NULL, PRIMARY KEY(c1,c2,c3)); CREATE TABLE t1(c1 TIME NOT NULL, c2 TIME NOT NULL, c3 TIME NOT NULL, PRIMARY KEY(c1,c2,c3));
SET TIMESTAMP=1171346973; SET TIMESTAMP=1171346973;
INSERT INTO t1 (c1,c2,c3) VALUES(NOW(),NOW(),NOW()); INSERT INTO t1 (c1,c2,c3) VALUES(NOW(),NOW(),NOW());
Warnings:
Note 1265 Data truncated for column 'c1' at row 1
Note 1265 Data truncated for column 'c2' at row 1
Note 1265 Data truncated for column 'c3' at row 1
INSERT INTO t1 (c1,c2,c3) VALUES(NOW(),NOW(),ADDTIME(NOW(),'1 01:01:01')); INSERT INTO t1 (c1,c2,c3) VALUES(NOW(),NOW(),ADDTIME(NOW(),'1 01:01:01'));
Warnings:
Note 1265 Data truncated for column 'c1' at row 1
Note 1265 Data truncated for column 'c2' at row 1
Note 1265 Data truncated for column 'c3' at row 1
INSERT INTO t1 (c1,c2,c3) VALUES(NOW(),ADDTIME(NOW(),'1 01:01:01'),NOW()); INSERT INTO t1 (c1,c2,c3) VALUES(NOW(),ADDTIME(NOW(),'1 01:01:01'),NOW());
Warnings:
Note 1265 Data truncated for column 'c1' at row 1
Note 1265 Data truncated for column 'c2' at row 1
Note 1265 Data truncated for column 'c3' at row 1
INSERT INTO t1 (c1,c2,c3) VALUES(ADDTIME(NOW(),'1 01:01:01'),NOW(),NOW()); INSERT INTO t1 (c1,c2,c3) VALUES(ADDTIME(NOW(),'1 01:01:01'),NOW(),NOW());
Warnings:
Note 1265 Data truncated for column 'c1' at row 1
Note 1265 Data truncated for column 'c2' at row 1
Note 1265 Data truncated for column 'c3' at row 1
INSERT INTO t1 (c1,c2,c3) VALUES(NOW(),NOW(),NOW()); INSERT INTO t1 (c1,c2,c3) VALUES(NOW(),NOW(),NOW());
ERROR 23000: Duplicate entry '09:09:33-09:09:33-09:09:33' for key 'PRIMARY' ERROR 23000: Duplicate entry '09:09:33-09:09:33-09:09:33' for key 'PRIMARY'
INSERT INTO t1 (c1,c2,c3) VALUES(NOW(),NOW(),ADDTIME(NOW(),'1 01:01:01')); INSERT INTO t1 (c1,c2,c3) VALUES(NOW(),NOW(),ADDTIME(NOW(),'1 01:01:01'));

View file

@ -61,11 +61,40 @@ DROP TABLE t1;
CREATE TABLE t1(c1 TIME NULL, c2 TIME NULL, c3 TIME NULL, UNIQUE(c1,c2,c3)); CREATE TABLE t1(c1 TIME NULL, c2 TIME NULL, c3 TIME NULL, UNIQUE(c1,c2,c3));
SET TIMESTAMP=1171346973; SET TIMESTAMP=1171346973;
INSERT INTO t1 (c1,c2,c3) VALUES(NOW(),NOW(),NOW()); INSERT INTO t1 (c1,c2,c3) VALUES(NOW(),NOW(),NOW());
Warnings:
Note 1265 Data truncated for column 'c1' at row 1
Note 1265 Data truncated for column 'c2' at row 1
Note 1265 Data truncated for column 'c3' at row 1
INSERT INTO t1 (c1,c2,c3) VALUES(NOW(),NOW(),ADDTIME(NOW(),'1 01:01:01')); INSERT INTO t1 (c1,c2,c3) VALUES(NOW(),NOW(),ADDTIME(NOW(),'1 01:01:01'));
Warnings:
Note 1265 Data truncated for column 'c1' at row 1
Note 1265 Data truncated for column 'c2' at row 1
Note 1265 Data truncated for column 'c3' at row 1
INSERT INTO t1 (c1,c2,c3) VALUES(NOW(),ADDTIME(NOW(),'1 01:01:01'),NOW()); INSERT INTO t1 (c1,c2,c3) VALUES(NOW(),ADDTIME(NOW(),'1 01:01:01'),NOW());
Warnings:
Note 1265 Data truncated for column 'c1' at row 1
Note 1265 Data truncated for column 'c2' at row 1
Note 1265 Data truncated for column 'c3' at row 1
INSERT INTO t1 (c1,c2,c3) VALUES(ADDTIME(NOW(),'1 01:01:01'),NOW(),NOW()); INSERT INTO t1 (c1,c2,c3) VALUES(ADDTIME(NOW(),'1 01:01:01'),NOW(),NOW());
Warnings:
Note 1265 Data truncated for column 'c1' at row 1
Note 1265 Data truncated for column 'c2' at row 1
Note 1265 Data truncated for column 'c3' at row 1
INSERT INTO t1 (c1,c2,c3) VALUES(NOW(),NOW(),NOW()) ON DUPLICATE KEY UPDATE c1=ADDTIME(NOW(),'2 02:01:01'),c2=ADDTIME(NOW(),'2 02:01:01'),c3=ADDTIME(NOW(),'2 02:01:01'); INSERT INTO t1 (c1,c2,c3) VALUES(NOW(),NOW(),NOW()) ON DUPLICATE KEY UPDATE c1=ADDTIME(NOW(),'2 02:01:01'),c2=ADDTIME(NOW(),'2 02:01:01'),c3=ADDTIME(NOW(),'2 02:01:01');
Warnings:
Note 1265 Data truncated for column 'c1' at row 1
Note 1265 Data truncated for column 'c2' at row 1
Note 1265 Data truncated for column 'c3' at row 1
Note 1265 Data truncated for column 'c1' at row 1
Note 1265 Data truncated for column 'c2' at row 1
Note 1265 Data truncated for column 'c3' at row 1
INSERT INTO t1 (c1,c2,c3) VALUES(NOW(),NOW(),ADDTIME(NOW(),'1 01:01:01')) ON DUPLICATE KEY UPDATE c1=ADDTIME(NOW(),'2 02:01:01'),c2=ADDTIME(NOW(),'2 02:01:01'); INSERT INTO t1 (c1,c2,c3) VALUES(NOW(),NOW(),ADDTIME(NOW(),'1 01:01:01')) ON DUPLICATE KEY UPDATE c1=ADDTIME(NOW(),'2 02:01:01'),c2=ADDTIME(NOW(),'2 02:01:01');
Warnings:
Note 1265 Data truncated for column 'c1' at row 1
Note 1265 Data truncated for column 'c2' at row 1
Note 1265 Data truncated for column 'c3' at row 1
Note 1265 Data truncated for column 'c1' at row 1
Note 1265 Data truncated for column 'c2' at row 1
SELECT * FROM t1; SELECT * FROM t1;
c1 c2 c3 c1 c2 c3
09:09:33 10:10:34 09:09:33 09:09:33 10:10:34 09:09:33

View file

@ -52,9 +52,25 @@ DROP TABLE t1;
CREATE TABLE t1(c1 TIME NULL, c2 TIME NULL, c3 TIME NULL, UNIQUE(c1,c2,c3)); CREATE TABLE t1(c1 TIME NULL, c2 TIME NULL, c3 TIME NULL, UNIQUE(c1,c2,c3));
SET TIMESTAMP=1171346973; SET TIMESTAMP=1171346973;
INSERT INTO t1 (c1,c2,c3) VALUES(NOW(),NOW(),NOW()); INSERT INTO t1 (c1,c2,c3) VALUES(NOW(),NOW(),NOW());
Warnings:
Note 1265 Data truncated for column 'c1' at row 1
Note 1265 Data truncated for column 'c2' at row 1
Note 1265 Data truncated for column 'c3' at row 1
INSERT INTO t1 (c1,c2,c3) VALUES(NOW(),NOW(),ADDTIME(NOW(),'1 01:01:01')); INSERT INTO t1 (c1,c2,c3) VALUES(NOW(),NOW(),ADDTIME(NOW(),'1 01:01:01'));
Warnings:
Note 1265 Data truncated for column 'c1' at row 1
Note 1265 Data truncated for column 'c2' at row 1
Note 1265 Data truncated for column 'c3' at row 1
INSERT INTO t1 (c1,c2,c3) VALUES(NOW(),ADDTIME(NOW(),'1 01:01:01'),NOW()); INSERT INTO t1 (c1,c2,c3) VALUES(NOW(),ADDTIME(NOW(),'1 01:01:01'),NOW());
Warnings:
Note 1265 Data truncated for column 'c1' at row 1
Note 1265 Data truncated for column 'c2' at row 1
Note 1265 Data truncated for column 'c3' at row 1
INSERT INTO t1 (c1,c2,c3) VALUES(ADDTIME(NOW(),'1 01:01:01'),NOW(),NOW()); INSERT INTO t1 (c1,c2,c3) VALUES(ADDTIME(NOW(),'1 01:01:01'),NOW(),NOW());
Warnings:
Note 1265 Data truncated for column 'c1' at row 1
Note 1265 Data truncated for column 'c2' at row 1
Note 1265 Data truncated for column 'c3' at row 1
INSERT INTO t1 (c1,c2,c3) VALUES(NOW(),NOW(),NOW()); INSERT INTO t1 (c1,c2,c3) VALUES(NOW(),NOW(),NOW());
ERROR 23000: Duplicate entry '09:09:33-09:09:33-09:09:33' for key 'c1' ERROR 23000: Duplicate entry '09:09:33-09:09:33-09:09:33' for key 'c1'
INSERT INTO t1 (c1,c2,c3) VALUES(NOW(),NOW(),ADDTIME(NOW(),'1 01:01:01')); INSERT INTO t1 (c1,c2,c3) VALUES(NOW(),NOW(),ADDTIME(NOW(),'1 01:01:01'));

View file

@ -56,11 +56,35 @@ DROP TABLE t1;
CREATE TABLE t1(c1 TIME NULL, c2 TIME NULL, c3 TIME NULL, UNIQUE(c1,c2,c3)); CREATE TABLE t1(c1 TIME NULL, c2 TIME NULL, c3 TIME NULL, UNIQUE(c1,c2,c3));
SET TIMESTAMP=1171346973; SET TIMESTAMP=1171346973;
INSERT INTO t1 (c1,c2,c3) VALUES(NOW(),NOW(),NOW()); INSERT INTO t1 (c1,c2,c3) VALUES(NOW(),NOW(),NOW());
Warnings:
Note 1265 Data truncated for column 'c1' at row 1
Note 1265 Data truncated for column 'c2' at row 1
Note 1265 Data truncated for column 'c3' at row 1
INSERT INTO t1 (c1,c2,c3) VALUES(NOW(),NOW(),ADDTIME(NOW(),'1 01:01:01')); INSERT INTO t1 (c1,c2,c3) VALUES(NOW(),NOW(),ADDTIME(NOW(),'1 01:01:01'));
Warnings:
Note 1265 Data truncated for column 'c1' at row 1
Note 1265 Data truncated for column 'c2' at row 1
Note 1265 Data truncated for column 'c3' at row 1
INSERT INTO t1 (c1,c2,c3) VALUES(NOW(),ADDTIME(NOW(),'1 01:01:01'),NOW()); INSERT INTO t1 (c1,c2,c3) VALUES(NOW(),ADDTIME(NOW(),'1 01:01:01'),NOW());
Warnings:
Note 1265 Data truncated for column 'c1' at row 1
Note 1265 Data truncated for column 'c2' at row 1
Note 1265 Data truncated for column 'c3' at row 1
INSERT INTO t1 (c1,c2,c3) VALUES(ADDTIME(NOW(),'1 01:01:01'),NOW(),NOW()); INSERT INTO t1 (c1,c2,c3) VALUES(ADDTIME(NOW(),'1 01:01:01'),NOW(),NOW());
Warnings:
Note 1265 Data truncated for column 'c1' at row 1
Note 1265 Data truncated for column 'c2' at row 1
Note 1265 Data truncated for column 'c3' at row 1
INSERT IGNORE INTO t1 (c1,c2,c3) VALUES(NOW(),NOW(),NOW()); INSERT IGNORE INTO t1 (c1,c2,c3) VALUES(NOW(),NOW(),NOW());
Warnings:
Note 1265 Data truncated for column 'c1' at row 1
Note 1265 Data truncated for column 'c2' at row 1
Note 1265 Data truncated for column 'c3' at row 1
INSERT IGNORE INTO t1 (c1,c2,c3) VALUES(NOW(),NOW(),ADDTIME(NOW(),'1 01:01:01')); INSERT IGNORE INTO t1 (c1,c2,c3) VALUES(NOW(),NOW(),ADDTIME(NOW(),'1 01:01:01'));
Warnings:
Note 1265 Data truncated for column 'c1' at row 1
Note 1265 Data truncated for column 'c2' at row 1
Note 1265 Data truncated for column 'c3' at row 1
SELECT * FROM t1; SELECT * FROM t1;
c1 c2 c3 c1 c2 c3
09:09:33 09:09:33 09:09:33 09:09:33 09:09:33 09:09:33

View file

@ -61,11 +61,40 @@ DROP TABLE t1;
CREATE TABLE t1(c1 TIME NOT NULL, c2 TIME NOT NULL, c3 TIME NOT NULL, PRIMARY KEY(c1,c2,c3)); CREATE TABLE t1(c1 TIME NOT NULL, c2 TIME NOT NULL, c3 TIME NOT NULL, PRIMARY KEY(c1,c2,c3));
SET TIMESTAMP=1171346973; SET TIMESTAMP=1171346973;
INSERT INTO t1 (c1,c2,c3) VALUES(NOW(),NOW(),NOW()); INSERT INTO t1 (c1,c2,c3) VALUES(NOW(),NOW(),NOW());
Warnings:
Note 1265 Data truncated for column 'c1' at row 1
Note 1265 Data truncated for column 'c2' at row 1
Note 1265 Data truncated for column 'c3' at row 1
INSERT INTO t1 (c1,c2,c3) VALUES(NOW(),NOW(),ADDTIME(NOW(),'1 01:01:01')); INSERT INTO t1 (c1,c2,c3) VALUES(NOW(),NOW(),ADDTIME(NOW(),'1 01:01:01'));
Warnings:
Note 1265 Data truncated for column 'c1' at row 1
Note 1265 Data truncated for column 'c2' at row 1
Note 1265 Data truncated for column 'c3' at row 1
INSERT INTO t1 (c1,c2,c3) VALUES(NOW(),ADDTIME(NOW(),'1 01:01:01'),NOW()); INSERT INTO t1 (c1,c2,c3) VALUES(NOW(),ADDTIME(NOW(),'1 01:01:01'),NOW());
Warnings:
Note 1265 Data truncated for column 'c1' at row 1
Note 1265 Data truncated for column 'c2' at row 1
Note 1265 Data truncated for column 'c3' at row 1
INSERT INTO t1 (c1,c2,c3) VALUES(ADDTIME(NOW(),'1 01:01:01'),NOW(),NOW()); INSERT INTO t1 (c1,c2,c3) VALUES(ADDTIME(NOW(),'1 01:01:01'),NOW(),NOW());
Warnings:
Note 1265 Data truncated for column 'c1' at row 1
Note 1265 Data truncated for column 'c2' at row 1
Note 1265 Data truncated for column 'c3' at row 1
INSERT INTO t1 (c1,c2,c3) VALUES(NOW(),NOW(),NOW()) ON DUPLICATE KEY UPDATE c1=ADDTIME(NOW(),'2 02:01:01'),c2=ADDTIME(NOW(),'2 02:01:01'),c3=ADDTIME(NOW(),'2 02:01:01'); INSERT INTO t1 (c1,c2,c3) VALUES(NOW(),NOW(),NOW()) ON DUPLICATE KEY UPDATE c1=ADDTIME(NOW(),'2 02:01:01'),c2=ADDTIME(NOW(),'2 02:01:01'),c3=ADDTIME(NOW(),'2 02:01:01');
Warnings:
Note 1265 Data truncated for column 'c1' at row 1
Note 1265 Data truncated for column 'c2' at row 1
Note 1265 Data truncated for column 'c3' at row 1
Note 1265 Data truncated for column 'c1' at row 1
Note 1265 Data truncated for column 'c2' at row 1
Note 1265 Data truncated for column 'c3' at row 1
INSERT INTO t1 (c1,c2,c3) VALUES(NOW(),NOW(),ADDTIME(NOW(),'1 01:01:01')) ON DUPLICATE KEY UPDATE c1=ADDTIME(NOW(),'2 02:01:01'),c2=ADDTIME(NOW(),'2 02:01:01'); INSERT INTO t1 (c1,c2,c3) VALUES(NOW(),NOW(),ADDTIME(NOW(),'1 01:01:01')) ON DUPLICATE KEY UPDATE c1=ADDTIME(NOW(),'2 02:01:01'),c2=ADDTIME(NOW(),'2 02:01:01');
Warnings:
Note 1265 Data truncated for column 'c1' at row 1
Note 1265 Data truncated for column 'c2' at row 1
Note 1265 Data truncated for column 'c3' at row 1
Note 1265 Data truncated for column 'c1' at row 1
Note 1265 Data truncated for column 'c2' at row 1
SELECT * FROM t1; SELECT * FROM t1;
c1 c2 c3 c1 c2 c3
09:09:33 10:10:34 09:09:33 09:09:33 10:10:34 09:09:33

View file

@ -7,7 +7,7 @@ INSERT INTO t4 (c1) VALUES(0);
INSERT INTO t4 (c1) VALUES(-1); INSERT INTO t4 (c1) VALUES(-1);
ERROR 22003: Out of range value for column 'c1' at row 1 ERROR 22003: Out of range value for column 'c1' at row 1
INSERT INTO t4 (c1) VALUES('x'); INSERT INTO t4 (c1) VALUES('x');
ERROR HY000: Incorrect integer value: 'x' for column 'c1' at row 1 ERROR 22007: Incorrect integer value: 'x' for column 'c1' at row 1
INSERT INTO t4 (c1) VALUES('9'); INSERT INTO t4 (c1) VALUES('9');
SELECT COUNT(c1) AS total_rows FROM t4; SELECT COUNT(c1) AS total_rows FROM t4;
total_rows total_rows
@ -26,7 +26,7 @@ INSERT INTO t4 (c1) VALUES(0);
INSERT INTO t4 (c1) VALUES(-1); INSERT INTO t4 (c1) VALUES(-1);
ERROR 22003: Out of range value for column 'c1' at row 1 ERROR 22003: Out of range value for column 'c1' at row 1
INSERT INTO t4 (c1) VALUES('x'); INSERT INTO t4 (c1) VALUES('x');
ERROR HY000: Incorrect integer value: 'x' for column 'c1' at row 1 ERROR 22007: Incorrect integer value: 'x' for column 'c1' at row 1
INSERT INTO t4 (c1) VALUES('9'); INSERT INTO t4 (c1) VALUES('9');
SELECT COUNT(c1) AS total_rows FROM t4; SELECT COUNT(c1) AS total_rows FROM t4;
total_rows total_rows
@ -45,7 +45,7 @@ INSERT INTO t4 (c1) VALUES(0);
INSERT INTO t4 (c1) VALUES(-1); INSERT INTO t4 (c1) VALUES(-1);
ERROR 22003: Out of range value for column 'c1' at row 1 ERROR 22003: Out of range value for column 'c1' at row 1
INSERT INTO t4 (c1) VALUES('x'); INSERT INTO t4 (c1) VALUES('x');
ERROR HY000: Incorrect integer value: 'x' for column 'c1' at row 1 ERROR 22007: Incorrect integer value: 'x' for column 'c1' at row 1
INSERT INTO t4 (c1) VALUES('9'); INSERT INTO t4 (c1) VALUES('9');
SELECT COUNT(c1) AS total_rows FROM t4; SELECT COUNT(c1) AS total_rows FROM t4;
total_rows total_rows
@ -64,7 +64,7 @@ INSERT INTO t4 (c1) VALUES(0);
INSERT INTO t4 (c1) VALUES(-1); INSERT INTO t4 (c1) VALUES(-1);
ERROR 22003: Out of range value for column 'c1' at row 1 ERROR 22003: Out of range value for column 'c1' at row 1
INSERT INTO t4 (c1) VALUES('x'); INSERT INTO t4 (c1) VALUES('x');
ERROR HY000: Incorrect integer value: 'x' for column 'c1' at row 1 ERROR 22007: Incorrect integer value: 'x' for column 'c1' at row 1
INSERT INTO t4 (c1) VALUES('9'); INSERT INTO t4 (c1) VALUES('9');
SELECT COUNT(c1) AS total_rows FROM t4; SELECT COUNT(c1) AS total_rows FROM t4;
total_rows total_rows
@ -83,7 +83,7 @@ INSERT INTO t4 (c1) VALUES(0);
INSERT INTO t4 (c1) VALUES(-1); INSERT INTO t4 (c1) VALUES(-1);
ERROR 22003: Out of range value for column 'c1' at row 1 ERROR 22003: Out of range value for column 'c1' at row 1
INSERT INTO t4 (c1) VALUES('x'); INSERT INTO t4 (c1) VALUES('x');
ERROR HY000: Incorrect integer value: 'x' for column 'c1' at row 1 ERROR 22007: Incorrect integer value: 'x' for column 'c1' at row 1
INSERT INTO t4 (c1) VALUES('9'); INSERT INTO t4 (c1) VALUES('9');
SELECT COUNT(c1) AS total_rows FROM t4; SELECT COUNT(c1) AS total_rows FROM t4;
total_rows total_rows
@ -102,7 +102,7 @@ INSERT INTO t4 (c1) VALUES(0);
INSERT INTO t4 (c1) VALUES(-1); INSERT INTO t4 (c1) VALUES(-1);
ERROR 22003: Out of range value for column 'c1' at row 1 ERROR 22003: Out of range value for column 'c1' at row 1
INSERT INTO t4 (c1) VALUES('x'); INSERT INTO t4 (c1) VALUES('x');
ERROR HY000: Incorrect integer value: 'x' for column 'c1' at row 1 ERROR 22007: Incorrect integer value: 'x' for column 'c1' at row 1
INSERT INTO t4 (c1) VALUES('9'); INSERT INTO t4 (c1) VALUES('9');
SELECT COUNT(c1) AS total_rows FROM t4; SELECT COUNT(c1) AS total_rows FROM t4;
total_rows total_rows

View file

@ -7,7 +7,7 @@ INSERT INTO t5 (c1) VALUES(0);
INSERT INTO t5 (c1) VALUES(-1); INSERT INTO t5 (c1) VALUES(-1);
ERROR 22003: Out of range value for column 'c1' at row 1 ERROR 22003: Out of range value for column 'c1' at row 1
INSERT INTO t5 (c1) VALUES('x'); INSERT INTO t5 (c1) VALUES('x');
ERROR HY000: Incorrect decimal value: 'x' for column 'c1' at row 1 ERROR 22007: Incorrect decimal value: 'x' for column 'c1' at row 1
INSERT INTO t5 (c1) VALUES(999999); INSERT INTO t5 (c1) VALUES(999999);
ERROR 22003: Out of range value for column 'c1' at row 1 ERROR 22003: Out of range value for column 'c1' at row 1
SELECT COUNT(c1) AS total_rows FROM t5; SELECT COUNT(c1) AS total_rows FROM t5;
@ -27,7 +27,7 @@ INSERT INTO t5 (c1) VALUES(0);
INSERT INTO t5 (c1) VALUES(-1); INSERT INTO t5 (c1) VALUES(-1);
ERROR 22003: Out of range value for column 'c1' at row 1 ERROR 22003: Out of range value for column 'c1' at row 1
INSERT INTO t5 (c1) VALUES('x'); INSERT INTO t5 (c1) VALUES('x');
ERROR HY000: Incorrect decimal value: 'x' for column 'c1' at row 1 ERROR 22007: Incorrect decimal value: 'x' for column 'c1' at row 1
INSERT INTO t5 (c1) VALUES(999999); INSERT INTO t5 (c1) VALUES(999999);
ERROR 22003: Out of range value for column 'c1' at row 1 ERROR 22003: Out of range value for column 'c1' at row 1
SELECT COUNT(c1) AS total_rows FROM t5; SELECT COUNT(c1) AS total_rows FROM t5;
@ -47,7 +47,7 @@ INSERT INTO t5 (c1) VALUES(0);
INSERT INTO t5 (c1) VALUES(-1); INSERT INTO t5 (c1) VALUES(-1);
ERROR 22003: Out of range value for column 'c1' at row 1 ERROR 22003: Out of range value for column 'c1' at row 1
INSERT INTO t5 (c1) VALUES('x'); INSERT INTO t5 (c1) VALUES('x');
ERROR HY000: Incorrect decimal value: 'x' for column 'c1' at row 1 ERROR 22007: Incorrect decimal value: 'x' for column 'c1' at row 1
INSERT INTO t5 (c1) VALUES(999999); INSERT INTO t5 (c1) VALUES(999999);
ERROR 22003: Out of range value for column 'c1' at row 1 ERROR 22003: Out of range value for column 'c1' at row 1
SELECT COUNT(c1) AS total_rows FROM t5; SELECT COUNT(c1) AS total_rows FROM t5;
@ -67,7 +67,7 @@ INSERT INTO t5 (c1) VALUES(0);
INSERT INTO t5 (c1) VALUES(-1); INSERT INTO t5 (c1) VALUES(-1);
ERROR 22003: Out of range value for column 'c1' at row 1 ERROR 22003: Out of range value for column 'c1' at row 1
INSERT INTO t5 (c1) VALUES('x'); INSERT INTO t5 (c1) VALUES('x');
ERROR HY000: Incorrect decimal value: 'x' for column 'c1' at row 1 ERROR 22007: Incorrect decimal value: 'x' for column 'c1' at row 1
INSERT INTO t5 (c1) VALUES(999999); INSERT INTO t5 (c1) VALUES(999999);
ERROR 22003: Out of range value for column 'c1' at row 1 ERROR 22003: Out of range value for column 'c1' at row 1
SELECT COUNT(c1) AS total_rows FROM t5; SELECT COUNT(c1) AS total_rows FROM t5;

View file

@ -13,13 +13,10 @@ SELECT c1 FROM t1 WHERE c1 > ALL (SELECT c1 FROM t2);
c1 c1
SELECT c1 FROM t1 WHERE c1 >= ALL (SELECT c1 FROM t2); SELECT c1 FROM t1 WHERE c1 >= ALL (SELECT c1 FROM t2);
c1 c1
100
SELECT c1 FROM t1 WHERE c1 = ALL (SELECT c1 FROM t2); SELECT c1 FROM t1 WHERE c1 = ALL (SELECT c1 FROM t2);
c1 c1
SELECT c1 FROM t1 WHERE c1 <= ALL (SELECT c1 FROM t2); SELECT c1 FROM t1 WHERE c1 <= ALL (SELECT c1 FROM t2);
c1 c1
1
2
SELECT c1 FROM t1 WHERE c1 <> ALL (SELECT c1 FROM t2); SELECT c1 FROM t1 WHERE c1 <> ALL (SELECT c1 FROM t2);
c1 c1
DROP TABLE t1; DROP TABLE t1;
@ -37,13 +34,10 @@ SELECT c1 FROM t1 WHERE c1 > ALL (SELECT c1 FROM t2);
c1 c1
SELECT c1 FROM t1 WHERE c1 >= ALL (SELECT c1 FROM t2); SELECT c1 FROM t1 WHERE c1 >= ALL (SELECT c1 FROM t2);
c1 c1
100
SELECT c1 FROM t1 WHERE c1 = ALL (SELECT c1 FROM t2); SELECT c1 FROM t1 WHERE c1 = ALL (SELECT c1 FROM t2);
c1 c1
SELECT c1 FROM t1 WHERE c1 <= ALL (SELECT c1 FROM t2); SELECT c1 FROM t1 WHERE c1 <= ALL (SELECT c1 FROM t2);
c1 c1
1
2
SELECT c1 FROM t1 WHERE c1 <> ALL (SELECT c1 FROM t2); SELECT c1 FROM t1 WHERE c1 <> ALL (SELECT c1 FROM t2);
c1 c1
DROP TABLE t1; DROP TABLE t1;
@ -61,13 +55,10 @@ SELECT c1 FROM t1 WHERE c1 > ALL (SELECT c1 FROM t2);
c1 c1
SELECT c1 FROM t1 WHERE c1 >= ALL (SELECT c1 FROM t2); SELECT c1 FROM t1 WHERE c1 >= ALL (SELECT c1 FROM t2);
c1 c1
100
SELECT c1 FROM t1 WHERE c1 = ALL (SELECT c1 FROM t2); SELECT c1 FROM t1 WHERE c1 = ALL (SELECT c1 FROM t2);
c1 c1
SELECT c1 FROM t1 WHERE c1 <= ALL (SELECT c1 FROM t2); SELECT c1 FROM t1 WHERE c1 <= ALL (SELECT c1 FROM t2);
c1 c1
1
2
SELECT c1 FROM t1 WHERE c1 <> ALL (SELECT c1 FROM t2); SELECT c1 FROM t1 WHERE c1 <> ALL (SELECT c1 FROM t2);
c1 c1
DROP TABLE t1; DROP TABLE t1;
@ -85,13 +76,10 @@ SELECT c1 FROM t1 WHERE c1 > ALL (SELECT c1 FROM t2);
c1 c1
SELECT c1 FROM t1 WHERE c1 >= ALL (SELECT c1 FROM t2); SELECT c1 FROM t1 WHERE c1 >= ALL (SELECT c1 FROM t2);
c1 c1
100
SELECT c1 FROM t1 WHERE c1 = ALL (SELECT c1 FROM t2); SELECT c1 FROM t1 WHERE c1 = ALL (SELECT c1 FROM t2);
c1 c1
SELECT c1 FROM t1 WHERE c1 <= ALL (SELECT c1 FROM t2); SELECT c1 FROM t1 WHERE c1 <= ALL (SELECT c1 FROM t2);
c1 c1
1
2
SELECT c1 FROM t1 WHERE c1 <> ALL (SELECT c1 FROM t2); SELECT c1 FROM t1 WHERE c1 <> ALL (SELECT c1 FROM t2);
c1 c1
DROP TABLE t1; DROP TABLE t1;

View file

@ -39,10 +39,20 @@ DROP TABLE t1;
CREATE TABLE t1(c1 TIME NOT NULL); CREATE TABLE t1(c1 TIME NOT NULL);
SET TIMESTAMP=1171346973; SET TIMESTAMP=1171346973;
INSERT INTO t1 (c1) VALUES(NOW()); INSERT INTO t1 (c1) VALUES(NOW());
Warnings:
Note 1265 Data truncated for column 'c1' at row 1
INSERT INTO t1 (c1) VALUES(ADDTIME(NOW(),'1 01:01:01')); INSERT INTO t1 (c1) VALUES(ADDTIME(NOW(),'1 01:01:01'));
Warnings:
Note 1265 Data truncated for column 'c1' at row 1
INSERT INTO t1 (c1) VALUES(ADDTIME(NOW(),'2 02:01:01')); INSERT INTO t1 (c1) VALUES(ADDTIME(NOW(),'2 02:01:01'));
Warnings:
Note 1265 Data truncated for column 'c1' at row 1
INSERT INTO t1 (c1) VALUES(ADDTIME(NOW(),'3 03:01:01')); INSERT INTO t1 (c1) VALUES(ADDTIME(NOW(),'3 03:01:01'));
Warnings:
Note 1265 Data truncated for column 'c1' at row 1
INSERT INTO t1 (c1) VALUES(ADDTIME(NOW(),'4 04:01:01')); INSERT INTO t1 (c1) VALUES(ADDTIME(NOW(),'4 04:01:01'));
Warnings:
Note 1265 Data truncated for column 'c1' at row 1
SELECT * FROM t1 ORDER BY c1; SELECT * FROM t1 ORDER BY c1;
c1 c1
09:09:33 09:09:33
@ -54,10 +64,10 @@ UPDATE t1 SET c1 = NOW() WHERE c1 >= ADDTIME(NOW(),'2 02:01:01');
SELECT * FROM t1 ORDER BY c1; SELECT * FROM t1 ORDER BY c1;
c1 c1
09:09:33 09:09:33
09:09:33
09:09:33
09:09:33
10:10:34 10:10:34
11:10:34
12:10:34
13:10:34
DROP TABLE t1; DROP TABLE t1;
CREATE TABLE t1(c1 DATETIME NOT NULL); CREATE TABLE t1(c1 DATETIME NOT NULL);
SET TIMESTAMP=1171346973; SET TIMESTAMP=1171346973;

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

View file

@ -1013,7 +1013,7 @@ ROUND(c1,c2) TRUNCATE(c1,c2)
1.133000 1.132000 1.133000 1.132000
DROP TABLE t5; DROP TABLE t5;
CREATE TABLE t7(c1 DECIMAL(66,0)); CREATE TABLE t7(c1 DECIMAL(66,0));
ERROR 42000: Too big precision 66 specified for column 'c1'. Maximum is 65. ERROR 42000: Too big precision 66 specified for 'c1'. Maximum is 65.
CREATE TABLE t7(c1 DECIMAL(5,10)); CREATE TABLE t7(c1 DECIMAL(5,10));
ERROR 42000: For float(M,D), double(M,D) or decimal(M,D), M must be >= D (column 'c1'). ERROR 42000: For float(M,D), double(M,D) or decimal(M,D), M must be >= D (column 'c1').
DROP TABLE t1,t2; DROP TABLE t1,t2;

View file

@ -4957,12 +4957,20 @@ c1 c2 c3 c4 c5 c6 c7
0 -128 26 27 28 29 30 0 -128 26 27 28 29 30
SELECT * FROM t3 WHERE c2 = -129 ORDER BY c2,c7; SELECT * FROM t3 WHERE c2 = -129 ORDER BY c2,c7;
c1 c2 c3 c4 c5 c6 c7 c1 c2 c3 c4 c5 c6 c7
Warnings:
Warning 1264 Out of range value for column 'c2' at row 1
SELECT * FROM t3 WHERE c2 = -129 ORDER BY c2,c7 LIMIT 2; SELECT * FROM t3 WHERE c2 = -129 ORDER BY c2,c7 LIMIT 2;
c1 c2 c3 c4 c5 c6 c7 c1 c2 c3 c4 c5 c6 c7
Warnings:
Warning 1264 Out of range value for column 'c2' at row 1
SELECT * FROM t3 WHERE c2 = -129 ORDER BY c2,c7 DESC; SELECT * FROM t3 WHERE c2 = -129 ORDER BY c2,c7 DESC;
c1 c2 c3 c4 c5 c6 c7 c1 c2 c3 c4 c5 c6 c7
Warnings:
Warning 1264 Out of range value for column 'c2' at row 1
SELECT * FROM t3 WHERE c2 = -129 ORDER BY c2,c7 DESC LIMIT 2; SELECT * FROM t3 WHERE c2 = -129 ORDER BY c2,c7 DESC LIMIT 2;
c1 c2 c3 c4 c5 c6 c7 c1 c2 c3 c4 c5 c6 c7
Warnings:
Warning 1264 Out of range value for column 'c2' at row 1
SELECT * FROM t3 WHERE c2 <> -129 ORDER BY c2,c7; SELECT * FROM t3 WHERE c2 <> -129 ORDER BY c2,c7;
c1 c2 c3 c4 c5 c6 c7 c1 c2 c3 c4 c5 c6 c7
0 -128 1 2 3 4 5 0 -128 1 2 3 4 5
@ -5324,12 +5332,20 @@ c1 c2 c3 c4 c5 c6 c7
0 -128 26 27 28 29 30 0 -128 26 27 28 29 30
SELECT * FROM t3 WHERE c2 = 128 ORDER BY c2,c7; SELECT * FROM t3 WHERE c2 = 128 ORDER BY c2,c7;
c1 c2 c3 c4 c5 c6 c7 c1 c2 c3 c4 c5 c6 c7
Warnings:
Warning 1264 Out of range value for column 'c2' at row 1
SELECT * FROM t3 WHERE c2 = 128 ORDER BY c2,c7 LIMIT 2; SELECT * FROM t3 WHERE c2 = 128 ORDER BY c2,c7 LIMIT 2;
c1 c2 c3 c4 c5 c6 c7 c1 c2 c3 c4 c5 c6 c7
Warnings:
Warning 1264 Out of range value for column 'c2' at row 1
SELECT * FROM t3 WHERE c2 = 128 ORDER BY c2,c7 DESC; SELECT * FROM t3 WHERE c2 = 128 ORDER BY c2,c7 DESC;
c1 c2 c3 c4 c5 c6 c7 c1 c2 c3 c4 c5 c6 c7
Warnings:
Warning 1264 Out of range value for column 'c2' at row 1
SELECT * FROM t3 WHERE c2 = 128 ORDER BY c2,c7 DESC LIMIT 2; SELECT * FROM t3 WHERE c2 = 128 ORDER BY c2,c7 DESC LIMIT 2;
c1 c2 c3 c4 c5 c6 c7 c1 c2 c3 c4 c5 c6 c7
Warnings:
Warning 1264 Out of range value for column 'c2' at row 1
SELECT * FROM t3 WHERE c2 <> 128 ORDER BY c2,c7; SELECT * FROM t3 WHERE c2 <> 128 ORDER BY c2,c7;
c1 c2 c3 c4 c5 c6 c7 c1 c2 c3 c4 c5 c6 c7
0 -128 1 2 3 4 5 0 -128 1 2 3 4 5
@ -10646,12 +10662,20 @@ c1 c2 c3 c4 c5 c6 c7
0 -32768 26 27 28 29 30 0 -32768 26 27 28 29 30
SELECT * FROM t3 WHERE c2 = -32769 ORDER BY c2,c7; SELECT * FROM t3 WHERE c2 = -32769 ORDER BY c2,c7;
c1 c2 c3 c4 c5 c6 c7 c1 c2 c3 c4 c5 c6 c7
Warnings:
Warning 1264 Out of range value for column 'c2' at row 1
SELECT * FROM t3 WHERE c2 = -32769 ORDER BY c2,c7 LIMIT 2; SELECT * FROM t3 WHERE c2 = -32769 ORDER BY c2,c7 LIMIT 2;
c1 c2 c3 c4 c5 c6 c7 c1 c2 c3 c4 c5 c6 c7
Warnings:
Warning 1264 Out of range value for column 'c2' at row 1
SELECT * FROM t3 WHERE c2 = -32769 ORDER BY c2,c7 DESC; SELECT * FROM t3 WHERE c2 = -32769 ORDER BY c2,c7 DESC;
c1 c2 c3 c4 c5 c6 c7 c1 c2 c3 c4 c5 c6 c7
Warnings:
Warning 1264 Out of range value for column 'c2' at row 1
SELECT * FROM t3 WHERE c2 = -32769 ORDER BY c2,c7 DESC LIMIT 2; SELECT * FROM t3 WHERE c2 = -32769 ORDER BY c2,c7 DESC LIMIT 2;
c1 c2 c3 c4 c5 c6 c7 c1 c2 c3 c4 c5 c6 c7
Warnings:
Warning 1264 Out of range value for column 'c2' at row 1
SELECT * FROM t3 WHERE c2 <> -32769 ORDER BY c2,c7; SELECT * FROM t3 WHERE c2 <> -32769 ORDER BY c2,c7;
c1 c2 c3 c4 c5 c6 c7 c1 c2 c3 c4 c5 c6 c7
0 -32768 1 2 3 4 5 0 -32768 1 2 3 4 5
@ -11026,12 +11050,20 @@ c1 c2 c3 c4 c5 c6 c7
0 -32768 26 27 28 29 30 0 -32768 26 27 28 29 30
SELECT * FROM t3 WHERE c2 = 32768 ORDER BY c2,c7; SELECT * FROM t3 WHERE c2 = 32768 ORDER BY c2,c7;
c1 c2 c3 c4 c5 c6 c7 c1 c2 c3 c4 c5 c6 c7
Warnings:
Warning 1264 Out of range value for column 'c2' at row 1
SELECT * FROM t3 WHERE c2 = 32768 ORDER BY c2,c7 LIMIT 2; SELECT * FROM t3 WHERE c2 = 32768 ORDER BY c2,c7 LIMIT 2;
c1 c2 c3 c4 c5 c6 c7 c1 c2 c3 c4 c5 c6 c7
Warnings:
Warning 1264 Out of range value for column 'c2' at row 1
SELECT * FROM t3 WHERE c2 = 32768 ORDER BY c2,c7 DESC; SELECT * FROM t3 WHERE c2 = 32768 ORDER BY c2,c7 DESC;
c1 c2 c3 c4 c5 c6 c7 c1 c2 c3 c4 c5 c6 c7
Warnings:
Warning 1264 Out of range value for column 'c2' at row 1
SELECT * FROM t3 WHERE c2 = 32768 ORDER BY c2,c7 DESC LIMIT 2; SELECT * FROM t3 WHERE c2 = 32768 ORDER BY c2,c7 DESC LIMIT 2;
c1 c2 c3 c4 c5 c6 c7 c1 c2 c3 c4 c5 c6 c7
Warnings:
Warning 1264 Out of range value for column 'c2' at row 1
SELECT * FROM t3 WHERE c2 <> 32768 ORDER BY c2,c7; SELECT * FROM t3 WHERE c2 <> 32768 ORDER BY c2,c7;
c1 c2 c3 c4 c5 c6 c7 c1 c2 c3 c4 c5 c6 c7
0 -32768 1 2 3 4 5 0 -32768 1 2 3 4 5
@ -16440,12 +16472,20 @@ c1 c2 c3 c4 c5 c6 c7
0 -8388608 26 27 28 29 30 0 -8388608 26 27 28 29 30
SELECT * FROM t3 WHERE c2 = -8388609 ORDER BY c2,c7; SELECT * FROM t3 WHERE c2 = -8388609 ORDER BY c2,c7;
c1 c2 c3 c4 c5 c6 c7 c1 c2 c3 c4 c5 c6 c7
Warnings:
Warning 1264 Out of range value for column 'c2' at row 1
SELECT * FROM t3 WHERE c2 = -8388609 ORDER BY c2,c7 LIMIT 2; SELECT * FROM t3 WHERE c2 = -8388609 ORDER BY c2,c7 LIMIT 2;
c1 c2 c3 c4 c5 c6 c7 c1 c2 c3 c4 c5 c6 c7
Warnings:
Warning 1264 Out of range value for column 'c2' at row 1
SELECT * FROM t3 WHERE c2 = -8388609 ORDER BY c2,c7 DESC; SELECT * FROM t3 WHERE c2 = -8388609 ORDER BY c2,c7 DESC;
c1 c2 c3 c4 c5 c6 c7 c1 c2 c3 c4 c5 c6 c7
Warnings:
Warning 1264 Out of range value for column 'c2' at row 1
SELECT * FROM t3 WHERE c2 = -8388609 ORDER BY c2,c7 DESC LIMIT 2; SELECT * FROM t3 WHERE c2 = -8388609 ORDER BY c2,c7 DESC LIMIT 2;
c1 c2 c3 c4 c5 c6 c7 c1 c2 c3 c4 c5 c6 c7
Warnings:
Warning 1264 Out of range value for column 'c2' at row 1
SELECT * FROM t3 WHERE c2 <> -8388609 ORDER BY c2,c7; SELECT * FROM t3 WHERE c2 <> -8388609 ORDER BY c2,c7;
c1 c2 c3 c4 c5 c6 c7 c1 c2 c3 c4 c5 c6 c7
0 -8388608 1 2 3 4 5 0 -8388608 1 2 3 4 5
@ -16833,12 +16873,20 @@ c1 c2 c3 c4 c5 c6 c7
0 -8388608 26 27 28 29 30 0 -8388608 26 27 28 29 30
SELECT * FROM t3 WHERE c2 = 8388608 ORDER BY c2,c7; SELECT * FROM t3 WHERE c2 = 8388608 ORDER BY c2,c7;
c1 c2 c3 c4 c5 c6 c7 c1 c2 c3 c4 c5 c6 c7
Warnings:
Warning 1264 Out of range value for column 'c2' at row 1
SELECT * FROM t3 WHERE c2 = 8388608 ORDER BY c2,c7 LIMIT 2; SELECT * FROM t3 WHERE c2 = 8388608 ORDER BY c2,c7 LIMIT 2;
c1 c2 c3 c4 c5 c6 c7 c1 c2 c3 c4 c5 c6 c7
Warnings:
Warning 1264 Out of range value for column 'c2' at row 1
SELECT * FROM t3 WHERE c2 = 8388608 ORDER BY c2,c7 DESC; SELECT * FROM t3 WHERE c2 = 8388608 ORDER BY c2,c7 DESC;
c1 c2 c3 c4 c5 c6 c7 c1 c2 c3 c4 c5 c6 c7
Warnings:
Warning 1264 Out of range value for column 'c2' at row 1
SELECT * FROM t3 WHERE c2 = 8388608 ORDER BY c2,c7 DESC LIMIT 2; SELECT * FROM t3 WHERE c2 = 8388608 ORDER BY c2,c7 DESC LIMIT 2;
c1 c2 c3 c4 c5 c6 c7 c1 c2 c3 c4 c5 c6 c7
Warnings:
Warning 1264 Out of range value for column 'c2' at row 1
SELECT * FROM t3 WHERE c2 <> 8388608 ORDER BY c2,c7; SELECT * FROM t3 WHERE c2 <> 8388608 ORDER BY c2,c7;
c1 c2 c3 c4 c5 c6 c7 c1 c2 c3 c4 c5 c6 c7
0 -8388608 1 2 3 4 5 0 -8388608 1 2 3 4 5
@ -22339,12 +22387,20 @@ c1 c2 c3 c4 c5 c6 c7
0 -2147483648 26 27 28 29 30 0 -2147483648 26 27 28 29 30
SELECT * FROM t3 WHERE c2 = -2147483649 ORDER BY c2,c7; SELECT * FROM t3 WHERE c2 = -2147483649 ORDER BY c2,c7;
c1 c2 c3 c4 c5 c6 c7 c1 c2 c3 c4 c5 c6 c7
Warnings:
Warning 1264 Out of range value for column 'c2' at row 1
SELECT * FROM t3 WHERE c2 = -2147483649 ORDER BY c2,c7 LIMIT 2; SELECT * FROM t3 WHERE c2 = -2147483649 ORDER BY c2,c7 LIMIT 2;
c1 c2 c3 c4 c5 c6 c7 c1 c2 c3 c4 c5 c6 c7
Warnings:
Warning 1264 Out of range value for column 'c2' at row 1
SELECT * FROM t3 WHERE c2 = -2147483649 ORDER BY c2,c7 DESC; SELECT * FROM t3 WHERE c2 = -2147483649 ORDER BY c2,c7 DESC;
c1 c2 c3 c4 c5 c6 c7 c1 c2 c3 c4 c5 c6 c7
Warnings:
Warning 1264 Out of range value for column 'c2' at row 1
SELECT * FROM t3 WHERE c2 = -2147483649 ORDER BY c2,c7 DESC LIMIT 2; SELECT * FROM t3 WHERE c2 = -2147483649 ORDER BY c2,c7 DESC LIMIT 2;
c1 c2 c3 c4 c5 c6 c7 c1 c2 c3 c4 c5 c6 c7
Warnings:
Warning 1264 Out of range value for column 'c2' at row 1
SELECT * FROM t3 WHERE c2 <> -2147483649 ORDER BY c2,c7; SELECT * FROM t3 WHERE c2 <> -2147483649 ORDER BY c2,c7;
c1 c2 c3 c4 c5 c6 c7 c1 c2 c3 c4 c5 c6 c7
0 -2147483648 1 2 3 4 5 0 -2147483648 1 2 3 4 5
@ -22745,12 +22801,20 @@ c1 c2 c3 c4 c5 c6 c7
0 -2147483648 26 27 28 29 30 0 -2147483648 26 27 28 29 30
SELECT * FROM t3 WHERE c2 = 2147483648 ORDER BY c2,c7; SELECT * FROM t3 WHERE c2 = 2147483648 ORDER BY c2,c7;
c1 c2 c3 c4 c5 c6 c7 c1 c2 c3 c4 c5 c6 c7
Warnings:
Warning 1264 Out of range value for column 'c2' at row 1
SELECT * FROM t3 WHERE c2 = 2147483648 ORDER BY c2,c7 LIMIT 2; SELECT * FROM t3 WHERE c2 = 2147483648 ORDER BY c2,c7 LIMIT 2;
c1 c2 c3 c4 c5 c6 c7 c1 c2 c3 c4 c5 c6 c7
Warnings:
Warning 1264 Out of range value for column 'c2' at row 1
SELECT * FROM t3 WHERE c2 = 2147483648 ORDER BY c2,c7 DESC; SELECT * FROM t3 WHERE c2 = 2147483648 ORDER BY c2,c7 DESC;
c1 c2 c3 c4 c5 c6 c7 c1 c2 c3 c4 c5 c6 c7
Warnings:
Warning 1264 Out of range value for column 'c2' at row 1
SELECT * FROM t3 WHERE c2 = 2147483648 ORDER BY c2,c7 DESC LIMIT 2; SELECT * FROM t3 WHERE c2 = 2147483648 ORDER BY c2,c7 DESC LIMIT 2;
c1 c2 c3 c4 c5 c6 c7 c1 c2 c3 c4 c5 c6 c7
Warnings:
Warning 1264 Out of range value for column 'c2' at row 1
SELECT * FROM t3 WHERE c2 <> 2147483648 ORDER BY c2,c7; SELECT * FROM t3 WHERE c2 <> 2147483648 ORDER BY c2,c7;
c1 c2 c3 c4 c5 c6 c7 c1 c2 c3 c4 c5 c6 c7
0 -2147483648 1 2 3 4 5 0 -2147483648 1 2 3 4 5
@ -28261,12 +28325,20 @@ c1 c2 c3 c4 c5 c6 c7
0 -2147483648 26 27 28 29 30 0 -2147483648 26 27 28 29 30
SELECT * FROM t3 WHERE c2 = -2147483649 ORDER BY c2,c7; SELECT * FROM t3 WHERE c2 = -2147483649 ORDER BY c2,c7;
c1 c2 c3 c4 c5 c6 c7 c1 c2 c3 c4 c5 c6 c7
Warnings:
Warning 1264 Out of range value for column 'c2' at row 1
SELECT * FROM t3 WHERE c2 = -2147483649 ORDER BY c2,c7 LIMIT 2; SELECT * FROM t3 WHERE c2 = -2147483649 ORDER BY c2,c7 LIMIT 2;
c1 c2 c3 c4 c5 c6 c7 c1 c2 c3 c4 c5 c6 c7
Warnings:
Warning 1264 Out of range value for column 'c2' at row 1
SELECT * FROM t3 WHERE c2 = -2147483649 ORDER BY c2,c7 DESC; SELECT * FROM t3 WHERE c2 = -2147483649 ORDER BY c2,c7 DESC;
c1 c2 c3 c4 c5 c6 c7 c1 c2 c3 c4 c5 c6 c7
Warnings:
Warning 1264 Out of range value for column 'c2' at row 1
SELECT * FROM t3 WHERE c2 = -2147483649 ORDER BY c2,c7 DESC LIMIT 2; SELECT * FROM t3 WHERE c2 = -2147483649 ORDER BY c2,c7 DESC LIMIT 2;
c1 c2 c3 c4 c5 c6 c7 c1 c2 c3 c4 c5 c6 c7
Warnings:
Warning 1264 Out of range value for column 'c2' at row 1
SELECT * FROM t3 WHERE c2 <> -2147483649 ORDER BY c2,c7; SELECT * FROM t3 WHERE c2 <> -2147483649 ORDER BY c2,c7;
c1 c2 c3 c4 c5 c6 c7 c1 c2 c3 c4 c5 c6 c7
0 -2147483648 1 2 3 4 5 0 -2147483648 1 2 3 4 5
@ -28667,12 +28739,20 @@ c1 c2 c3 c4 c5 c6 c7
0 -2147483648 26 27 28 29 30 0 -2147483648 26 27 28 29 30
SELECT * FROM t3 WHERE c2 = 2147483648 ORDER BY c2,c7; SELECT * FROM t3 WHERE c2 = 2147483648 ORDER BY c2,c7;
c1 c2 c3 c4 c5 c6 c7 c1 c2 c3 c4 c5 c6 c7
Warnings:
Warning 1264 Out of range value for column 'c2' at row 1
SELECT * FROM t3 WHERE c2 = 2147483648 ORDER BY c2,c7 LIMIT 2; SELECT * FROM t3 WHERE c2 = 2147483648 ORDER BY c2,c7 LIMIT 2;
c1 c2 c3 c4 c5 c6 c7 c1 c2 c3 c4 c5 c6 c7
Warnings:
Warning 1264 Out of range value for column 'c2' at row 1
SELECT * FROM t3 WHERE c2 = 2147483648 ORDER BY c2,c7 DESC; SELECT * FROM t3 WHERE c2 = 2147483648 ORDER BY c2,c7 DESC;
c1 c2 c3 c4 c5 c6 c7 c1 c2 c3 c4 c5 c6 c7
Warnings:
Warning 1264 Out of range value for column 'c2' at row 1
SELECT * FROM t3 WHERE c2 = 2147483648 ORDER BY c2,c7 DESC LIMIT 2; SELECT * FROM t3 WHERE c2 = 2147483648 ORDER BY c2,c7 DESC LIMIT 2;
c1 c2 c3 c4 c5 c6 c7 c1 c2 c3 c4 c5 c6 c7
Warnings:
Warning 1264 Out of range value for column 'c2' at row 1
SELECT * FROM t3 WHERE c2 <> 2147483648 ORDER BY c2,c7; SELECT * FROM t3 WHERE c2 <> 2147483648 ORDER BY c2,c7;
c1 c2 c3 c4 c5 c6 c7 c1 c2 c3 c4 c5 c6 c7
0 -2147483648 1 2 3 4 5 0 -2147483648 1 2 3 4 5
@ -32315,7 +32395,7 @@ total_rows min_value max(c1)
23 0 18446744073709551615 23 0 18446744073709551615
SELECT * FROM t2 WHERE c2 = -9223372036854775809; SELECT * FROM t2 WHERE c2 = -9223372036854775809;
c1 c2 c3 c4 c5 c6 c7 c1 c2 c3 c4 c5 c6 c7
Error 1292 Truncated incorrect DECIMAL value: '' Error 1916 Got overflow when converting '-9223372036854775809' to INT. Value truncated.
Warnings: Warnings:
SELECT c1,c6 FROM t2; SELECT c1,c6 FROM t2;
c1 c6 c1 c6
@ -34161,19 +34241,19 @@ c1 c2 c3 c4 c5 c6 c7
SELECT * FROM t3 WHERE c2 = -9223372036854775809 ORDER BY c2,c7; SELECT * FROM t3 WHERE c2 = -9223372036854775809 ORDER BY c2,c7;
c1 c2 c3 c4 c5 c6 c7 c1 c2 c3 c4 c5 c6 c7
Warnings: Warnings:
Error 1292 Truncated incorrect DECIMAL value: '' Error 1916 Got overflow when converting '-9223372036854775809' to INT. Value truncated.
SELECT * FROM t3 WHERE c2 = -9223372036854775809 ORDER BY c2,c7 LIMIT 2; SELECT * FROM t3 WHERE c2 = -9223372036854775809 ORDER BY c2,c7 LIMIT 2;
c1 c2 c3 c4 c5 c6 c7 c1 c2 c3 c4 c5 c6 c7
Warnings: Warnings:
Error 1292 Truncated incorrect DECIMAL value: '' Error 1916 Got overflow when converting '-9223372036854775809' to INT. Value truncated.
SELECT * FROM t3 WHERE c2 = -9223372036854775809 ORDER BY c2,c7 DESC; SELECT * FROM t3 WHERE c2 = -9223372036854775809 ORDER BY c2,c7 DESC;
c1 c2 c3 c4 c5 c6 c7 c1 c2 c3 c4 c5 c6 c7
Warnings: Warnings:
Error 1292 Truncated incorrect DECIMAL value: '' Error 1916 Got overflow when converting '-9223372036854775809' to INT. Value truncated.
SELECT * FROM t3 WHERE c2 = -9223372036854775809 ORDER BY c2,c7 DESC LIMIT 2; SELECT * FROM t3 WHERE c2 = -9223372036854775809 ORDER BY c2,c7 DESC LIMIT 2;
c1 c2 c3 c4 c5 c6 c7 c1 c2 c3 c4 c5 c6 c7
Warnings: Warnings:
Error 1292 Truncated incorrect DECIMAL value: '' Error 1916 Got overflow when converting '-9223372036854775809' to INT. Value truncated.
SELECT * FROM t3 WHERE c2 <> -9223372036854775809 ORDER BY c2,c7; SELECT * FROM t3 WHERE c2 <> -9223372036854775809 ORDER BY c2,c7;
c1 c2 c3 c4 c5 c6 c7 c1 c2 c3 c4 c5 c6 c7
0 -9223372036854775808 1 2 3 4 5 0 -9223372036854775808 1 2 3 4 5
@ -34198,13 +34278,13 @@ c1 c2 c3 c4 c5 c6 c7
18446744073709551615 9223372036854775807 26 27 28 29 30 18446744073709551615 9223372036854775807 26 27 28 29 30
18446744073709551615 9223372036854775807 36 37 38 39 40 18446744073709551615 9223372036854775807 36 37 38 39 40
Warnings: Warnings:
Error 1292 Truncated incorrect DECIMAL value: '' Error 1916 Got overflow when converting '-9223372036854775809' to INT. Value truncated.
SELECT * FROM t3 WHERE c2 <> -9223372036854775809 ORDER BY c2,c7 LIMIT 2; SELECT * FROM t3 WHERE c2 <> -9223372036854775809 ORDER BY c2,c7 LIMIT 2;
c1 c2 c3 c4 c5 c6 c7 c1 c2 c3 c4 c5 c6 c7
0 -9223372036854775808 1 2 3 4 5 0 -9223372036854775808 1 2 3 4 5
0 -9223372036854775808 31 32 33 34 35 0 -9223372036854775808 31 32 33 34 35
Warnings: Warnings:
Error 1292 Truncated incorrect DECIMAL value: '' Error 1916 Got overflow when converting '-9223372036854775809' to INT. Value truncated.
SELECT * FROM t3 WHERE c2 > -9223372036854775809 ORDER BY c2,c7; SELECT * FROM t3 WHERE c2 > -9223372036854775809 ORDER BY c2,c7;
c1 c2 c3 c4 c5 c6 c7 c1 c2 c3 c4 c5 c6 c7
0 -9223372036854775808 1 2 3 4 5 0 -9223372036854775808 1 2 3 4 5
@ -34229,13 +34309,13 @@ c1 c2 c3 c4 c5 c6 c7
18446744073709551615 9223372036854775807 26 27 28 29 30 18446744073709551615 9223372036854775807 26 27 28 29 30
18446744073709551615 9223372036854775807 36 37 38 39 40 18446744073709551615 9223372036854775807 36 37 38 39 40
Warnings: Warnings:
Error 1292 Truncated incorrect DECIMAL value: '' Error 1916 Got overflow when converting '-9223372036854775809' to INT. Value truncated.
SELECT * FROM t3 WHERE c2 > -9223372036854775809 ORDER BY c2,c7 LIMIT 2; SELECT * FROM t3 WHERE c2 > -9223372036854775809 ORDER BY c2,c7 LIMIT 2;
c1 c2 c3 c4 c5 c6 c7 c1 c2 c3 c4 c5 c6 c7
0 -9223372036854775808 1 2 3 4 5 0 -9223372036854775808 1 2 3 4 5
0 -9223372036854775808 31 32 33 34 35 0 -9223372036854775808 31 32 33 34 35
Warnings: Warnings:
Error 1292 Truncated incorrect DECIMAL value: '' Error 1916 Got overflow when converting '-9223372036854775809' to INT. Value truncated.
SELECT * FROM t3 WHERE c2 >= -9223372036854775809 ORDER BY c2,c7; SELECT * FROM t3 WHERE c2 >= -9223372036854775809 ORDER BY c2,c7;
c1 c2 c3 c4 c5 c6 c7 c1 c2 c3 c4 c5 c6 c7
0 -9223372036854775808 1 2 3 4 5 0 -9223372036854775808 1 2 3 4 5
@ -34260,37 +34340,37 @@ c1 c2 c3 c4 c5 c6 c7
18446744073709551615 9223372036854775807 26 27 28 29 30 18446744073709551615 9223372036854775807 26 27 28 29 30
18446744073709551615 9223372036854775807 36 37 38 39 40 18446744073709551615 9223372036854775807 36 37 38 39 40
Warnings: Warnings:
Error 1292 Truncated incorrect DECIMAL value: '' Error 1916 Got overflow when converting '-9223372036854775809' to INT. Value truncated.
SELECT * FROM t3 WHERE c2 >= -9223372036854775809 ORDER BY c2,c7 LIMIT 2; SELECT * FROM t3 WHERE c2 >= -9223372036854775809 ORDER BY c2,c7 LIMIT 2;
c1 c2 c3 c4 c5 c6 c7 c1 c2 c3 c4 c5 c6 c7
0 -9223372036854775808 1 2 3 4 5 0 -9223372036854775808 1 2 3 4 5
0 -9223372036854775808 31 32 33 34 35 0 -9223372036854775808 31 32 33 34 35
Warnings: Warnings:
Error 1292 Truncated incorrect DECIMAL value: '' Error 1916 Got overflow when converting '-9223372036854775809' to INT. Value truncated.
SELECT * FROM t3 WHERE c2 < -9223372036854775809 ORDER BY c2,c7; SELECT * FROM t3 WHERE c2 < -9223372036854775809 ORDER BY c2,c7;
c1 c2 c3 c4 c5 c6 c7 c1 c2 c3 c4 c5 c6 c7
Warnings: Warnings:
Error 1292 Truncated incorrect DECIMAL value: '' Error 1916 Got overflow when converting '-9223372036854775809' to INT. Value truncated.
SELECT * FROM t3 WHERE c2 < -9223372036854775809 ORDER BY c2,c7 LIMIT 2; SELECT * FROM t3 WHERE c2 < -9223372036854775809 ORDER BY c2,c7 LIMIT 2;
c1 c2 c3 c4 c5 c6 c7 c1 c2 c3 c4 c5 c6 c7
Warnings: Warnings:
Error 1292 Truncated incorrect DECIMAL value: '' Error 1916 Got overflow when converting '-9223372036854775809' to INT. Value truncated.
SELECT * FROM t3 WHERE c2 <= -9223372036854775809 ORDER BY c2,c7; SELECT * FROM t3 WHERE c2 <= -9223372036854775809 ORDER BY c2,c7;
c1 c2 c3 c4 c5 c6 c7 c1 c2 c3 c4 c5 c6 c7
Warnings: Warnings:
Error 1292 Truncated incorrect DECIMAL value: '' Error 1916 Got overflow when converting '-9223372036854775809' to INT. Value truncated.
SELECT * FROM t3 WHERE c2 <= -9223372036854775809 ORDER BY c2,c7 LIMIT 2; SELECT * FROM t3 WHERE c2 <= -9223372036854775809 ORDER BY c2,c7 LIMIT 2;
c1 c2 c3 c4 c5 c6 c7 c1 c2 c3 c4 c5 c6 c7
Warnings: Warnings:
Error 1292 Truncated incorrect DECIMAL value: '' Error 1916 Got overflow when converting '-9223372036854775809' to INT. Value truncated.
SELECT * FROM t3 WHERE c2 <=> -9223372036854775809 ORDER BY c2,c7; SELECT * FROM t3 WHERE c2 <=> -9223372036854775809 ORDER BY c2,c7;
c1 c2 c3 c4 c5 c6 c7 c1 c2 c3 c4 c5 c6 c7
Warnings: Warnings:
Error 1292 Truncated incorrect DECIMAL value: '' Error 1916 Got overflow when converting '-9223372036854775809' to INT. Value truncated.
SELECT * FROM t3 WHERE c2 <=> -9223372036854775809 ORDER BY c2,c7 LIMIT 2; SELECT * FROM t3 WHERE c2 <=> -9223372036854775809 ORDER BY c2,c7 LIMIT 2;
c1 c2 c3 c4 c5 c6 c7 c1 c2 c3 c4 c5 c6 c7
Warnings: Warnings:
Error 1292 Truncated incorrect DECIMAL value: '' Error 1916 Got overflow when converting '-9223372036854775809' to INT. Value truncated.
SELECT * FROM t3 WHERE c2 BETWEEN -9223372036854775809 AND 9223372036854775808 ORDER BY c2,c7; SELECT * FROM t3 WHERE c2 BETWEEN -9223372036854775809 AND 9223372036854775808 ORDER BY c2,c7;
c1 c2 c3 c4 c5 c6 c7 c1 c2 c3 c4 c5 c6 c7
0 -9223372036854775808 1 2 3 4 5 0 -9223372036854775808 1 2 3 4 5
@ -34315,13 +34395,13 @@ c1 c2 c3 c4 c5 c6 c7
18446744073709551615 9223372036854775807 26 27 28 29 30 18446744073709551615 9223372036854775807 26 27 28 29 30
18446744073709551615 9223372036854775807 36 37 38 39 40 18446744073709551615 9223372036854775807 36 37 38 39 40
Warnings: Warnings:
Error 1292 Truncated incorrect DECIMAL value: '' Error 1916 Got overflow when converting '-9223372036854775809' to INT. Value truncated.
SELECT * FROM t3 WHERE c2 BETWEEN -9223372036854775809 AND 9223372036854775808 ORDER BY c2,c7 LIMIT 2; SELECT * FROM t3 WHERE c2 BETWEEN -9223372036854775809 AND 9223372036854775808 ORDER BY c2,c7 LIMIT 2;
c1 c2 c3 c4 c5 c6 c7 c1 c2 c3 c4 c5 c6 c7
0 -9223372036854775808 1 2 3 4 5 0 -9223372036854775808 1 2 3 4 5
0 -9223372036854775808 31 32 33 34 35 0 -9223372036854775808 31 32 33 34 35
Warnings: Warnings:
Error 1292 Truncated incorrect DECIMAL value: '' Error 1916 Got overflow when converting '-9223372036854775809' to INT. Value truncated.
SELECT * FROM t3 WHERE c2 IN (-9223372036854775809,9223372036854775808) ORDER BY c2,c7; SELECT * FROM t3 WHERE c2 IN (-9223372036854775809,9223372036854775808) ORDER BY c2,c7;
c1 c2 c3 c4 c5 c6 c7 c1 c2 c3 c4 c5 c6 c7
0 -9223372036854775808 1 2 3 4 5 0 -9223372036854775808 1 2 3 4 5
@ -34334,12 +34414,12 @@ SELECT * FROM t3 WHERE c2 >= -9223372036854775809 AND c2 < 9223372036854775808 A
c1 c2 c3 c4 c5 c6 c7 c1 c2 c3 c4 c5 c6 c7
0 -9223372036854775808 31 32 33 34 35 0 -9223372036854775808 31 32 33 34 35
Warnings: Warnings:
Error 1292 Truncated incorrect DECIMAL value: '' Error 1916 Got overflow when converting '-9223372036854775809' to INT. Value truncated.
SELECT * FROM t3 WHERE c2 >= -9223372036854775809 AND c2 < 9223372036854775808 AND c7 = 35 ORDER BY c2,c7 LIMIT 2; SELECT * FROM t3 WHERE c2 >= -9223372036854775809 AND c2 < 9223372036854775808 AND c7 = 35 ORDER BY c2,c7 LIMIT 2;
c1 c2 c3 c4 c5 c6 c7 c1 c2 c3 c4 c5 c6 c7
0 -9223372036854775808 31 32 33 34 35 0 -9223372036854775808 31 32 33 34 35
Warnings: Warnings:
Error 1292 Truncated incorrect DECIMAL value: '' Error 1916 Got overflow when converting '-9223372036854775809' to INT. Value truncated.
SELECT * FROM t3 WHERE c2 IS NULL ORDER BY c2,c7; SELECT * FROM t3 WHERE c2 IS NULL ORDER BY c2,c7;
c1 c2 c3 c4 c5 c6 c7 c1 c2 c3 c4 c5 c6 c7
105 NULL 102 103 104 105 106 105 NULL 102 103 104 105 106
@ -34397,13 +34477,13 @@ c1 c2 c3 c4 c5 c6 c7
18446744073709551615 9223372036854775807 36 37 38 39 40 18446744073709551615 9223372036854775807 36 37 38 39 40
18446744073709551615 9223372036854775807 26 27 28 29 30 18446744073709551615 9223372036854775807 26 27 28 29 30
Warnings: Warnings:
Error 1292 Truncated incorrect DECIMAL value: '' Error 1916 Got overflow when converting '-9223372036854775809' to INT. Value truncated.
SELECT * FROM t3 WHERE c2 <> -9223372036854775809 ORDER BY c2,c7 DESC LIMIT 2; SELECT * FROM t3 WHERE c2 <> -9223372036854775809 ORDER BY c2,c7 DESC LIMIT 2;
c1 c2 c3 c4 c5 c6 c7 c1 c2 c3 c4 c5 c6 c7
0 -9223372036854775808 31 32 33 34 35 0 -9223372036854775808 31 32 33 34 35
0 -9223372036854775808 1 2 3 4 5 0 -9223372036854775808 1 2 3 4 5
Warnings: Warnings:
Error 1292 Truncated incorrect DECIMAL value: '' Error 1916 Got overflow when converting '-9223372036854775809' to INT. Value truncated.
SELECT * FROM t3 WHERE c2 > -9223372036854775809 ORDER BY c2,c7 DESC; SELECT * FROM t3 WHERE c2 > -9223372036854775809 ORDER BY c2,c7 DESC;
c1 c2 c3 c4 c5 c6 c7 c1 c2 c3 c4 c5 c6 c7
0 -9223372036854775808 31 32 33 34 35 0 -9223372036854775808 31 32 33 34 35
@ -34428,13 +34508,13 @@ c1 c2 c3 c4 c5 c6 c7
18446744073709551615 9223372036854775807 36 37 38 39 40 18446744073709551615 9223372036854775807 36 37 38 39 40
18446744073709551615 9223372036854775807 26 27 28 29 30 18446744073709551615 9223372036854775807 26 27 28 29 30
Warnings: Warnings:
Error 1292 Truncated incorrect DECIMAL value: '' Error 1916 Got overflow when converting '-9223372036854775809' to INT. Value truncated.
SELECT * FROM t3 WHERE c2 > -9223372036854775809 ORDER BY c2,c7 DESC LIMIT 2; SELECT * FROM t3 WHERE c2 > -9223372036854775809 ORDER BY c2,c7 DESC LIMIT 2;
c1 c2 c3 c4 c5 c6 c7 c1 c2 c3 c4 c5 c6 c7
0 -9223372036854775808 31 32 33 34 35 0 -9223372036854775808 31 32 33 34 35
0 -9223372036854775808 1 2 3 4 5 0 -9223372036854775808 1 2 3 4 5
Warnings: Warnings:
Error 1292 Truncated incorrect DECIMAL value: '' Error 1916 Got overflow when converting '-9223372036854775809' to INT. Value truncated.
SELECT * FROM t3 WHERE c2 >= -9223372036854775809 ORDER BY c2,c7 DESC; SELECT * FROM t3 WHERE c2 >= -9223372036854775809 ORDER BY c2,c7 DESC;
c1 c2 c3 c4 c5 c6 c7 c1 c2 c3 c4 c5 c6 c7
0 -9223372036854775808 31 32 33 34 35 0 -9223372036854775808 31 32 33 34 35
@ -34459,37 +34539,37 @@ c1 c2 c3 c4 c5 c6 c7
18446744073709551615 9223372036854775807 36 37 38 39 40 18446744073709551615 9223372036854775807 36 37 38 39 40
18446744073709551615 9223372036854775807 26 27 28 29 30 18446744073709551615 9223372036854775807 26 27 28 29 30
Warnings: Warnings:
Error 1292 Truncated incorrect DECIMAL value: '' Error 1916 Got overflow when converting '-9223372036854775809' to INT. Value truncated.
SELECT * FROM t3 WHERE c2 >= -9223372036854775809 ORDER BY c2,c7 DESC LIMIT 2; SELECT * FROM t3 WHERE c2 >= -9223372036854775809 ORDER BY c2,c7 DESC LIMIT 2;
c1 c2 c3 c4 c5 c6 c7 c1 c2 c3 c4 c5 c6 c7
0 -9223372036854775808 31 32 33 34 35 0 -9223372036854775808 31 32 33 34 35
0 -9223372036854775808 1 2 3 4 5 0 -9223372036854775808 1 2 3 4 5
Warnings: Warnings:
Error 1292 Truncated incorrect DECIMAL value: '' Error 1916 Got overflow when converting '-9223372036854775809' to INT. Value truncated.
SELECT * FROM t3 WHERE c2 < -9223372036854775809 ORDER BY c2,c7 DESC; SELECT * FROM t3 WHERE c2 < -9223372036854775809 ORDER BY c2,c7 DESC;
c1 c2 c3 c4 c5 c6 c7 c1 c2 c3 c4 c5 c6 c7
Warnings: Warnings:
Error 1292 Truncated incorrect DECIMAL value: '' Error 1916 Got overflow when converting '-9223372036854775809' to INT. Value truncated.
SELECT * FROM t3 WHERE c2 < -9223372036854775809 ORDER BY c2,c7 DESC LIMIT 2; SELECT * FROM t3 WHERE c2 < -9223372036854775809 ORDER BY c2,c7 DESC LIMIT 2;
c1 c2 c3 c4 c5 c6 c7 c1 c2 c3 c4 c5 c6 c7
Warnings: Warnings:
Error 1292 Truncated incorrect DECIMAL value: '' Error 1916 Got overflow when converting '-9223372036854775809' to INT. Value truncated.
SELECT * FROM t3 WHERE c2 <= -9223372036854775809 ORDER BY c2,c7 DESC; SELECT * FROM t3 WHERE c2 <= -9223372036854775809 ORDER BY c2,c7 DESC;
c1 c2 c3 c4 c5 c6 c7 c1 c2 c3 c4 c5 c6 c7
Warnings: Warnings:
Error 1292 Truncated incorrect DECIMAL value: '' Error 1916 Got overflow when converting '-9223372036854775809' to INT. Value truncated.
SELECT * FROM t3 WHERE c2 <= -9223372036854775809 ORDER BY c2,c7 DESC LIMIT 2; SELECT * FROM t3 WHERE c2 <= -9223372036854775809 ORDER BY c2,c7 DESC LIMIT 2;
c1 c2 c3 c4 c5 c6 c7 c1 c2 c3 c4 c5 c6 c7
Warnings: Warnings:
Error 1292 Truncated incorrect DECIMAL value: '' Error 1916 Got overflow when converting '-9223372036854775809' to INT. Value truncated.
SELECT * FROM t3 WHERE c2 <=> -9223372036854775809 ORDER BY c2,c7 DESC; SELECT * FROM t3 WHERE c2 <=> -9223372036854775809 ORDER BY c2,c7 DESC;
c1 c2 c3 c4 c5 c6 c7 c1 c2 c3 c4 c5 c6 c7
Warnings: Warnings:
Error 1292 Truncated incorrect DECIMAL value: '' Error 1916 Got overflow when converting '-9223372036854775809' to INT. Value truncated.
SELECT * FROM t3 WHERE c2 <=> -9223372036854775809 ORDER BY c2,c7 DESC LIMIT 2; SELECT * FROM t3 WHERE c2 <=> -9223372036854775809 ORDER BY c2,c7 DESC LIMIT 2;
c1 c2 c3 c4 c5 c6 c7 c1 c2 c3 c4 c5 c6 c7
Warnings: Warnings:
Error 1292 Truncated incorrect DECIMAL value: '' Error 1916 Got overflow when converting '-9223372036854775809' to INT. Value truncated.
SELECT * FROM t3 WHERE c2 BETWEEN -9223372036854775809 AND 9223372036854775808 ORDER BY c2,c7 DESC; SELECT * FROM t3 WHERE c2 BETWEEN -9223372036854775809 AND 9223372036854775808 ORDER BY c2,c7 DESC;
c1 c2 c3 c4 c5 c6 c7 c1 c2 c3 c4 c5 c6 c7
0 -9223372036854775808 31 32 33 34 35 0 -9223372036854775808 31 32 33 34 35
@ -34514,13 +34594,13 @@ c1 c2 c3 c4 c5 c6 c7
18446744073709551615 9223372036854775807 36 37 38 39 40 18446744073709551615 9223372036854775807 36 37 38 39 40
18446744073709551615 9223372036854775807 26 27 28 29 30 18446744073709551615 9223372036854775807 26 27 28 29 30
Warnings: Warnings:
Error 1292 Truncated incorrect DECIMAL value: '' Error 1916 Got overflow when converting '-9223372036854775809' to INT. Value truncated.
SELECT * FROM t3 WHERE c2 BETWEEN -9223372036854775809 AND 9223372036854775808 ORDER BY c2,c7 DESC LIMIT 2; SELECT * FROM t3 WHERE c2 BETWEEN -9223372036854775809 AND 9223372036854775808 ORDER BY c2,c7 DESC LIMIT 2;
c1 c2 c3 c4 c5 c6 c7 c1 c2 c3 c4 c5 c6 c7
0 -9223372036854775808 31 32 33 34 35 0 -9223372036854775808 31 32 33 34 35
0 -9223372036854775808 1 2 3 4 5 0 -9223372036854775808 1 2 3 4 5
Warnings: Warnings:
Error 1292 Truncated incorrect DECIMAL value: '' Error 1916 Got overflow when converting '-9223372036854775809' to INT. Value truncated.
SELECT * FROM t3 WHERE c2 IN (-9223372036854775809,9223372036854775808) ORDER BY c2,c7 DESC; SELECT * FROM t3 WHERE c2 IN (-9223372036854775809,9223372036854775808) ORDER BY c2,c7 DESC;
c1 c2 c3 c4 c5 c6 c7 c1 c2 c3 c4 c5 c6 c7
0 -9223372036854775808 31 32 33 34 35 0 -9223372036854775808 31 32 33 34 35
@ -34533,12 +34613,12 @@ SELECT * FROM t3 WHERE c2 >= -9223372036854775809 AND c2 < 9223372036854775808 A
c1 c2 c3 c4 c5 c6 c7 c1 c2 c3 c4 c5 c6 c7
0 -9223372036854775808 31 32 33 34 35 0 -9223372036854775808 31 32 33 34 35
Warnings: Warnings:
Error 1292 Truncated incorrect DECIMAL value: '' Error 1916 Got overflow when converting '-9223372036854775809' to INT. Value truncated.
SELECT * FROM t3 WHERE c2 >= -9223372036854775809 AND c2 < 9223372036854775808 AND c7 = 35 ORDER BY c2,c7 DESC LIMIT 2; SELECT * FROM t3 WHERE c2 >= -9223372036854775809 AND c2 < 9223372036854775808 AND c7 = 35 ORDER BY c2,c7 DESC LIMIT 2;
c1 c2 c3 c4 c5 c6 c7 c1 c2 c3 c4 c5 c6 c7
0 -9223372036854775808 31 32 33 34 35 0 -9223372036854775808 31 32 33 34 35
Warnings: Warnings:
Error 1292 Truncated incorrect DECIMAL value: '' Error 1916 Got overflow when converting '-9223372036854775809' to INT. Value truncated.
SELECT * FROM t3 WHERE c2 IS NULL ORDER BY c2,c7 DESC; SELECT * FROM t3 WHERE c2 IS NULL ORDER BY c2,c7 DESC;
c1 c2 c3 c4 c5 c6 c7 c1 c2 c3 c4 c5 c6 c7
105 NULL 102 103 104 105 106 105 NULL 102 103 104 105 106
@ -34659,12 +34739,20 @@ c1 c2 c3 c4 c5 c6 c7
0 -9223372036854775808 31 32 33 34 35 0 -9223372036854775808 31 32 33 34 35
SELECT * FROM t3 WHERE c2 = 9223372036854775808 ORDER BY c2,c7; SELECT * FROM t3 WHERE c2 = 9223372036854775808 ORDER BY c2,c7;
c1 c2 c3 c4 c5 c6 c7 c1 c2 c3 c4 c5 c6 c7
Warnings:
Warning 1264 Out of range value for column 'c2' at row 1
SELECT * FROM t3 WHERE c2 = 9223372036854775808 ORDER BY c2,c7 LIMIT 2; SELECT * FROM t3 WHERE c2 = 9223372036854775808 ORDER BY c2,c7 LIMIT 2;
c1 c2 c3 c4 c5 c6 c7 c1 c2 c3 c4 c5 c6 c7
Warnings:
Warning 1264 Out of range value for column 'c2' at row 1
SELECT * FROM t3 WHERE c2 = 9223372036854775808 ORDER BY c2,c7 DESC; SELECT * FROM t3 WHERE c2 = 9223372036854775808 ORDER BY c2,c7 DESC;
c1 c2 c3 c4 c5 c6 c7 c1 c2 c3 c4 c5 c6 c7
Warnings:
Warning 1264 Out of range value for column 'c2' at row 1
SELECT * FROM t3 WHERE c2 = 9223372036854775808 ORDER BY c2,c7 DESC LIMIT 2; SELECT * FROM t3 WHERE c2 = 9223372036854775808 ORDER BY c2,c7 DESC LIMIT 2;
c1 c2 c3 c4 c5 c6 c7 c1 c2 c3 c4 c5 c6 c7
Warnings:
Warning 1264 Out of range value for column 'c2' at row 1
SELECT * FROM t3 WHERE c2 <> 9223372036854775808 ORDER BY c2,c7; SELECT * FROM t3 WHERE c2 <> 9223372036854775808 ORDER BY c2,c7;
c1 c2 c3 c4 c5 c6 c7 c1 c2 c3 c4 c5 c6 c7
0 -9223372036854775808 1 2 3 4 5 0 -9223372036854775808 1 2 3 4 5
@ -34782,13 +34870,13 @@ c1 c2 c3 c4 c5 c6 c7
18446744073709551615 9223372036854775807 26 27 28 29 30 18446744073709551615 9223372036854775807 26 27 28 29 30
18446744073709551615 9223372036854775807 36 37 38 39 40 18446744073709551615 9223372036854775807 36 37 38 39 40
Warnings: Warnings:
Error 1292 Truncated incorrect DECIMAL value: '' Error 1916 Got overflow when converting '-9223372036854775809' to INT. Value truncated.
SELECT * FROM t3 WHERE c2 BETWEEN -9223372036854775809 AND 9223372036854775808 ORDER BY c2,c7 LIMIT 2; SELECT * FROM t3 WHERE c2 BETWEEN -9223372036854775809 AND 9223372036854775808 ORDER BY c2,c7 LIMIT 2;
c1 c2 c3 c4 c5 c6 c7 c1 c2 c3 c4 c5 c6 c7
0 -9223372036854775808 1 2 3 4 5 0 -9223372036854775808 1 2 3 4 5
0 -9223372036854775808 31 32 33 34 35 0 -9223372036854775808 31 32 33 34 35
Warnings: Warnings:
Error 1292 Truncated incorrect DECIMAL value: '' Error 1916 Got overflow when converting '-9223372036854775809' to INT. Value truncated.
SELECT * FROM t3 WHERE c2 IN (-9223372036854775809,9223372036854775808) ORDER BY c2,c7; SELECT * FROM t3 WHERE c2 IN (-9223372036854775809,9223372036854775808) ORDER BY c2,c7;
c1 c2 c3 c4 c5 c6 c7 c1 c2 c3 c4 c5 c6 c7
0 -9223372036854775808 1 2 3 4 5 0 -9223372036854775808 1 2 3 4 5
@ -34801,12 +34889,12 @@ SELECT * FROM t3 WHERE c2 >= -9223372036854775809 AND c2 < 9223372036854775808 A
c1 c2 c3 c4 c5 c6 c7 c1 c2 c3 c4 c5 c6 c7
0 -9223372036854775808 31 32 33 34 35 0 -9223372036854775808 31 32 33 34 35
Warnings: Warnings:
Error 1292 Truncated incorrect DECIMAL value: '' Error 1916 Got overflow when converting '-9223372036854775809' to INT. Value truncated.
SELECT * FROM t3 WHERE c2 >= -9223372036854775809 AND c2 < 9223372036854775808 AND c7 = 35 ORDER BY c2,c7 LIMIT 2; SELECT * FROM t3 WHERE c2 >= -9223372036854775809 AND c2 < 9223372036854775808 AND c7 = 35 ORDER BY c2,c7 LIMIT 2;
c1 c2 c3 c4 c5 c6 c7 c1 c2 c3 c4 c5 c6 c7
0 -9223372036854775808 31 32 33 34 35 0 -9223372036854775808 31 32 33 34 35
Warnings: Warnings:
Error 1292 Truncated incorrect DECIMAL value: '' Error 1916 Got overflow when converting '-9223372036854775809' to INT. Value truncated.
SELECT * FROM t3 WHERE c2 IS NULL ORDER BY c2,c7; SELECT * FROM t3 WHERE c2 IS NULL ORDER BY c2,c7;
c1 c2 c3 c4 c5 c6 c7 c1 c2 c3 c4 c5 c6 c7
105 NULL 102 103 104 105 106 105 NULL 102 103 104 105 106
@ -34957,13 +35045,13 @@ c1 c2 c3 c4 c5 c6 c7
18446744073709551615 9223372036854775807 36 37 38 39 40 18446744073709551615 9223372036854775807 36 37 38 39 40
18446744073709551615 9223372036854775807 26 27 28 29 30 18446744073709551615 9223372036854775807 26 27 28 29 30
Warnings: Warnings:
Error 1292 Truncated incorrect DECIMAL value: '' Error 1916 Got overflow when converting '-9223372036854775809' to INT. Value truncated.
SELECT * FROM t3 WHERE c2 BETWEEN -9223372036854775809 AND 9223372036854775808 ORDER BY c2,c7 DESC LIMIT 2; SELECT * FROM t3 WHERE c2 BETWEEN -9223372036854775809 AND 9223372036854775808 ORDER BY c2,c7 DESC LIMIT 2;
c1 c2 c3 c4 c5 c6 c7 c1 c2 c3 c4 c5 c6 c7
0 -9223372036854775808 31 32 33 34 35 0 -9223372036854775808 31 32 33 34 35
0 -9223372036854775808 1 2 3 4 5 0 -9223372036854775808 1 2 3 4 5
Warnings: Warnings:
Error 1292 Truncated incorrect DECIMAL value: '' Error 1916 Got overflow when converting '-9223372036854775809' to INT. Value truncated.
SELECT * FROM t3 WHERE c2 IN (-9223372036854775809,9223372036854775808) ORDER BY c2,c7 DESC; SELECT * FROM t3 WHERE c2 IN (-9223372036854775809,9223372036854775808) ORDER BY c2,c7 DESC;
c1 c2 c3 c4 c5 c6 c7 c1 c2 c3 c4 c5 c6 c7
0 -9223372036854775808 31 32 33 34 35 0 -9223372036854775808 31 32 33 34 35
@ -34976,12 +35064,12 @@ SELECT * FROM t3 WHERE c2 >= -9223372036854775809 AND c2 < 9223372036854775808 A
c1 c2 c3 c4 c5 c6 c7 c1 c2 c3 c4 c5 c6 c7
0 -9223372036854775808 31 32 33 34 35 0 -9223372036854775808 31 32 33 34 35
Warnings: Warnings:
Error 1292 Truncated incorrect DECIMAL value: '' Error 1916 Got overflow when converting '-9223372036854775809' to INT. Value truncated.
SELECT * FROM t3 WHERE c2 >= -9223372036854775809 AND c2 < 9223372036854775808 AND c7 = 35 ORDER BY c2,c7 DESC LIMIT 2; SELECT * FROM t3 WHERE c2 >= -9223372036854775809 AND c2 < 9223372036854775808 AND c7 = 35 ORDER BY c2,c7 DESC LIMIT 2;
c1 c2 c3 c4 c5 c6 c7 c1 c2 c3 c4 c5 c6 c7
0 -9223372036854775808 31 32 33 34 35 0 -9223372036854775808 31 32 33 34 35
Warnings: Warnings:
Error 1292 Truncated incorrect DECIMAL value: '' Error 1916 Got overflow when converting '-9223372036854775809' to INT. Value truncated.
SELECT * FROM t3 WHERE c2 IS NULL ORDER BY c2,c7 DESC; SELECT * FROM t3 WHERE c2 IS NULL ORDER BY c2,c7 DESC;
c1 c2 c3 c4 c5 c6 c7 c1 c2 c3 c4 c5 c6 c7
105 NULL 102 103 104 105 106 105 NULL 102 103 104 105 106

View file

@ -40,12 +40,12 @@ INSERT INTO t4 VALUES('10.22.22','10.22.22','2009-01-26'),(1234567,1234567,'2009
Warnings: Warnings:
Warning 1265 Data truncated for column 'c1' at row 1 Warning 1265 Data truncated for column 'c1' at row 1
Warning 1265 Data truncated for column 'c2' at row 1 Warning 1265 Data truncated for column 'c2' at row 1
Warning 1264 Out of range value for column 'c1' at row 2 Warning 1265 Data truncated for column 'c1' at row 2
Warning 1264 Out of range value for column 'c2' at row 2 Warning 1265 Data truncated for column 'c2' at row 2
Warning 1264 Out of range value for column 'c1' at row 3 Warning 1265 Data truncated for column 'c1' at row 3
Warning 1264 Out of range value for column 'c2' at row 3 Warning 1265 Data truncated for column 'c2' at row 3
Warning 1264 Out of range value for column 'c1' at row 4 Warning 1265 Data truncated for column 'c1' at row 4
Warning 1264 Out of range value for column 'c2' at row 4 Warning 1265 Data truncated for column 'c2' at row 4
Warning 1265 Data truncated for column 'c1' at row 6 Warning 1265 Data truncated for column 'c1' at row 6
Warning 1265 Data truncated for column 'c2' at row 6 Warning 1265 Data truncated for column 'c2' at row 6
INSERT INTO t1 VALUES('8:29:45',NULL,'2009-02-01'); INSERT INTO t1 VALUES('8:29:45',NULL,'2009-02-01');
@ -135,6 +135,8 @@ c1 c2 c3
-838:59:59 -838:59:59 2009-01-08 -838:59:59 -838:59:59 2009-01-08
00:00:00 00:00:00 2009-01-09 00:00:00 00:00:00 2009-01-09
00:00:00 00:00:00 2009-01-27 00:00:00 00:00:00 2009-01-27
00:00:00 00:00:00 2009-01-28
00:00:00 00:00:00 2009-01-29
00:00:10 00:00:10 2009-01-26 00:00:10 00:00:10 2009-01-26
00:00:11 00:00:11 2009-01-20 00:00:11 00:00:11 2009-01-20
00:00:12 00:00:12 2009-01-13 00:00:12 00:00:12 2009-01-13
@ -160,8 +162,6 @@ c1 c2 c3
491:22:33 491:22:33 2009-01-04 491:22:33 491:22:33 2009-01-04
825:23:00 825:23:00 2009-01-05 825:23:00 825:23:00 2009-01-05
838:59:59 838:59:59 2009-01-10 838:59:59 838:59:59 2009-01-10
838:59:59 838:59:59 2009-01-28
838:59:59 838:59:59 2009-01-29
SELECT * FROM t1; SELECT * FROM t1;
c1 c2 c3 c1 c2 c3
-838:59:59 -838:59:59 2009-01-21 -838:59:59 -838:59:59 2009-01-21
@ -1650,8 +1650,10 @@ SELECT * FROM t1 WHERE c2 BETWEEN NULL AND '10:22:33' ORDER BY c2 LIMIT 2;
c1 c2 c3 c1 c2 c3
SELECT * FROM t1 WHERE c2 IN (NULL,'10:22:33') ORDER BY c2; SELECT * FROM t1 WHERE c2 IN (NULL,'10:22:33') ORDER BY c2;
c1 c2 c3 c1 c2 c3
10:22:33 10:22:33 2009-01-02
SELECT * FROM t1 WHERE c2 IN (NULL,'10:22:33') ORDER BY c2 LIMIT 2; SELECT * FROM t1 WHERE c2 IN (NULL,'10:22:33') ORDER BY c2 LIMIT 2;
c1 c2 c3 c1 c2 c3
10:22:33 10:22:33 2009-01-02
SELECT * FROM t1 WHERE c2 >= NULL AND c2 < '10:22:33' AND c1 = '491:22:33' ORDER BY c2; SELECT * FROM t1 WHERE c2 >= NULL AND c2 < '10:22:33' AND c1 = '491:22:33' ORDER BY c2;
c1 c2 c3 c1 c2 c3
SELECT * FROM t1 WHERE c2 >= NULL AND c2 < '10:22:33' AND c1 = '491:22:33' ORDER BY c2 LIMIT 2; SELECT * FROM t1 WHERE c2 >= NULL AND c2 < '10:22:33' AND c1 = '491:22:33' ORDER BY c2 LIMIT 2;
@ -1723,8 +1725,10 @@ SELECT * FROM t1 WHERE c2 BETWEEN NULL AND '10:22:33' ORDER BY c2 DESC LIMIT 2;
c1 c2 c3 c1 c2 c3
SELECT * FROM t1 WHERE c2 IN (NULL,'10:22:33') ORDER BY c2 DESC; SELECT * FROM t1 WHERE c2 IN (NULL,'10:22:33') ORDER BY c2 DESC;
c1 c2 c3 c1 c2 c3
10:22:33 10:22:33 2009-01-02
SELECT * FROM t1 WHERE c2 IN (NULL,'10:22:33') ORDER BY c2 DESC LIMIT 2; SELECT * FROM t1 WHERE c2 IN (NULL,'10:22:33') ORDER BY c2 DESC LIMIT 2;
c1 c2 c3 c1 c2 c3
10:22:33 10:22:33 2009-01-02
SELECT * FROM t1 WHERE c2 >= NULL AND c2 < '10:22:33' AND c1 = '491:22:33' ORDER BY c2 DESC; SELECT * FROM t1 WHERE c2 >= NULL AND c2 < '10:22:33' AND c1 = '491:22:33' ORDER BY c2 DESC;
c1 c2 c3 c1 c2 c3
SELECT * FROM t1 WHERE c2 >= NULL AND c2 < '10:22:33' AND c1 = '491:22:33' ORDER BY c2 DESC LIMIT 2; SELECT * FROM t1 WHERE c2 >= NULL AND c2 < '10:22:33' AND c1 = '491:22:33' ORDER BY c2 DESC LIMIT 2;
@ -3218,8 +3222,10 @@ SELECT * FROM t2 WHERE c2 BETWEEN NULL AND '10:22:33' ORDER BY c1,c2 LIMIT 2;
c1 c2 c3 c1 c2 c3
SELECT * FROM t2 WHERE c2 IN (NULL,'10:22:33') ORDER BY c1,c2; SELECT * FROM t2 WHERE c2 IN (NULL,'10:22:33') ORDER BY c1,c2;
c1 c2 c3 c1 c2 c3
10:22:33 10:22:33 2009-01-02
SELECT * FROM t2 WHERE c2 IN (NULL,'10:22:33') ORDER BY c1,c2 LIMIT 2; SELECT * FROM t2 WHERE c2 IN (NULL,'10:22:33') ORDER BY c1,c2 LIMIT 2;
c1 c2 c3 c1 c2 c3
10:22:33 10:22:33 2009-01-02
SELECT * FROM t2 WHERE c2 >= NULL AND c2 < '10:22:33' AND c1 = '491:22:33' ORDER BY c1,c2; SELECT * FROM t2 WHERE c2 >= NULL AND c2 < '10:22:33' AND c1 = '491:22:33' ORDER BY c1,c2;
c1 c2 c3 c1 c2 c3
SELECT * FROM t2 WHERE c2 >= NULL AND c2 < '10:22:33' AND c1 = '491:22:33' ORDER BY c1,c2 LIMIT 2; SELECT * FROM t2 WHERE c2 >= NULL AND c2 < '10:22:33' AND c1 = '491:22:33' ORDER BY c1,c2 LIMIT 2;
@ -3287,8 +3293,10 @@ SELECT * FROM t2 WHERE c2 BETWEEN NULL AND '10:22:33' ORDER BY c1,c2 DESC LIMIT
c1 c2 c3 c1 c2 c3
SELECT * FROM t2 WHERE c2 IN (NULL,'10:22:33') ORDER BY c1,c2 DESC; SELECT * FROM t2 WHERE c2 IN (NULL,'10:22:33') ORDER BY c1,c2 DESC;
c1 c2 c3 c1 c2 c3
10:22:33 10:22:33 2009-01-02
SELECT * FROM t2 WHERE c2 IN (NULL,'10:22:33') ORDER BY c1,c2 DESC LIMIT 2; SELECT * FROM t2 WHERE c2 IN (NULL,'10:22:33') ORDER BY c1,c2 DESC LIMIT 2;
c1 c2 c3 c1 c2 c3
10:22:33 10:22:33 2009-01-02
SELECT * FROM t2 WHERE c2 >= NULL AND c2 < '10:22:33' AND c1 = '491:22:33' ORDER BY c1,c2 DESC; SELECT * FROM t2 WHERE c2 >= NULL AND c2 < '10:22:33' AND c1 = '491:22:33' ORDER BY c1,c2 DESC;
c1 c2 c3 c1 c2 c3
SELECT * FROM t2 WHERE c2 >= NULL AND c2 < '10:22:33' AND c1 = '491:22:33' ORDER BY c1,c2 DESC LIMIT 2; SELECT * FROM t2 WHERE c2 >= NULL AND c2 < '10:22:33' AND c1 = '491:22:33' ORDER BY c1,c2 DESC LIMIT 2;
@ -4814,8 +4822,10 @@ SELECT * FROM t3 WHERE c2 BETWEEN NULL AND '10:22:33' ORDER BY c1,c2 LIMIT 2;
c1 c2 c3 c1 c2 c3
SELECT * FROM t3 WHERE c2 IN (NULL,'10:22:33') ORDER BY c1,c2; SELECT * FROM t3 WHERE c2 IN (NULL,'10:22:33') ORDER BY c1,c2;
c1 c2 c3 c1 c2 c3
10:22:33 10:22:33 2009-01-02
SELECT * FROM t3 WHERE c2 IN (NULL,'10:22:33') ORDER BY c1,c2 LIMIT 2; SELECT * FROM t3 WHERE c2 IN (NULL,'10:22:33') ORDER BY c1,c2 LIMIT 2;
c1 c2 c3 c1 c2 c3
10:22:33 10:22:33 2009-01-02
SELECT * FROM t3 WHERE c2 >= NULL AND c2 < '10:22:33' AND c1 = '491:22:33' ORDER BY c1,c2; SELECT * FROM t3 WHERE c2 >= NULL AND c2 < '10:22:33' AND c1 = '491:22:33' ORDER BY c1,c2;
c1 c2 c3 c1 c2 c3
SELECT * FROM t3 WHERE c2 >= NULL AND c2 < '10:22:33' AND c1 = '491:22:33' ORDER BY c1,c2 LIMIT 2; SELECT * FROM t3 WHERE c2 >= NULL AND c2 < '10:22:33' AND c1 = '491:22:33' ORDER BY c1,c2 LIMIT 2;
@ -4887,8 +4897,10 @@ SELECT * FROM t3 WHERE c2 BETWEEN NULL AND '10:22:33' ORDER BY c1,c2 DESC LIMIT
c1 c2 c3 c1 c2 c3
SELECT * FROM t3 WHERE c2 IN (NULL,'10:22:33') ORDER BY c1,c2 DESC; SELECT * FROM t3 WHERE c2 IN (NULL,'10:22:33') ORDER BY c1,c2 DESC;
c1 c2 c3 c1 c2 c3
10:22:33 10:22:33 2009-01-02
SELECT * FROM t3 WHERE c2 IN (NULL,'10:22:33') ORDER BY c1,c2 DESC LIMIT 2; SELECT * FROM t3 WHERE c2 IN (NULL,'10:22:33') ORDER BY c1,c2 DESC LIMIT 2;
c1 c2 c3 c1 c2 c3
10:22:33 10:22:33 2009-01-02
SELECT * FROM t3 WHERE c2 >= NULL AND c2 < '10:22:33' AND c1 = '491:22:33' ORDER BY c1,c2 DESC; SELECT * FROM t3 WHERE c2 >= NULL AND c2 < '10:22:33' AND c1 = '491:22:33' ORDER BY c1,c2 DESC;
c1 c2 c3 c1 c2 c3
SELECT * FROM t3 WHERE c2 >= NULL AND c2 < '10:22:33' AND c1 = '491:22:33' ORDER BY c1,c2 DESC LIMIT 2; SELECT * FROM t3 WHERE c2 >= NULL AND c2 < '10:22:33' AND c1 = '491:22:33' ORDER BY c1,c2 DESC LIMIT 2;
@ -5008,28 +5020,24 @@ c1 MIN(c2)
838:59:59 838:59:59 838:59:59 838:59:59
SELECT CAST(235959.123456 AS TIME); SELECT CAST(235959.123456 AS TIME);
CAST(235959.123456 AS TIME) CAST(235959.123456 AS TIME)
23:59:59.123456 23:59:59
SELECT CAST(0.235959123456e+6 AS TIME); SELECT CAST(0.235959123456e+6 AS TIME);
CAST(0.235959123456e+6 AS TIME) CAST(0.235959123456e+6 AS TIME)
23:59:59.123456 23:59:59
SELECT CAST(235959123456e-6 AS TIME); SELECT CAST(235959123456e-6 AS TIME);
CAST(235959123456e-6 AS TIME) CAST(235959123456e-6 AS TIME)
23:59:59.123456 23:59:59
SELECT CAST(235959.1234567 AS TIME); SELECT CAST(235959.1234567 AS TIME);
CAST(235959.1234567 AS TIME) CAST(235959.1234567 AS TIME)
23:59:59.123456 23:59:59
Warnings:
Warning 1292 Truncated incorrect time value: '235959.1234567'
SELECT CAST(0.2359591234567e6 AS TIME); SELECT CAST(0.2359591234567e6 AS TIME);
CAST(0.2359591234567e6 AS TIME) CAST(0.2359591234567e6 AS TIME)
23:59:59.123456 23:59:59
Warnings:
Warning 1292 Truncated incorrect time value: '235959.1234567'
SELECT CAST(0.2359591234567e+30 AS TIME); SELECT CAST(0.2359591234567e+30 AS TIME);
CAST(0.2359591234567e+30 AS TIME) CAST(0.2359591234567e+30 AS TIME)
NULL NULL
Warnings: Warnings:
Warning 1292 Truncated incorrect time value: '2.359591234567e+29' Warning 1292 Incorrect datetime value: '2.359591234567e+29'
select cast('100:55:50' as time) < cast('24:00:00' as time); select cast('100:55:50' as time) < cast('24:00:00' as time);
cast('100:55:50' as time) < cast('24:00:00' as time) cast('100:55:50' as time) < cast('24:00:00' as time)
0 0
@ -5077,7 +5085,6 @@ c1 c2 c3
INSERT INTO t2(c1,c2) VALUES('12:34:56.78','12:34:56.78') ON DUPLICATE KEY UPDATE c1='12:34:56.79',c2='12:34:57.78'; INSERT INTO t2(c1,c2) VALUES('12:34:56.78','12:34:56.78') ON DUPLICATE KEY UPDATE c1='12:34:56.79',c2='12:34:57.78';
SELECT * FROM t2 WHERE c1='12:34:56.79' AND c2='12:34:57.78' /* 1 row */; SELECT * FROM t2 WHERE c1='12:34:56.79' AND c2='12:34:57.78' /* 1 row */;
c1 c2 c3 c1 c2 c3
12:34:56 12:34:57 2009-01-01
SELECT * FROM t1 WHERE c1='10:22:35' AND c2='33 9:23' /* no rows */; SELECT * FROM t1 WHERE c1='10:22:35' AND c2='33 9:23' /* no rows */;
c1 c2 c3 c1 c2 c3
INSERT INTO t1(c1,c2) VALUES('10:22:34','34 9:23') ON DUPLICATE KEY UPDATE c1='10:22:35',c2='33 9:23'; INSERT INTO t1(c1,c2) VALUES('10:22:34','34 9:23') ON DUPLICATE KEY UPDATE c1='10:22:35',c2='33 9:23';
@ -5137,8 +5144,8 @@ c1 c2 c3
09:36:00 09:36:00 2009-01-25 09:36:00 09:36:00 2009-01-25
00:00:10 00:00:10 2009-01-26 00:00:10 00:00:10 2009-01-26
00:00:00 00:00:00 2009-01-27 00:00:00 00:00:00 2009-01-27
838:59:59 838:59:59 2009-01-28 00:00:00 00:00:00 2009-01-28
838:59:59 838:59:59 2009-01-29 00:00:00 00:00:00 2009-01-29
262:22:00 262:22:00 2009-01-30 262:22:00 262:22:00 2009-01-30
00:00:12 00:00:12 2009-01-31 00:00:12 00:00:12 2009-01-31
08:29:45 NULL 2009-02-01 08:29:45 NULL 2009-02-01
@ -5146,15 +5153,39 @@ c1 c2 c3
TRUNCATE TABLE t5; TRUNCATE TABLE t5;
INSERT INTO t5 SELECT * FROM t4 WHERE c1 >='12colon34colon56'; INSERT INTO t5 SELECT * FROM t4 WHERE c1 >='12colon34colon56';
Warnings: Warnings:
Warning 1292 Incorrect time value: '12colon34colon56' for column 'c1' at row 1 Warning 1292 Truncated incorrect time value: '12colon34colon56'
SELECT * FROM t5; SELECT * FROM t5;
c1 c2 c3 c1 c2 c3
12:34:56 12:34:56 2009-01-01
10:22:33 10:22:33 2009-01-02
01:23:00 01:23:00 2009-01-03
491:22:33 491:22:33 2009-01-04 491:22:33 491:22:33 2009-01-04
825:23:00 825:23:00 2009-01-05 825:23:00 825:23:00 2009-01-05
10:00:00 10:00:00 2009-01-06
00:00:45 00:00:45 2009-01-07
00:00:00 00:00:00 2009-01-09
838:59:59 838:59:59 2009-01-10 838:59:59 838:59:59 2009-01-10
838:59:59 838:59:59 2009-01-28 10:11:12 10:11:12 2009-01-11
838:59:59 838:59:59 2009-01-29 11:11:12 11:11:12 2009-01-12
00:00:12 00:00:12 2009-01-13
00:12:34 00:12:34 2009-01-14
12:34:58 12:34:58 2009-01-15
12:35:56 12:35:56 2009-01-16
11:11:27 11:11:27 2009-01-17
08:03:02 08:03:02 2009-01-18
00:11:12 00:11:12 2009-01-19
00:00:11 00:00:11 2009-01-20
00:12:30 00:12:30 2009-01-23
09:00:45 09:00:45 2009-01-24
09:36:00 09:36:00 2009-01-25
00:00:10 00:00:10 2009-01-26
00:00:00 00:00:00 2009-01-27
00:00:00 00:00:00 2009-01-28
00:00:00 00:00:00 2009-01-29
262:22:00 262:22:00 2009-01-30 262:22:00 262:22:00 2009-01-30
00:00:12 00:00:12 2009-01-31
08:29:45 NULL 2009-02-01
00:00:00 07:23:55 NULL
TRUNCATE TABLE t5; TRUNCATE TABLE t5;
DROP TABLE t5; DROP TABLE t5;
DROP TABLE t1,t2,t3,t4; DROP TABLE t1,t2,t3,t4;

View file

@ -49,7 +49,7 @@ SELECT CONCAT(BIN(c1),BIN(c2),BIN(c3)) FROM t2;
CONCAT(BIN(c1),BIN(c2),BIN(c3)) CONCAT(BIN(c1),BIN(c2),BIN(c3))
000 000
CREATE TABLE t3 (c1 BIT(65)); CREATE TABLE t3 (c1 BIT(65));
ERROR 42000: Display width out of range for column 'c1' (max = 64) ERROR 42000: Display width out of range for 'c1' (max = 64)
CREATE TABLE t4(i INT, b BIT NOT NULL); CREATE TABLE t4(i INT, b BIT NOT NULL);
ALTER TABLE t4 ADD PRIMARY KEY (i); ALTER TABLE t4 ADD PRIMARY KEY (i);
CREATE TABLE t5(c1 BIT(0) NOT NULL PRIMARY KEY, c2 BIT(0)); CREATE TABLE t5(c1 BIT(0) NOT NULL PRIMARY KEY, c2 BIT(0));
@ -854,7 +854,7 @@ CONCAT(BIN(c1),BIN(c2),BIN(c3))
000 000
111 111
CREATE TABLE t3 (c1 BIT(65)); CREATE TABLE t3 (c1 BIT(65));
ERROR 42000: Display width out of range for column 'c1' (max = 64) ERROR 42000: Display width out of range for 'c1' (max = 64)
CREATE TABLE t4(i INT, b BIT NOT NULL); CREATE TABLE t4(i INT, b BIT NOT NULL);
ALTER TABLE t4 ADD PRIMARY KEY (i); ALTER TABLE t4 ADD PRIMARY KEY (i);
CREATE TABLE t5(c1 BIT(1) NOT NULL PRIMARY KEY, c2 BIT(1)); CREATE TABLE t5(c1 BIT(1) NOT NULL PRIMARY KEY, c2 BIT(1));
@ -1704,7 +1704,7 @@ CONCAT(BIN(c1),BIN(c2),BIN(c3))
111111 111111
111111 111111
CREATE TABLE t3 (c1 BIT(65)); CREATE TABLE t3 (c1 BIT(65));
ERROR 42000: Display width out of range for column 'c1' (max = 64) ERROR 42000: Display width out of range for 'c1' (max = 64)
CREATE TABLE t4(i INT, b BIT NOT NULL); CREATE TABLE t4(i INT, b BIT NOT NULL);
ALTER TABLE t4 ADD PRIMARY KEY (i); ALTER TABLE t4 ADD PRIMARY KEY (i);
CREATE TABLE t5(c1 BIT(2) NOT NULL PRIMARY KEY, c2 BIT(2)); CREATE TABLE t5(c1 BIT(2) NOT NULL PRIMARY KEY, c2 BIT(2));
@ -2619,7 +2619,7 @@ CONCAT(BIN(c1),BIN(c2),BIN(c3))
111111111111 111111111111
111111111111 111111111111
CREATE TABLE t3 (c1 BIT(65)); CREATE TABLE t3 (c1 BIT(65));
ERROR 42000: Display width out of range for column 'c1' (max = 64) ERROR 42000: Display width out of range for 'c1' (max = 64)
CREATE TABLE t4(i INT, b BIT NOT NULL); CREATE TABLE t4(i INT, b BIT NOT NULL);
ALTER TABLE t4 ADD PRIMARY KEY (i); ALTER TABLE t4 ADD PRIMARY KEY (i);
CREATE TABLE t5(c1 BIT(4) NOT NULL PRIMARY KEY, c2 BIT(4)); CREATE TABLE t5(c1 BIT(4) NOT NULL PRIMARY KEY, c2 BIT(4));
@ -3692,7 +3692,7 @@ CONCAT(BIN(c1),BIN(c2),BIN(c3))
111111111111111111111111 111111111111111111111111
111111111111111111111111 111111111111111111111111
CREATE TABLE t3 (c1 BIT(65)); CREATE TABLE t3 (c1 BIT(65));
ERROR 42000: Display width out of range for column 'c1' (max = 64) ERROR 42000: Display width out of range for 'c1' (max = 64)
CREATE TABLE t4(i INT, b BIT NOT NULL); CREATE TABLE t4(i INT, b BIT NOT NULL);
ALTER TABLE t4 ADD PRIMARY KEY (i); ALTER TABLE t4 ADD PRIMARY KEY (i);
CREATE TABLE t5(c1 BIT(8) NOT NULL PRIMARY KEY, c2 BIT(8)); CREATE TABLE t5(c1 BIT(8) NOT NULL PRIMARY KEY, c2 BIT(8));
@ -5211,7 +5211,7 @@ CONCAT(BIN(c1),BIN(c2),BIN(c3))
111111111111111111111111111111111111111111111111 111111111111111111111111111111111111111111111111
111111111111111111111111111111111111111111111111 111111111111111111111111111111111111111111111111
CREATE TABLE t3 (c1 BIT(65)); CREATE TABLE t3 (c1 BIT(65));
ERROR 42000: Display width out of range for column 'c1' (max = 64) ERROR 42000: Display width out of range for 'c1' (max = 64)
CREATE TABLE t4(i INT, b BIT NOT NULL); CREATE TABLE t4(i INT, b BIT NOT NULL);
ALTER TABLE t4 ADD PRIMARY KEY (i); ALTER TABLE t4 ADD PRIMARY KEY (i);
CREATE TABLE t5(c1 BIT(16) NOT NULL PRIMARY KEY, c2 BIT(16)); CREATE TABLE t5(c1 BIT(16) NOT NULL PRIMARY KEY, c2 BIT(16));
@ -7252,7 +7252,7 @@ CONCAT(BIN(c1),BIN(c2),BIN(c3))
111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111 111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111
111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111 111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111
CREATE TABLE t3 (c1 BIT(65)); CREATE TABLE t3 (c1 BIT(65));
ERROR 42000: Display width out of range for column 'c1' (max = 64) ERROR 42000: Display width out of range for 'c1' (max = 64)
CREATE TABLE t4(i INT, b BIT NOT NULL); CREATE TABLE t4(i INT, b BIT NOT NULL);
ALTER TABLE t4 ADD PRIMARY KEY (i); ALTER TABLE t4 ADD PRIMARY KEY (i);
CREATE TABLE t5(c1 BIT(32) NOT NULL PRIMARY KEY, c2 BIT(32)); CREATE TABLE t5(c1 BIT(32) NOT NULL PRIMARY KEY, c2 BIT(32));
@ -10587,7 +10587,7 @@ CONCAT(BIN(c1),BIN(c2),BIN(c3))
111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111 111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111
111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111 111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111
CREATE TABLE t3 (c1 BIT(65)); CREATE TABLE t3 (c1 BIT(65));
ERROR 42000: Display width out of range for column 'c1' (max = 64) ERROR 42000: Display width out of range for 'c1' (max = 64)
CREATE TABLE t4(i INT, b BIT NOT NULL); CREATE TABLE t4(i INT, b BIT NOT NULL);
ALTER TABLE t4 ADD PRIMARY KEY (i); ALTER TABLE t4 ADD PRIMARY KEY (i);
CREATE TABLE t5(c1 BIT(64) NOT NULL PRIMARY KEY, c2 BIT(64)); CREATE TABLE t5(c1 BIT(64) NOT NULL PRIMARY KEY, c2 BIT(64));
@ -11419,7 +11419,7 @@ SELECT CONCAT(BIN(c1),BIN(c2),BIN(c3)) FROM t2;
CONCAT(BIN(c1),BIN(c2),BIN(c3)) CONCAT(BIN(c1),BIN(c2),BIN(c3))
111 111
CREATE TABLE t3 (c1 BIT(65)); CREATE TABLE t3 (c1 BIT(65));
ERROR 42000: Display width out of range for column 'c1' (max = 64) ERROR 42000: Display width out of range for 'c1' (max = 64)
CREATE TABLE t4(i INT, b BIT NOT NULL); CREATE TABLE t4(i INT, b BIT NOT NULL);
ALTER TABLE t4 ADD PRIMARY KEY (i); ALTER TABLE t4 ADD PRIMARY KEY (i);
CREATE TABLE t5(c1 BIT(0) NOT NULL PRIMARY KEY, c2 BIT(0)); CREATE TABLE t5(c1 BIT(0) NOT NULL PRIMARY KEY, c2 BIT(0));
@ -12224,7 +12224,7 @@ CONCAT(BIN(c1),BIN(c2),BIN(c3))
111 111
111 111
CREATE TABLE t3 (c1 BIT(65)); CREATE TABLE t3 (c1 BIT(65));
ERROR 42000: Display width out of range for column 'c1' (max = 64) ERROR 42000: Display width out of range for 'c1' (max = 64)
CREATE TABLE t4(i INT, b BIT NOT NULL); CREATE TABLE t4(i INT, b BIT NOT NULL);
ALTER TABLE t4 ADD PRIMARY KEY (i); ALTER TABLE t4 ADD PRIMARY KEY (i);
CREATE TABLE t5(c1 BIT(1) NOT NULL PRIMARY KEY, c2 BIT(1)); CREATE TABLE t5(c1 BIT(1) NOT NULL PRIMARY KEY, c2 BIT(1));
@ -13074,7 +13074,7 @@ CONCAT(BIN(c1),BIN(c2),BIN(c3))
111111 111111
111111 111111
CREATE TABLE t3 (c1 BIT(65)); CREATE TABLE t3 (c1 BIT(65));
ERROR 42000: Display width out of range for column 'c1' (max = 64) ERROR 42000: Display width out of range for 'c1' (max = 64)
CREATE TABLE t4(i INT, b BIT NOT NULL); CREATE TABLE t4(i INT, b BIT NOT NULL);
ALTER TABLE t4 ADD PRIMARY KEY (i); ALTER TABLE t4 ADD PRIMARY KEY (i);
CREATE TABLE t5(c1 BIT(2) NOT NULL PRIMARY KEY, c2 BIT(2)); CREATE TABLE t5(c1 BIT(2) NOT NULL PRIMARY KEY, c2 BIT(2));
@ -13989,7 +13989,7 @@ CONCAT(BIN(c1),BIN(c2),BIN(c3))
111111111111 111111111111
111111111111 111111111111
CREATE TABLE t3 (c1 BIT(65)); CREATE TABLE t3 (c1 BIT(65));
ERROR 42000: Display width out of range for column 'c1' (max = 64) ERROR 42000: Display width out of range for 'c1' (max = 64)
CREATE TABLE t4(i INT, b BIT NOT NULL); CREATE TABLE t4(i INT, b BIT NOT NULL);
ALTER TABLE t4 ADD PRIMARY KEY (i); ALTER TABLE t4 ADD PRIMARY KEY (i);
CREATE TABLE t5(c1 BIT(4) NOT NULL PRIMARY KEY, c2 BIT(4)); CREATE TABLE t5(c1 BIT(4) NOT NULL PRIMARY KEY, c2 BIT(4));
@ -15062,7 +15062,7 @@ CONCAT(BIN(c1),BIN(c2),BIN(c3))
111111111111111111111111 111111111111111111111111
111111111111111111111111 111111111111111111111111
CREATE TABLE t3 (c1 BIT(65)); CREATE TABLE t3 (c1 BIT(65));
ERROR 42000: Display width out of range for column 'c1' (max = 64) ERROR 42000: Display width out of range for 'c1' (max = 64)
CREATE TABLE t4(i INT, b BIT NOT NULL); CREATE TABLE t4(i INT, b BIT NOT NULL);
ALTER TABLE t4 ADD PRIMARY KEY (i); ALTER TABLE t4 ADD PRIMARY KEY (i);
CREATE TABLE t5(c1 BIT(8) NOT NULL PRIMARY KEY, c2 BIT(8)); CREATE TABLE t5(c1 BIT(8) NOT NULL PRIMARY KEY, c2 BIT(8));
@ -16581,7 +16581,7 @@ CONCAT(BIN(c1),BIN(c2),BIN(c3))
111111111111111111111111111111111111111111111111 111111111111111111111111111111111111111111111111
111111111111111111111111111111111111111111111111 111111111111111111111111111111111111111111111111
CREATE TABLE t3 (c1 BIT(65)); CREATE TABLE t3 (c1 BIT(65));
ERROR 42000: Display width out of range for column 'c1' (max = 64) ERROR 42000: Display width out of range for 'c1' (max = 64)
CREATE TABLE t4(i INT, b BIT NOT NULL); CREATE TABLE t4(i INT, b BIT NOT NULL);
ALTER TABLE t4 ADD PRIMARY KEY (i); ALTER TABLE t4 ADD PRIMARY KEY (i);
CREATE TABLE t5(c1 BIT(16) NOT NULL PRIMARY KEY, c2 BIT(16)); CREATE TABLE t5(c1 BIT(16) NOT NULL PRIMARY KEY, c2 BIT(16));
@ -18622,7 +18622,7 @@ CONCAT(BIN(c1),BIN(c2),BIN(c3))
111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111 111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111
111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111 111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111
CREATE TABLE t3 (c1 BIT(65)); CREATE TABLE t3 (c1 BIT(65));
ERROR 42000: Display width out of range for column 'c1' (max = 64) ERROR 42000: Display width out of range for 'c1' (max = 64)
CREATE TABLE t4(i INT, b BIT NOT NULL); CREATE TABLE t4(i INT, b BIT NOT NULL);
ALTER TABLE t4 ADD PRIMARY KEY (i); ALTER TABLE t4 ADD PRIMARY KEY (i);
CREATE TABLE t5(c1 BIT(32) NOT NULL PRIMARY KEY, c2 BIT(32)); CREATE TABLE t5(c1 BIT(32) NOT NULL PRIMARY KEY, c2 BIT(32));
@ -21957,7 +21957,7 @@ CONCAT(BIN(c1),BIN(c2),BIN(c3))
111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111 111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111
111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111 111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111
CREATE TABLE t3 (c1 BIT(65)); CREATE TABLE t3 (c1 BIT(65));
ERROR 42000: Display width out of range for column 'c1' (max = 64) ERROR 42000: Display width out of range for 'c1' (max = 64)
CREATE TABLE t4(i INT, b BIT NOT NULL); CREATE TABLE t4(i INT, b BIT NOT NULL);
ALTER TABLE t4 ADD PRIMARY KEY (i); ALTER TABLE t4 ADD PRIMARY KEY (i);
CREATE TABLE t5(c1 BIT(64) NOT NULL PRIMARY KEY, c2 BIT(64)); CREATE TABLE t5(c1 BIT(64) NOT NULL PRIMARY KEY, c2 BIT(64));
@ -22795,7 +22795,7 @@ SELECT CONCAT(BIN(c1),BIN(c2),BIN(c3)) FROM t2;
CONCAT(BIN(c1),BIN(c2),BIN(c3)) CONCAT(BIN(c1),BIN(c2),BIN(c3))
111 111
CREATE TABLE t3 (c1 BIT(65)); CREATE TABLE t3 (c1 BIT(65));
ERROR 42000: Display width out of range for column 'c1' (max = 64) ERROR 42000: Display width out of range for 'c1' (max = 64)
CREATE TABLE t4(i INT, b BIT NOT NULL); CREATE TABLE t4(i INT, b BIT NOT NULL);
ALTER TABLE t4 ADD PRIMARY KEY (i); ALTER TABLE t4 ADD PRIMARY KEY (i);
CREATE TABLE t5(c1 BIT(0) NOT NULL PRIMARY KEY, c2 BIT(0)); CREATE TABLE t5(c1 BIT(0) NOT NULL PRIMARY KEY, c2 BIT(0));
@ -23606,7 +23606,7 @@ CONCAT(BIN(c1),BIN(c2),BIN(c3))
111 111
111 111
CREATE TABLE t3 (c1 BIT(65)); CREATE TABLE t3 (c1 BIT(65));
ERROR 42000: Display width out of range for column 'c1' (max = 64) ERROR 42000: Display width out of range for 'c1' (max = 64)
CREATE TABLE t4(i INT, b BIT NOT NULL); CREATE TABLE t4(i INT, b BIT NOT NULL);
ALTER TABLE t4 ADD PRIMARY KEY (i); ALTER TABLE t4 ADD PRIMARY KEY (i);
CREATE TABLE t5(c1 BIT(1) NOT NULL PRIMARY KEY, c2 BIT(1)); CREATE TABLE t5(c1 BIT(1) NOT NULL PRIMARY KEY, c2 BIT(1));
@ -24456,7 +24456,7 @@ CONCAT(BIN(c1),BIN(c2),BIN(c3))
111111 111111
111111 111111
CREATE TABLE t3 (c1 BIT(65)); CREATE TABLE t3 (c1 BIT(65));
ERROR 42000: Display width out of range for column 'c1' (max = 64) ERROR 42000: Display width out of range for 'c1' (max = 64)
CREATE TABLE t4(i INT, b BIT NOT NULL); CREATE TABLE t4(i INT, b BIT NOT NULL);
ALTER TABLE t4 ADD PRIMARY KEY (i); ALTER TABLE t4 ADD PRIMARY KEY (i);
CREATE TABLE t5(c1 BIT(2) NOT NULL PRIMARY KEY, c2 BIT(2)); CREATE TABLE t5(c1 BIT(2) NOT NULL PRIMARY KEY, c2 BIT(2));
@ -25371,7 +25371,7 @@ CONCAT(BIN(c1),BIN(c2),BIN(c3))
111111111111 111111111111
111111111111 111111111111
CREATE TABLE t3 (c1 BIT(65)); CREATE TABLE t3 (c1 BIT(65));
ERROR 42000: Display width out of range for column 'c1' (max = 64) ERROR 42000: Display width out of range for 'c1' (max = 64)
CREATE TABLE t4(i INT, b BIT NOT NULL); CREATE TABLE t4(i INT, b BIT NOT NULL);
ALTER TABLE t4 ADD PRIMARY KEY (i); ALTER TABLE t4 ADD PRIMARY KEY (i);
CREATE TABLE t5(c1 BIT(4) NOT NULL PRIMARY KEY, c2 BIT(4)); CREATE TABLE t5(c1 BIT(4) NOT NULL PRIMARY KEY, c2 BIT(4));
@ -26444,7 +26444,7 @@ CONCAT(BIN(c1),BIN(c2),BIN(c3))
111111111111111111111111 111111111111111111111111
111111111111111111111111 111111111111111111111111
CREATE TABLE t3 (c1 BIT(65)); CREATE TABLE t3 (c1 BIT(65));
ERROR 42000: Display width out of range for column 'c1' (max = 64) ERROR 42000: Display width out of range for 'c1' (max = 64)
CREATE TABLE t4(i INT, b BIT NOT NULL); CREATE TABLE t4(i INT, b BIT NOT NULL);
ALTER TABLE t4 ADD PRIMARY KEY (i); ALTER TABLE t4 ADD PRIMARY KEY (i);
CREATE TABLE t5(c1 BIT(8) NOT NULL PRIMARY KEY, c2 BIT(8)); CREATE TABLE t5(c1 BIT(8) NOT NULL PRIMARY KEY, c2 BIT(8));
@ -27963,7 +27963,7 @@ CONCAT(BIN(c1),BIN(c2),BIN(c3))
111111111111111111111111111111111111111111111111 111111111111111111111111111111111111111111111111
111111111111111111111111111111111111111111111111 111111111111111111111111111111111111111111111111
CREATE TABLE t3 (c1 BIT(65)); CREATE TABLE t3 (c1 BIT(65));
ERROR 42000: Display width out of range for column 'c1' (max = 64) ERROR 42000: Display width out of range for 'c1' (max = 64)
CREATE TABLE t4(i INT, b BIT NOT NULL); CREATE TABLE t4(i INT, b BIT NOT NULL);
ALTER TABLE t4 ADD PRIMARY KEY (i); ALTER TABLE t4 ADD PRIMARY KEY (i);
CREATE TABLE t5(c1 BIT(16) NOT NULL PRIMARY KEY, c2 BIT(16)); CREATE TABLE t5(c1 BIT(16) NOT NULL PRIMARY KEY, c2 BIT(16));
@ -30004,7 +30004,7 @@ CONCAT(BIN(c1),BIN(c2),BIN(c3))
111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111 111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111
111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111 111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111
CREATE TABLE t3 (c1 BIT(65)); CREATE TABLE t3 (c1 BIT(65));
ERROR 42000: Display width out of range for column 'c1' (max = 64) ERROR 42000: Display width out of range for 'c1' (max = 64)
CREATE TABLE t4(i INT, b BIT NOT NULL); CREATE TABLE t4(i INT, b BIT NOT NULL);
ALTER TABLE t4 ADD PRIMARY KEY (i); ALTER TABLE t4 ADD PRIMARY KEY (i);
CREATE TABLE t5(c1 BIT(32) NOT NULL PRIMARY KEY, c2 BIT(32)); CREATE TABLE t5(c1 BIT(32) NOT NULL PRIMARY KEY, c2 BIT(32));
@ -33339,7 +33339,7 @@ CONCAT(BIN(c1),BIN(c2),BIN(c3))
111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111 111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111
111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111 111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111
CREATE TABLE t3 (c1 BIT(65)); CREATE TABLE t3 (c1 BIT(65));
ERROR 42000: Display width out of range for column 'c1' (max = 64) ERROR 42000: Display width out of range for 'c1' (max = 64)
CREATE TABLE t4(i INT, b BIT NOT NULL); CREATE TABLE t4(i INT, b BIT NOT NULL);
ALTER TABLE t4 ADD PRIMARY KEY (i); ALTER TABLE t4 ADD PRIMARY KEY (i);
CREATE TABLE t5(c1 BIT(64) NOT NULL PRIMARY KEY, c2 BIT(64)); CREATE TABLE t5(c1 BIT(64) NOT NULL PRIMARY KEY, c2 BIT(64));
@ -34177,7 +34177,7 @@ SELECT CONCAT(BIN(c1),BIN(c2),BIN(c3)) FROM t2;
CONCAT(BIN(c1),BIN(c2),BIN(c3)) CONCAT(BIN(c1),BIN(c2),BIN(c3))
111 111
CREATE TABLE t3 (c1 BIT(65)); CREATE TABLE t3 (c1 BIT(65));
ERROR 42000: Display width out of range for column 'c1' (max = 64) ERROR 42000: Display width out of range for 'c1' (max = 64)
CREATE TABLE t4(i INT, b BIT NOT NULL); CREATE TABLE t4(i INT, b BIT NOT NULL);
ALTER TABLE t4 ADD PRIMARY KEY (i); ALTER TABLE t4 ADD PRIMARY KEY (i);
CREATE TABLE t5(c1 BIT(0) NOT NULL PRIMARY KEY, c2 BIT(0)); CREATE TABLE t5(c1 BIT(0) NOT NULL PRIMARY KEY, c2 BIT(0));
@ -34988,7 +34988,7 @@ CONCAT(BIN(c1),BIN(c2),BIN(c3))
111 111
111 111
CREATE TABLE t3 (c1 BIT(65)); CREATE TABLE t3 (c1 BIT(65));
ERROR 42000: Display width out of range for column 'c1' (max = 64) ERROR 42000: Display width out of range for 'c1' (max = 64)
CREATE TABLE t4(i INT, b BIT NOT NULL); CREATE TABLE t4(i INT, b BIT NOT NULL);
ALTER TABLE t4 ADD PRIMARY KEY (i); ALTER TABLE t4 ADD PRIMARY KEY (i);
CREATE TABLE t5(c1 BIT(1) NOT NULL PRIMARY KEY, c2 BIT(1)); CREATE TABLE t5(c1 BIT(1) NOT NULL PRIMARY KEY, c2 BIT(1));
@ -35844,7 +35844,7 @@ CONCAT(BIN(c1),BIN(c2),BIN(c3))
111111 111111
111111 111111
CREATE TABLE t3 (c1 BIT(65)); CREATE TABLE t3 (c1 BIT(65));
ERROR 42000: Display width out of range for column 'c1' (max = 64) ERROR 42000: Display width out of range for 'c1' (max = 64)
CREATE TABLE t4(i INT, b BIT NOT NULL); CREATE TABLE t4(i INT, b BIT NOT NULL);
ALTER TABLE t4 ADD PRIMARY KEY (i); ALTER TABLE t4 ADD PRIMARY KEY (i);
CREATE TABLE t5(c1 BIT(2) NOT NULL PRIMARY KEY, c2 BIT(2)); CREATE TABLE t5(c1 BIT(2) NOT NULL PRIMARY KEY, c2 BIT(2));
@ -36759,7 +36759,7 @@ CONCAT(BIN(c1),BIN(c2),BIN(c3))
111111111111 111111111111
111111111111 111111111111
CREATE TABLE t3 (c1 BIT(65)); CREATE TABLE t3 (c1 BIT(65));
ERROR 42000: Display width out of range for column 'c1' (max = 64) ERROR 42000: Display width out of range for 'c1' (max = 64)
CREATE TABLE t4(i INT, b BIT NOT NULL); CREATE TABLE t4(i INT, b BIT NOT NULL);
ALTER TABLE t4 ADD PRIMARY KEY (i); ALTER TABLE t4 ADD PRIMARY KEY (i);
CREATE TABLE t5(c1 BIT(4) NOT NULL PRIMARY KEY, c2 BIT(4)); CREATE TABLE t5(c1 BIT(4) NOT NULL PRIMARY KEY, c2 BIT(4));
@ -37832,7 +37832,7 @@ CONCAT(BIN(c1),BIN(c2),BIN(c3))
111111111111111111111111 111111111111111111111111
111111111111111111111111 111111111111111111111111
CREATE TABLE t3 (c1 BIT(65)); CREATE TABLE t3 (c1 BIT(65));
ERROR 42000: Display width out of range for column 'c1' (max = 64) ERROR 42000: Display width out of range for 'c1' (max = 64)
CREATE TABLE t4(i INT, b BIT NOT NULL); CREATE TABLE t4(i INT, b BIT NOT NULL);
ALTER TABLE t4 ADD PRIMARY KEY (i); ALTER TABLE t4 ADD PRIMARY KEY (i);
CREATE TABLE t5(c1 BIT(8) NOT NULL PRIMARY KEY, c2 BIT(8)); CREATE TABLE t5(c1 BIT(8) NOT NULL PRIMARY KEY, c2 BIT(8));
@ -39351,7 +39351,7 @@ CONCAT(BIN(c1),BIN(c2),BIN(c3))
111111111111111111111111111111111111111111111111 111111111111111111111111111111111111111111111111
111111111111111111111111111111111111111111111111 111111111111111111111111111111111111111111111111
CREATE TABLE t3 (c1 BIT(65)); CREATE TABLE t3 (c1 BIT(65));
ERROR 42000: Display width out of range for column 'c1' (max = 64) ERROR 42000: Display width out of range for 'c1' (max = 64)
CREATE TABLE t4(i INT, b BIT NOT NULL); CREATE TABLE t4(i INT, b BIT NOT NULL);
ALTER TABLE t4 ADD PRIMARY KEY (i); ALTER TABLE t4 ADD PRIMARY KEY (i);
CREATE TABLE t5(c1 BIT(16) NOT NULL PRIMARY KEY, c2 BIT(16)); CREATE TABLE t5(c1 BIT(16) NOT NULL PRIMARY KEY, c2 BIT(16));
@ -41392,7 +41392,7 @@ CONCAT(BIN(c1),BIN(c2),BIN(c3))
111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111 111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111
111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111 111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111
CREATE TABLE t3 (c1 BIT(65)); CREATE TABLE t3 (c1 BIT(65));
ERROR 42000: Display width out of range for column 'c1' (max = 64) ERROR 42000: Display width out of range for 'c1' (max = 64)
CREATE TABLE t4(i INT, b BIT NOT NULL); CREATE TABLE t4(i INT, b BIT NOT NULL);
ALTER TABLE t4 ADD PRIMARY KEY (i); ALTER TABLE t4 ADD PRIMARY KEY (i);
CREATE TABLE t5(c1 BIT(32) NOT NULL PRIMARY KEY, c2 BIT(32)); CREATE TABLE t5(c1 BIT(32) NOT NULL PRIMARY KEY, c2 BIT(32));
@ -44727,7 +44727,7 @@ CONCAT(BIN(c1),BIN(c2),BIN(c3))
111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111 111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111
111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111 111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111
CREATE TABLE t3 (c1 BIT(65)); CREATE TABLE t3 (c1 BIT(65));
ERROR 42000: Display width out of range for column 'c1' (max = 64) ERROR 42000: Display width out of range for 'c1' (max = 64)
CREATE TABLE t4(i INT, b BIT NOT NULL); CREATE TABLE t4(i INT, b BIT NOT NULL);
ALTER TABLE t4 ADD PRIMARY KEY (i); ALTER TABLE t4 ADD PRIMARY KEY (i);
CREATE TABLE t5(c1 BIT(64) NOT NULL PRIMARY KEY, c2 BIT(64)); CREATE TABLE t5(c1 BIT(64) NOT NULL PRIMARY KEY, c2 BIT(64));
@ -45565,7 +45565,7 @@ SELECT CONCAT(BIN(c1),BIN(c2),BIN(c3)) FROM t2;
CONCAT(BIN(c1),BIN(c2),BIN(c3)) CONCAT(BIN(c1),BIN(c2),BIN(c3))
111 111
CREATE TABLE t3 (c1 BIT(65)); CREATE TABLE t3 (c1 BIT(65));
ERROR 42000: Display width out of range for column 'c1' (max = 64) ERROR 42000: Display width out of range for 'c1' (max = 64)
CREATE TABLE t4(i INT, b BIT NOT NULL); CREATE TABLE t4(i INT, b BIT NOT NULL);
ALTER TABLE t4 ADD PRIMARY KEY (i); ALTER TABLE t4 ADD PRIMARY KEY (i);
CREATE TABLE t5(c1 BIT(0) NOT NULL PRIMARY KEY, c2 BIT(0)); CREATE TABLE t5(c1 BIT(0) NOT NULL PRIMARY KEY, c2 BIT(0));
@ -46376,7 +46376,7 @@ CONCAT(BIN(c1),BIN(c2),BIN(c3))
111 111
111 111
CREATE TABLE t3 (c1 BIT(65)); CREATE TABLE t3 (c1 BIT(65));
ERROR 42000: Display width out of range for column 'c1' (max = 64) ERROR 42000: Display width out of range for 'c1' (max = 64)
CREATE TABLE t4(i INT, b BIT NOT NULL); CREATE TABLE t4(i INT, b BIT NOT NULL);
ALTER TABLE t4 ADD PRIMARY KEY (i); ALTER TABLE t4 ADD PRIMARY KEY (i);
CREATE TABLE t5(c1 BIT(1) NOT NULL PRIMARY KEY, c2 BIT(1)); CREATE TABLE t5(c1 BIT(1) NOT NULL PRIMARY KEY, c2 BIT(1));
@ -47232,7 +47232,7 @@ CONCAT(BIN(c1),BIN(c2),BIN(c3))
111111 111111
111111 111111
CREATE TABLE t3 (c1 BIT(65)); CREATE TABLE t3 (c1 BIT(65));
ERROR 42000: Display width out of range for column 'c1' (max = 64) ERROR 42000: Display width out of range for 'c1' (max = 64)
CREATE TABLE t4(i INT, b BIT NOT NULL); CREATE TABLE t4(i INT, b BIT NOT NULL);
ALTER TABLE t4 ADD PRIMARY KEY (i); ALTER TABLE t4 ADD PRIMARY KEY (i);
CREATE TABLE t5(c1 BIT(2) NOT NULL PRIMARY KEY, c2 BIT(2)); CREATE TABLE t5(c1 BIT(2) NOT NULL PRIMARY KEY, c2 BIT(2));
@ -48153,7 +48153,7 @@ CONCAT(BIN(c1),BIN(c2),BIN(c3))
111111111111 111111111111
111111111111 111111111111
CREATE TABLE t3 (c1 BIT(65)); CREATE TABLE t3 (c1 BIT(65));
ERROR 42000: Display width out of range for column 'c1' (max = 64) ERROR 42000: Display width out of range for 'c1' (max = 64)
CREATE TABLE t4(i INT, b BIT NOT NULL); CREATE TABLE t4(i INT, b BIT NOT NULL);
ALTER TABLE t4 ADD PRIMARY KEY (i); ALTER TABLE t4 ADD PRIMARY KEY (i);
CREATE TABLE t5(c1 BIT(4) NOT NULL PRIMARY KEY, c2 BIT(4)); CREATE TABLE t5(c1 BIT(4) NOT NULL PRIMARY KEY, c2 BIT(4));
@ -49232,7 +49232,7 @@ CONCAT(BIN(c1),BIN(c2),BIN(c3))
111111111111111111111111 111111111111111111111111
111111111111111111111111 111111111111111111111111
CREATE TABLE t3 (c1 BIT(65)); CREATE TABLE t3 (c1 BIT(65));
ERROR 42000: Display width out of range for column 'c1' (max = 64) ERROR 42000: Display width out of range for 'c1' (max = 64)
CREATE TABLE t4(i INT, b BIT NOT NULL); CREATE TABLE t4(i INT, b BIT NOT NULL);
ALTER TABLE t4 ADD PRIMARY KEY (i); ALTER TABLE t4 ADD PRIMARY KEY (i);
CREATE TABLE t5(c1 BIT(8) NOT NULL PRIMARY KEY, c2 BIT(8)); CREATE TABLE t5(c1 BIT(8) NOT NULL PRIMARY KEY, c2 BIT(8));
@ -50751,7 +50751,7 @@ CONCAT(BIN(c1),BIN(c2),BIN(c3))
111111111111111111111111111111111111111111111111 111111111111111111111111111111111111111111111111
111111111111111111111111111111111111111111111111 111111111111111111111111111111111111111111111111
CREATE TABLE t3 (c1 BIT(65)); CREATE TABLE t3 (c1 BIT(65));
ERROR 42000: Display width out of range for column 'c1' (max = 64) ERROR 42000: Display width out of range for 'c1' (max = 64)
CREATE TABLE t4(i INT, b BIT NOT NULL); CREATE TABLE t4(i INT, b BIT NOT NULL);
ALTER TABLE t4 ADD PRIMARY KEY (i); ALTER TABLE t4 ADD PRIMARY KEY (i);
CREATE TABLE t5(c1 BIT(16) NOT NULL PRIMARY KEY, c2 BIT(16)); CREATE TABLE t5(c1 BIT(16) NOT NULL PRIMARY KEY, c2 BIT(16));
@ -52792,7 +52792,7 @@ CONCAT(BIN(c1),BIN(c2),BIN(c3))
111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111 111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111
111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111 111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111
CREATE TABLE t3 (c1 BIT(65)); CREATE TABLE t3 (c1 BIT(65));
ERROR 42000: Display width out of range for column 'c1' (max = 64) ERROR 42000: Display width out of range for 'c1' (max = 64)
CREATE TABLE t4(i INT, b BIT NOT NULL); CREATE TABLE t4(i INT, b BIT NOT NULL);
ALTER TABLE t4 ADD PRIMARY KEY (i); ALTER TABLE t4 ADD PRIMARY KEY (i);
CREATE TABLE t5(c1 BIT(32) NOT NULL PRIMARY KEY, c2 BIT(32)); CREATE TABLE t5(c1 BIT(32) NOT NULL PRIMARY KEY, c2 BIT(32));
@ -56127,7 +56127,7 @@ CONCAT(BIN(c1),BIN(c2),BIN(c3))
111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111 111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111
111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111 111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111
CREATE TABLE t3 (c1 BIT(65)); CREATE TABLE t3 (c1 BIT(65));
ERROR 42000: Display width out of range for column 'c1' (max = 64) ERROR 42000: Display width out of range for 'c1' (max = 64)
CREATE TABLE t4(i INT, b BIT NOT NULL); CREATE TABLE t4(i INT, b BIT NOT NULL);
ALTER TABLE t4 ADD PRIMARY KEY (i); ALTER TABLE t4 ADD PRIMARY KEY (i);
CREATE TABLE t5(c1 BIT(64) NOT NULL PRIMARY KEY, c2 BIT(64)); CREATE TABLE t5(c1 BIT(64) NOT NULL PRIMARY KEY, c2 BIT(64));
@ -56916,7 +56916,7 @@ SELECT 0 + (101010101010101010101010101010<<0);
0 + (101010101010101010101010101010<<0) 0 + (101010101010101010101010101010<<0)
9223372036854775807 9223372036854775807
Warnings: Warnings:
Error 1292 Truncated incorrect DECIMAL value: '' Error 1916 Got overflow when converting '101010101010101010101010101010' to INT. Value truncated.
CREATE TABLE t1(c1 BIT(0)); CREATE TABLE t1(c1 BIT(0));
CREATE TABLE t2(c1 BIT(0), c2 BIT(0), c3 BIT(0)); CREATE TABLE t2(c1 BIT(0), c2 BIT(0), c3 BIT(0));
INSERT INTO t1 VALUES (b'101010101010101010101010101010'); INSERT INTO t1 VALUES (b'101010101010101010101010101010');
@ -56967,7 +56967,7 @@ SELECT CONCAT(BIN(c1),BIN(c2),BIN(c3)) FROM t2;
CONCAT(BIN(c1),BIN(c2),BIN(c3)) CONCAT(BIN(c1),BIN(c2),BIN(c3))
111 111
CREATE TABLE t3 (c1 BIT(65)); CREATE TABLE t3 (c1 BIT(65));
ERROR 42000: Display width out of range for column 'c1' (max = 64) ERROR 42000: Display width out of range for 'c1' (max = 64)
CREATE TABLE t4(i INT, b BIT NOT NULL); CREATE TABLE t4(i INT, b BIT NOT NULL);
ALTER TABLE t4 ADD PRIMARY KEY (i); ALTER TABLE t4 ADD PRIMARY KEY (i);
CREATE TABLE t5(c1 BIT(0) NOT NULL PRIMARY KEY, c2 BIT(0)); CREATE TABLE t5(c1 BIT(0) NOT NULL PRIMARY KEY, c2 BIT(0));
@ -57687,7 +57687,7 @@ SELECT 0 + (101010101010101010101010101010<<1);
0 + (101010101010101010101010101010<<1) 0 + (101010101010101010101010101010<<1)
18446744073709551614 18446744073709551614
Warnings: Warnings:
Error 1292 Truncated incorrect DECIMAL value: '' Error 1916 Got overflow when converting '101010101010101010101010101010' to INT. Value truncated.
CREATE TABLE t1(c1 BIT(1)); CREATE TABLE t1(c1 BIT(1));
CREATE TABLE t2(c1 BIT(1), c2 BIT(1), c3 BIT(1)); CREATE TABLE t2(c1 BIT(1), c2 BIT(1), c3 BIT(1));
set @v1=1; set @v1=1;
@ -57780,7 +57780,7 @@ CONCAT(BIN(c1),BIN(c2),BIN(c3))
111 111
111 111
CREATE TABLE t3 (c1 BIT(65)); CREATE TABLE t3 (c1 BIT(65));
ERROR 42000: Display width out of range for column 'c1' (max = 64) ERROR 42000: Display width out of range for 'c1' (max = 64)
CREATE TABLE t4(i INT, b BIT NOT NULL); CREATE TABLE t4(i INT, b BIT NOT NULL);
ALTER TABLE t4 ADD PRIMARY KEY (i); ALTER TABLE t4 ADD PRIMARY KEY (i);
CREATE TABLE t5(c1 BIT(1) NOT NULL PRIMARY KEY, c2 BIT(1)); CREATE TABLE t5(c1 BIT(1) NOT NULL PRIMARY KEY, c2 BIT(1));
@ -58507,7 +58507,7 @@ SELECT 0 + (101010101010101010101010101010<<2);
0 + (101010101010101010101010101010<<2) 0 + (101010101010101010101010101010<<2)
18446744073709551612 18446744073709551612
Warnings: Warnings:
Error 1292 Truncated incorrect DECIMAL value: '' Error 1916 Got overflow when converting '101010101010101010101010101010' to INT. Value truncated.
CREATE TABLE t1(c1 BIT(2)); CREATE TABLE t1(c1 BIT(2));
CREATE TABLE t2(c1 BIT(2), c2 BIT(2), c3 BIT(2)); CREATE TABLE t2(c1 BIT(2), c2 BIT(2), c3 BIT(2));
set @v1=2; set @v1=2;
@ -58638,7 +58638,7 @@ CONCAT(BIN(c1),BIN(c2),BIN(c3))
111111 111111
111111 111111
CREATE TABLE t3 (c1 BIT(65)); CREATE TABLE t3 (c1 BIT(65));
ERROR 42000: Display width out of range for column 'c1' (max = 64) ERROR 42000: Display width out of range for 'c1' (max = 64)
CREATE TABLE t4(i INT, b BIT NOT NULL); CREATE TABLE t4(i INT, b BIT NOT NULL);
ALTER TABLE t4 ADD PRIMARY KEY (i); ALTER TABLE t4 ADD PRIMARY KEY (i);
CREATE TABLE t5(c1 BIT(2) NOT NULL PRIMARY KEY, c2 BIT(2)); CREATE TABLE t5(c1 BIT(2) NOT NULL PRIMARY KEY, c2 BIT(2));
@ -59350,7 +59350,7 @@ SELECT 0 + (101010101010101010101010101010<<4);
0 + (101010101010101010101010101010<<4) 0 + (101010101010101010101010101010<<4)
18446744073709551600 18446744073709551600
Warnings: Warnings:
Error 1292 Truncated incorrect DECIMAL value: '' Error 1916 Got overflow when converting '101010101010101010101010101010' to INT. Value truncated.
CREATE TABLE t1(c1 BIT(4)); CREATE TABLE t1(c1 BIT(4));
CREATE TABLE t2(c1 BIT(4), c2 BIT(4), c3 BIT(4)); CREATE TABLE t2(c1 BIT(4), c2 BIT(4), c3 BIT(4));
set @v1=4; set @v1=4;
@ -59561,7 +59561,7 @@ CONCAT(BIN(c1),BIN(c2),BIN(c3))
111111111111 111111111111
111111111111 111111111111
CREATE TABLE t3 (c1 BIT(65)); CREATE TABLE t3 (c1 BIT(65));
ERROR 42000: Display width out of range for column 'c1' (max = 64) ERROR 42000: Display width out of range for 'c1' (max = 64)
CREATE TABLE t4(i INT, b BIT NOT NULL); CREATE TABLE t4(i INT, b BIT NOT NULL);
ALTER TABLE t4 ADD PRIMARY KEY (i); ALTER TABLE t4 ADD PRIMARY KEY (i);
CREATE TABLE t5(c1 BIT(4) NOT NULL PRIMARY KEY, c2 BIT(4)); CREATE TABLE t5(c1 BIT(4) NOT NULL PRIMARY KEY, c2 BIT(4));
@ -60271,7 +60271,7 @@ SELECT 0 + (101010101010101010101010101010<<8);
0 + (101010101010101010101010101010<<8) 0 + (101010101010101010101010101010<<8)
18446744073709551360 18446744073709551360
Warnings: Warnings:
Error 1292 Truncated incorrect DECIMAL value: '' Error 1916 Got overflow when converting '101010101010101010101010101010' to INT. Value truncated.
CREATE TABLE t1(c1 BIT(8)); CREATE TABLE t1(c1 BIT(8));
CREATE TABLE t2(c1 BIT(8), c2 BIT(8), c3 BIT(8)); CREATE TABLE t2(c1 BIT(8), c2 BIT(8), c3 BIT(8));
set @v1=8; set @v1=8;
@ -60642,7 +60642,7 @@ CONCAT(BIN(c1),BIN(c2),BIN(c3))
111111111111111111111111 111111111111111111111111
111111111111111111111111 111111111111111111111111
CREATE TABLE t3 (c1 BIT(65)); CREATE TABLE t3 (c1 BIT(65));
ERROR 42000: Display width out of range for column 'c1' (max = 64) ERROR 42000: Display width out of range for 'c1' (max = 64)
CREATE TABLE t4(i INT, b BIT NOT NULL); CREATE TABLE t4(i INT, b BIT NOT NULL);
ALTER TABLE t4 ADD PRIMARY KEY (i); ALTER TABLE t4 ADD PRIMARY KEY (i);
CREATE TABLE t5(c1 BIT(8) NOT NULL PRIMARY KEY, c2 BIT(8)); CREATE TABLE t5(c1 BIT(8) NOT NULL PRIMARY KEY, c2 BIT(8));
@ -61478,7 +61478,7 @@ SELECT 0 + (101010101010101010101010101010<<16);
0 + (101010101010101010101010101010<<16) 0 + (101010101010101010101010101010<<16)
18446744073709486080 18446744073709486080
Warnings: Warnings:
Error 1292 Truncated incorrect DECIMAL value: '' Error 1916 Got overflow when converting '101010101010101010101010101010' to INT. Value truncated.
CREATE TABLE t1(c1 BIT(16)); CREATE TABLE t1(c1 BIT(16));
CREATE TABLE t2(c1 BIT(16), c2 BIT(16), c3 BIT(16)); CREATE TABLE t2(c1 BIT(16), c2 BIT(16), c3 BIT(16));
set @v1=16; set @v1=16;
@ -62169,7 +62169,7 @@ CONCAT(BIN(c1),BIN(c2),BIN(c3))
111111111111111111111111111111111111111111111111 111111111111111111111111111111111111111111111111
111111111111111111111111111111111111111111111111 111111111111111111111111111111111111111111111111
CREATE TABLE t3 (c1 BIT(65)); CREATE TABLE t3 (c1 BIT(65));
ERROR 42000: Display width out of range for column 'c1' (max = 64) ERROR 42000: Display width out of range for 'c1' (max = 64)
CREATE TABLE t4(i INT, b BIT NOT NULL); CREATE TABLE t4(i INT, b BIT NOT NULL);
ALTER TABLE t4 ADD PRIMARY KEY (i); ALTER TABLE t4 ADD PRIMARY KEY (i);
CREATE TABLE t5(c1 BIT(16) NOT NULL PRIMARY KEY, c2 BIT(16)); CREATE TABLE t5(c1 BIT(16) NOT NULL PRIMARY KEY, c2 BIT(16));
@ -62890,7 +62890,7 @@ SELECT 0 + (101010101010101010101010101010<<32);
0 + (101010101010101010101010101010<<32) 0 + (101010101010101010101010101010<<32)
18446744069414584320 18446744069414584320
Warnings: Warnings:
Error 1292 Truncated incorrect DECIMAL value: '' Error 1916 Got overflow when converting '101010101010101010101010101010' to INT. Value truncated.
CREATE TABLE t1(c1 BIT(32)); CREATE TABLE t1(c1 BIT(32));
CREATE TABLE t2(c1 BIT(32), c2 BIT(32), c3 BIT(32)); CREATE TABLE t2(c1 BIT(32), c2 BIT(32), c3 BIT(32));
set @v1=32; set @v1=32;
@ -64212,7 +64212,7 @@ CONCAT(BIN(c1),BIN(c2),BIN(c3))
111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111 111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111
111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111 111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111
CREATE TABLE t3 (c1 BIT(65)); CREATE TABLE t3 (c1 BIT(65));
ERROR 42000: Display width out of range for column 'c1' (max = 64) ERROR 42000: Display width out of range for 'c1' (max = 64)
CREATE TABLE t4(i INT, b BIT NOT NULL); CREATE TABLE t4(i INT, b BIT NOT NULL);
ALTER TABLE t4 ADD PRIMARY KEY (i); ALTER TABLE t4 ADD PRIMARY KEY (i);
CREATE TABLE t5(c1 BIT(32) NOT NULL PRIMARY KEY, c2 BIT(32)); CREATE TABLE t5(c1 BIT(32) NOT NULL PRIMARY KEY, c2 BIT(32));
@ -64963,7 +64963,7 @@ SELECT 0 + (101010101010101010101010101010<<64);
0 + (101010101010101010101010101010<<64) 0 + (101010101010101010101010101010<<64)
0 0
Warnings: Warnings:
Error 1292 Truncated incorrect DECIMAL value: '' Error 1916 Got overflow when converting '101010101010101010101010101010' to INT. Value truncated.
CREATE TABLE t1(c1 BIT(64)); CREATE TABLE t1(c1 BIT(64));
CREATE TABLE t2(c1 BIT(64), c2 BIT(64), c3 BIT(64)); CREATE TABLE t2(c1 BIT(64), c2 BIT(64), c3 BIT(64));
set @v1=64; set @v1=64;
@ -67549,7 +67549,7 @@ CONCAT(BIN(c1),BIN(c2),BIN(c3))
111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111 111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111
111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111 111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111
CREATE TABLE t3 (c1 BIT(65)); CREATE TABLE t3 (c1 BIT(65));
ERROR 42000: Display width out of range for column 'c1' (max = 64) ERROR 42000: Display width out of range for 'c1' (max = 64)
CREATE TABLE t4(i INT, b BIT NOT NULL); CREATE TABLE t4(i INT, b BIT NOT NULL);
ALTER TABLE t4 ADD PRIMARY KEY (i); ALTER TABLE t4 ADD PRIMARY KEY (i);
CREATE TABLE t5(c1 BIT(64) NOT NULL PRIMARY KEY, c2 BIT(64)); CREATE TABLE t5(c1 BIT(64) NOT NULL PRIMARY KEY, c2 BIT(64));
@ -68335,7 +68335,7 @@ SELECT 0 + (1010101010101010101010101010101010101010101010101010101010101010<<0)
0 + (1010101010101010101010101010101010101010101010101010101010101010<<0) 0 + (1010101010101010101010101010101010101010101010101010101010101010<<0)
9223372036854775807 9223372036854775807
Warnings: Warnings:
Error 1292 Truncated incorrect DECIMAL value: '' Error 1916 Got overflow when converting '1010101010101010101010101010101010101010101010101010101010101010' to INT. Value truncated.
CREATE TABLE t1(c1 BIT(0)); CREATE TABLE t1(c1 BIT(0));
CREATE TABLE t2(c1 BIT(0), c2 BIT(0), c3 BIT(0)); CREATE TABLE t2(c1 BIT(0), c2 BIT(0), c3 BIT(0));
INSERT INTO t1 VALUES (b'1010101010101010101010101010101010101010101010101010101010101010'); INSERT INTO t1 VALUES (b'1010101010101010101010101010101010101010101010101010101010101010');
@ -68386,7 +68386,7 @@ SELECT CONCAT(BIN(c1),BIN(c2),BIN(c3)) FROM t2;
CONCAT(BIN(c1),BIN(c2),BIN(c3)) CONCAT(BIN(c1),BIN(c2),BIN(c3))
111 111
CREATE TABLE t3 (c1 BIT(65)); CREATE TABLE t3 (c1 BIT(65));
ERROR 42000: Display width out of range for column 'c1' (max = 64) ERROR 42000: Display width out of range for 'c1' (max = 64)
CREATE TABLE t4(i INT, b BIT NOT NULL); CREATE TABLE t4(i INT, b BIT NOT NULL);
ALTER TABLE t4 ADD PRIMARY KEY (i); ALTER TABLE t4 ADD PRIMARY KEY (i);
CREATE TABLE t5(c1 BIT(0) NOT NULL PRIMARY KEY, c2 BIT(0)); CREATE TABLE t5(c1 BIT(0) NOT NULL PRIMARY KEY, c2 BIT(0));
@ -69103,7 +69103,7 @@ SELECT 0 + (1010101010101010101010101010101010101010101010101010101010101010<<1)
0 + (1010101010101010101010101010101010101010101010101010101010101010<<1) 0 + (1010101010101010101010101010101010101010101010101010101010101010<<1)
18446744073709551614 18446744073709551614
Warnings: Warnings:
Error 1292 Truncated incorrect DECIMAL value: '' Error 1916 Got overflow when converting '1010101010101010101010101010101010101010101010101010101010101010' to INT. Value truncated.
CREATE TABLE t1(c1 BIT(1)); CREATE TABLE t1(c1 BIT(1));
CREATE TABLE t2(c1 BIT(1), c2 BIT(1), c3 BIT(1)); CREATE TABLE t2(c1 BIT(1), c2 BIT(1), c3 BIT(1));
set @v1=1; set @v1=1;
@ -69196,7 +69196,7 @@ CONCAT(BIN(c1),BIN(c2),BIN(c3))
111 111
111 111
CREATE TABLE t3 (c1 BIT(65)); CREATE TABLE t3 (c1 BIT(65));
ERROR 42000: Display width out of range for column 'c1' (max = 64) ERROR 42000: Display width out of range for 'c1' (max = 64)
CREATE TABLE t4(i INT, b BIT NOT NULL); CREATE TABLE t4(i INT, b BIT NOT NULL);
ALTER TABLE t4 ADD PRIMARY KEY (i); ALTER TABLE t4 ADD PRIMARY KEY (i);
CREATE TABLE t5(c1 BIT(1) NOT NULL PRIMARY KEY, c2 BIT(1)); CREATE TABLE t5(c1 BIT(1) NOT NULL PRIMARY KEY, c2 BIT(1));
@ -69920,7 +69920,7 @@ SELECT 0 + (1010101010101010101010101010101010101010101010101010101010101010<<2)
0 + (1010101010101010101010101010101010101010101010101010101010101010<<2) 0 + (1010101010101010101010101010101010101010101010101010101010101010<<2)
18446744073709551612 18446744073709551612
Warnings: Warnings:
Error 1292 Truncated incorrect DECIMAL value: '' Error 1916 Got overflow when converting '1010101010101010101010101010101010101010101010101010101010101010' to INT. Value truncated.
CREATE TABLE t1(c1 BIT(2)); CREATE TABLE t1(c1 BIT(2));
CREATE TABLE t2(c1 BIT(2), c2 BIT(2), c3 BIT(2)); CREATE TABLE t2(c1 BIT(2), c2 BIT(2), c3 BIT(2));
set @v1=2; set @v1=2;
@ -70051,7 +70051,7 @@ CONCAT(BIN(c1),BIN(c2),BIN(c3))
111111 111111
111111 111111
CREATE TABLE t3 (c1 BIT(65)); CREATE TABLE t3 (c1 BIT(65));
ERROR 42000: Display width out of range for column 'c1' (max = 64) ERROR 42000: Display width out of range for 'c1' (max = 64)
CREATE TABLE t4(i INT, b BIT NOT NULL); CREATE TABLE t4(i INT, b BIT NOT NULL);
ALTER TABLE t4 ADD PRIMARY KEY (i); ALTER TABLE t4 ADD PRIMARY KEY (i);
CREATE TABLE t5(c1 BIT(2) NOT NULL PRIMARY KEY, c2 BIT(2)); CREATE TABLE t5(c1 BIT(2) NOT NULL PRIMARY KEY, c2 BIT(2));
@ -70760,7 +70760,7 @@ SELECT 0 + (1010101010101010101010101010101010101010101010101010101010101010<<4)
0 + (1010101010101010101010101010101010101010101010101010101010101010<<4) 0 + (1010101010101010101010101010101010101010101010101010101010101010<<4)
18446744073709551600 18446744073709551600
Warnings: Warnings:
Error 1292 Truncated incorrect DECIMAL value: '' Error 1916 Got overflow when converting '1010101010101010101010101010101010101010101010101010101010101010' to INT. Value truncated.
CREATE TABLE t1(c1 BIT(4)); CREATE TABLE t1(c1 BIT(4));
CREATE TABLE t2(c1 BIT(4), c2 BIT(4), c3 BIT(4)); CREATE TABLE t2(c1 BIT(4), c2 BIT(4), c3 BIT(4));
set @v1=4; set @v1=4;
@ -70971,7 +70971,7 @@ CONCAT(BIN(c1),BIN(c2),BIN(c3))
111111111111 111111111111
111111111111 111111111111
CREATE TABLE t3 (c1 BIT(65)); CREATE TABLE t3 (c1 BIT(65));
ERROR 42000: Display width out of range for column 'c1' (max = 64) ERROR 42000: Display width out of range for 'c1' (max = 64)
CREATE TABLE t4(i INT, b BIT NOT NULL); CREATE TABLE t4(i INT, b BIT NOT NULL);
ALTER TABLE t4 ADD PRIMARY KEY (i); ALTER TABLE t4 ADD PRIMARY KEY (i);
CREATE TABLE t5(c1 BIT(4) NOT NULL PRIMARY KEY, c2 BIT(4)); CREATE TABLE t5(c1 BIT(4) NOT NULL PRIMARY KEY, c2 BIT(4));
@ -71678,7 +71678,7 @@ SELECT 0 + (1010101010101010101010101010101010101010101010101010101010101010<<8)
0 + (1010101010101010101010101010101010101010101010101010101010101010<<8) 0 + (1010101010101010101010101010101010101010101010101010101010101010<<8)
18446744073709551360 18446744073709551360
Warnings: Warnings:
Error 1292 Truncated incorrect DECIMAL value: '' Error 1916 Got overflow when converting '1010101010101010101010101010101010101010101010101010101010101010' to INT. Value truncated.
CREATE TABLE t1(c1 BIT(8)); CREATE TABLE t1(c1 BIT(8));
CREATE TABLE t2(c1 BIT(8), c2 BIT(8), c3 BIT(8)); CREATE TABLE t2(c1 BIT(8), c2 BIT(8), c3 BIT(8));
set @v1=8; set @v1=8;
@ -72049,7 +72049,7 @@ CONCAT(BIN(c1),BIN(c2),BIN(c3))
111111111111111111111111 111111111111111111111111
111111111111111111111111 111111111111111111111111
CREATE TABLE t3 (c1 BIT(65)); CREATE TABLE t3 (c1 BIT(65));
ERROR 42000: Display width out of range for column 'c1' (max = 64) ERROR 42000: Display width out of range for 'c1' (max = 64)
CREATE TABLE t4(i INT, b BIT NOT NULL); CREATE TABLE t4(i INT, b BIT NOT NULL);
ALTER TABLE t4 ADD PRIMARY KEY (i); ALTER TABLE t4 ADD PRIMARY KEY (i);
CREATE TABLE t5(c1 BIT(8) NOT NULL PRIMARY KEY, c2 BIT(8)); CREATE TABLE t5(c1 BIT(8) NOT NULL PRIMARY KEY, c2 BIT(8));
@ -72882,7 +72882,7 @@ SELECT 0 + (1010101010101010101010101010101010101010101010101010101010101010<<16
0 + (1010101010101010101010101010101010101010101010101010101010101010<<16) 0 + (1010101010101010101010101010101010101010101010101010101010101010<<16)
18446744073709486080 18446744073709486080
Warnings: Warnings:
Error 1292 Truncated incorrect DECIMAL value: '' Error 1916 Got overflow when converting '1010101010101010101010101010101010101010101010101010101010101010' to INT. Value truncated.
CREATE TABLE t1(c1 BIT(16)); CREATE TABLE t1(c1 BIT(16));
CREATE TABLE t2(c1 BIT(16), c2 BIT(16), c3 BIT(16)); CREATE TABLE t2(c1 BIT(16), c2 BIT(16), c3 BIT(16));
set @v1=16; set @v1=16;
@ -73573,7 +73573,7 @@ CONCAT(BIN(c1),BIN(c2),BIN(c3))
111111111111111111111111111111111111111111111111 111111111111111111111111111111111111111111111111
111111111111111111111111111111111111111111111111 111111111111111111111111111111111111111111111111
CREATE TABLE t3 (c1 BIT(65)); CREATE TABLE t3 (c1 BIT(65));
ERROR 42000: Display width out of range for column 'c1' (max = 64) ERROR 42000: Display width out of range for 'c1' (max = 64)
CREATE TABLE t4(i INT, b BIT NOT NULL); CREATE TABLE t4(i INT, b BIT NOT NULL);
ALTER TABLE t4 ADD PRIMARY KEY (i); ALTER TABLE t4 ADD PRIMARY KEY (i);
CREATE TABLE t5(c1 BIT(16) NOT NULL PRIMARY KEY, c2 BIT(16)); CREATE TABLE t5(c1 BIT(16) NOT NULL PRIMARY KEY, c2 BIT(16));
@ -74291,7 +74291,7 @@ SELECT 0 + (1010101010101010101010101010101010101010101010101010101010101010<<32
0 + (1010101010101010101010101010101010101010101010101010101010101010<<32) 0 + (1010101010101010101010101010101010101010101010101010101010101010<<32)
18446744069414584320 18446744069414584320
Warnings: Warnings:
Error 1292 Truncated incorrect DECIMAL value: '' Error 1916 Got overflow when converting '1010101010101010101010101010101010101010101010101010101010101010' to INT. Value truncated.
CREATE TABLE t1(c1 BIT(32)); CREATE TABLE t1(c1 BIT(32));
CREATE TABLE t2(c1 BIT(32), c2 BIT(32), c3 BIT(32)); CREATE TABLE t2(c1 BIT(32), c2 BIT(32), c3 BIT(32));
set @v1=32; set @v1=32;
@ -75619,7 +75619,7 @@ CONCAT(BIN(c1),BIN(c2),BIN(c3))
111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111 111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111
111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111 111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111
CREATE TABLE t3 (c1 BIT(65)); CREATE TABLE t3 (c1 BIT(65));
ERROR 42000: Display width out of range for column 'c1' (max = 64) ERROR 42000: Display width out of range for 'c1' (max = 64)
CREATE TABLE t4(i INT, b BIT NOT NULL); CREATE TABLE t4(i INT, b BIT NOT NULL);
ALTER TABLE t4 ADD PRIMARY KEY (i); ALTER TABLE t4 ADD PRIMARY KEY (i);
CREATE TABLE t5(c1 BIT(32) NOT NULL PRIMARY KEY, c2 BIT(32)); CREATE TABLE t5(c1 BIT(32) NOT NULL PRIMARY KEY, c2 BIT(32));
@ -76367,7 +76367,7 @@ SELECT 0 + (1010101010101010101010101010101010101010101010101010101010101010<<64
0 + (1010101010101010101010101010101010101010101010101010101010101010<<64) 0 + (1010101010101010101010101010101010101010101010101010101010101010<<64)
0 0
Warnings: Warnings:
Error 1292 Truncated incorrect DECIMAL value: '' Error 1916 Got overflow when converting '1010101010101010101010101010101010101010101010101010101010101010' to INT. Value truncated.
CREATE TABLE t1(c1 BIT(64)); CREATE TABLE t1(c1 BIT(64));
CREATE TABLE t2(c1 BIT(64), c2 BIT(64), c3 BIT(64)); CREATE TABLE t2(c1 BIT(64), c2 BIT(64), c3 BIT(64));
set @v1=64; set @v1=64;
@ -78953,7 +78953,7 @@ CONCAT(BIN(c1),BIN(c2),BIN(c3))
111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111 111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111
111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111 111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111
CREATE TABLE t3 (c1 BIT(65)); CREATE TABLE t3 (c1 BIT(65));
ERROR 42000: Display width out of range for column 'c1' (max = 64) ERROR 42000: Display width out of range for 'c1' (max = 64)
CREATE TABLE t4(i INT, b BIT NOT NULL); CREATE TABLE t4(i INT, b BIT NOT NULL);
ALTER TABLE t4 ADD PRIMARY KEY (i); ALTER TABLE t4 ADD PRIMARY KEY (i);
CREATE TABLE t5(c1 BIT(64) NOT NULL PRIMARY KEY, c2 BIT(64)); CREATE TABLE t5(c1 BIT(64) NOT NULL PRIMARY KEY, c2 BIT(64));
@ -79739,7 +79739,7 @@ SELECT 0 + (10101010101010101010101010101010101010101010101010101010101010101<<0
0 + (10101010101010101010101010101010101010101010101010101010101010101<<0) 0 + (10101010101010101010101010101010101010101010101010101010101010101<<0)
9223372036854775807 9223372036854775807
Warnings: Warnings:
Error 1292 Truncated incorrect DECIMAL value: '' Error 1916 Got overflow when converting '10101010101010101010101010101010101010101010101010101010101010101' to INT. Value truncated.
CREATE TABLE t1(c1 BIT(0)); CREATE TABLE t1(c1 BIT(0));
CREATE TABLE t2(c1 BIT(0), c2 BIT(0), c3 BIT(0)); CREATE TABLE t2(c1 BIT(0), c2 BIT(0), c3 BIT(0));
INSERT INTO t1 VALUES (b'10101010101010101010101010101010101010101010101010101010101010101'); INSERT INTO t1 VALUES (b'10101010101010101010101010101010101010101010101010101010101010101');
@ -79790,7 +79790,7 @@ SELECT CONCAT(BIN(c1),BIN(c2),BIN(c3)) FROM t2;
CONCAT(BIN(c1),BIN(c2),BIN(c3)) CONCAT(BIN(c1),BIN(c2),BIN(c3))
111 111
CREATE TABLE t3 (c1 BIT(65)); CREATE TABLE t3 (c1 BIT(65));
ERROR 42000: Display width out of range for column 'c1' (max = 64) ERROR 42000: Display width out of range for 'c1' (max = 64)
CREATE TABLE t4(i INT, b BIT NOT NULL); CREATE TABLE t4(i INT, b BIT NOT NULL);
ALTER TABLE t4 ADD PRIMARY KEY (i); ALTER TABLE t4 ADD PRIMARY KEY (i);
CREATE TABLE t5(c1 BIT(0) NOT NULL PRIMARY KEY, c2 BIT(0)); CREATE TABLE t5(c1 BIT(0) NOT NULL PRIMARY KEY, c2 BIT(0));
@ -80507,7 +80507,7 @@ SELECT 0 + (10101010101010101010101010101010101010101010101010101010101010101<<1
0 + (10101010101010101010101010101010101010101010101010101010101010101<<1) 0 + (10101010101010101010101010101010101010101010101010101010101010101<<1)
18446744073709551614 18446744073709551614
Warnings: Warnings:
Error 1292 Truncated incorrect DECIMAL value: '' Error 1916 Got overflow when converting '10101010101010101010101010101010101010101010101010101010101010101' to INT. Value truncated.
CREATE TABLE t1(c1 BIT(1)); CREATE TABLE t1(c1 BIT(1));
CREATE TABLE t2(c1 BIT(1), c2 BIT(1), c3 BIT(1)); CREATE TABLE t2(c1 BIT(1), c2 BIT(1), c3 BIT(1));
set @v1=1; set @v1=1;
@ -80600,7 +80600,7 @@ CONCAT(BIN(c1),BIN(c2),BIN(c3))
111 111
111 111
CREATE TABLE t3 (c1 BIT(65)); CREATE TABLE t3 (c1 BIT(65));
ERROR 42000: Display width out of range for column 'c1' (max = 64) ERROR 42000: Display width out of range for 'c1' (max = 64)
CREATE TABLE t4(i INT, b BIT NOT NULL); CREATE TABLE t4(i INT, b BIT NOT NULL);
ALTER TABLE t4 ADD PRIMARY KEY (i); ALTER TABLE t4 ADD PRIMARY KEY (i);
CREATE TABLE t5(c1 BIT(1) NOT NULL PRIMARY KEY, c2 BIT(1)); CREATE TABLE t5(c1 BIT(1) NOT NULL PRIMARY KEY, c2 BIT(1));
@ -81324,7 +81324,7 @@ SELECT 0 + (10101010101010101010101010101010101010101010101010101010101010101<<2
0 + (10101010101010101010101010101010101010101010101010101010101010101<<2) 0 + (10101010101010101010101010101010101010101010101010101010101010101<<2)
18446744073709551612 18446744073709551612
Warnings: Warnings:
Error 1292 Truncated incorrect DECIMAL value: '' Error 1916 Got overflow when converting '10101010101010101010101010101010101010101010101010101010101010101' to INT. Value truncated.
CREATE TABLE t1(c1 BIT(2)); CREATE TABLE t1(c1 BIT(2));
CREATE TABLE t2(c1 BIT(2), c2 BIT(2), c3 BIT(2)); CREATE TABLE t2(c1 BIT(2), c2 BIT(2), c3 BIT(2));
set @v1=2; set @v1=2;
@ -81455,7 +81455,7 @@ CONCAT(BIN(c1),BIN(c2),BIN(c3))
111111 111111
111111 111111
CREATE TABLE t3 (c1 BIT(65)); CREATE TABLE t3 (c1 BIT(65));
ERROR 42000: Display width out of range for column 'c1' (max = 64) ERROR 42000: Display width out of range for 'c1' (max = 64)
CREATE TABLE t4(i INT, b BIT NOT NULL); CREATE TABLE t4(i INT, b BIT NOT NULL);
ALTER TABLE t4 ADD PRIMARY KEY (i); ALTER TABLE t4 ADD PRIMARY KEY (i);
CREATE TABLE t5(c1 BIT(2) NOT NULL PRIMARY KEY, c2 BIT(2)); CREATE TABLE t5(c1 BIT(2) NOT NULL PRIMARY KEY, c2 BIT(2));
@ -82164,7 +82164,7 @@ SELECT 0 + (10101010101010101010101010101010101010101010101010101010101010101<<4
0 + (10101010101010101010101010101010101010101010101010101010101010101<<4) 0 + (10101010101010101010101010101010101010101010101010101010101010101<<4)
18446744073709551600 18446744073709551600
Warnings: Warnings:
Error 1292 Truncated incorrect DECIMAL value: '' Error 1916 Got overflow when converting '10101010101010101010101010101010101010101010101010101010101010101' to INT. Value truncated.
CREATE TABLE t1(c1 BIT(4)); CREATE TABLE t1(c1 BIT(4));
CREATE TABLE t2(c1 BIT(4), c2 BIT(4), c3 BIT(4)); CREATE TABLE t2(c1 BIT(4), c2 BIT(4), c3 BIT(4));
set @v1=4; set @v1=4;
@ -82375,7 +82375,7 @@ CONCAT(BIN(c1),BIN(c2),BIN(c3))
111111111111 111111111111
111111111111 111111111111
CREATE TABLE t3 (c1 BIT(65)); CREATE TABLE t3 (c1 BIT(65));
ERROR 42000: Display width out of range for column 'c1' (max = 64) ERROR 42000: Display width out of range for 'c1' (max = 64)
CREATE TABLE t4(i INT, b BIT NOT NULL); CREATE TABLE t4(i INT, b BIT NOT NULL);
ALTER TABLE t4 ADD PRIMARY KEY (i); ALTER TABLE t4 ADD PRIMARY KEY (i);
CREATE TABLE t5(c1 BIT(4) NOT NULL PRIMARY KEY, c2 BIT(4)); CREATE TABLE t5(c1 BIT(4) NOT NULL PRIMARY KEY, c2 BIT(4));
@ -83082,7 +83082,7 @@ SELECT 0 + (10101010101010101010101010101010101010101010101010101010101010101<<8
0 + (10101010101010101010101010101010101010101010101010101010101010101<<8) 0 + (10101010101010101010101010101010101010101010101010101010101010101<<8)
18446744073709551360 18446744073709551360
Warnings: Warnings:
Error 1292 Truncated incorrect DECIMAL value: '' Error 1916 Got overflow when converting '10101010101010101010101010101010101010101010101010101010101010101' to INT. Value truncated.
CREATE TABLE t1(c1 BIT(8)); CREATE TABLE t1(c1 BIT(8));
CREATE TABLE t2(c1 BIT(8), c2 BIT(8), c3 BIT(8)); CREATE TABLE t2(c1 BIT(8), c2 BIT(8), c3 BIT(8));
set @v1=8; set @v1=8;
@ -83453,7 +83453,7 @@ CONCAT(BIN(c1),BIN(c2),BIN(c3))
111111111111111111111111 111111111111111111111111
111111111111111111111111 111111111111111111111111
CREATE TABLE t3 (c1 BIT(65)); CREATE TABLE t3 (c1 BIT(65));
ERROR 42000: Display width out of range for column 'c1' (max = 64) ERROR 42000: Display width out of range for 'c1' (max = 64)
CREATE TABLE t4(i INT, b BIT NOT NULL); CREATE TABLE t4(i INT, b BIT NOT NULL);
ALTER TABLE t4 ADD PRIMARY KEY (i); ALTER TABLE t4 ADD PRIMARY KEY (i);
CREATE TABLE t5(c1 BIT(8) NOT NULL PRIMARY KEY, c2 BIT(8)); CREATE TABLE t5(c1 BIT(8) NOT NULL PRIMARY KEY, c2 BIT(8));
@ -84286,7 +84286,7 @@ SELECT 0 + (10101010101010101010101010101010101010101010101010101010101010101<<1
0 + (10101010101010101010101010101010101010101010101010101010101010101<<16) 0 + (10101010101010101010101010101010101010101010101010101010101010101<<16)
18446744073709486080 18446744073709486080
Warnings: Warnings:
Error 1292 Truncated incorrect DECIMAL value: '' Error 1916 Got overflow when converting '10101010101010101010101010101010101010101010101010101010101010101' to INT. Value truncated.
CREATE TABLE t1(c1 BIT(16)); CREATE TABLE t1(c1 BIT(16));
CREATE TABLE t2(c1 BIT(16), c2 BIT(16), c3 BIT(16)); CREATE TABLE t2(c1 BIT(16), c2 BIT(16), c3 BIT(16));
set @v1=16; set @v1=16;
@ -84977,7 +84977,7 @@ CONCAT(BIN(c1),BIN(c2),BIN(c3))
111111111111111111111111111111111111111111111111 111111111111111111111111111111111111111111111111
111111111111111111111111111111111111111111111111 111111111111111111111111111111111111111111111111
CREATE TABLE t3 (c1 BIT(65)); CREATE TABLE t3 (c1 BIT(65));
ERROR 42000: Display width out of range for column 'c1' (max = 64) ERROR 42000: Display width out of range for 'c1' (max = 64)
CREATE TABLE t4(i INT, b BIT NOT NULL); CREATE TABLE t4(i INT, b BIT NOT NULL);
ALTER TABLE t4 ADD PRIMARY KEY (i); ALTER TABLE t4 ADD PRIMARY KEY (i);
CREATE TABLE t5(c1 BIT(16) NOT NULL PRIMARY KEY, c2 BIT(16)); CREATE TABLE t5(c1 BIT(16) NOT NULL PRIMARY KEY, c2 BIT(16));
@ -85695,7 +85695,7 @@ SELECT 0 + (10101010101010101010101010101010101010101010101010101010101010101<<3
0 + (10101010101010101010101010101010101010101010101010101010101010101<<32) 0 + (10101010101010101010101010101010101010101010101010101010101010101<<32)
18446744069414584320 18446744069414584320
Warnings: Warnings:
Error 1292 Truncated incorrect DECIMAL value: '' Error 1916 Got overflow when converting '10101010101010101010101010101010101010101010101010101010101010101' to INT. Value truncated.
CREATE TABLE t1(c1 BIT(32)); CREATE TABLE t1(c1 BIT(32));
CREATE TABLE t2(c1 BIT(32), c2 BIT(32), c3 BIT(32)); CREATE TABLE t2(c1 BIT(32), c2 BIT(32), c3 BIT(32));
set @v1=32; set @v1=32;
@ -87023,7 +87023,7 @@ CONCAT(BIN(c1),BIN(c2),BIN(c3))
111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111 111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111
111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111 111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111
CREATE TABLE t3 (c1 BIT(65)); CREATE TABLE t3 (c1 BIT(65));
ERROR 42000: Display width out of range for column 'c1' (max = 64) ERROR 42000: Display width out of range for 'c1' (max = 64)
CREATE TABLE t4(i INT, b BIT NOT NULL); CREATE TABLE t4(i INT, b BIT NOT NULL);
ALTER TABLE t4 ADD PRIMARY KEY (i); ALTER TABLE t4 ADD PRIMARY KEY (i);
CREATE TABLE t5(c1 BIT(32) NOT NULL PRIMARY KEY, c2 BIT(32)); CREATE TABLE t5(c1 BIT(32) NOT NULL PRIMARY KEY, c2 BIT(32));
@ -87771,7 +87771,7 @@ SELECT 0 + (10101010101010101010101010101010101010101010101010101010101010101<<6
0 + (10101010101010101010101010101010101010101010101010101010101010101<<64) 0 + (10101010101010101010101010101010101010101010101010101010101010101<<64)
0 0
Warnings: Warnings:
Error 1292 Truncated incorrect DECIMAL value: '' Error 1916 Got overflow when converting '10101010101010101010101010101010101010101010101010101010101010101' to INT. Value truncated.
CREATE TABLE t1(c1 BIT(64)); CREATE TABLE t1(c1 BIT(64));
CREATE TABLE t2(c1 BIT(64), c2 BIT(64), c3 BIT(64)); CREATE TABLE t2(c1 BIT(64), c2 BIT(64), c3 BIT(64));
set @v1=64; set @v1=64;
@ -90363,7 +90363,7 @@ CONCAT(BIN(c1),BIN(c2),BIN(c3))
111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111 111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111
111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111 111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111
CREATE TABLE t3 (c1 BIT(65)); CREATE TABLE t3 (c1 BIT(65));
ERROR 42000: Display width out of range for column 'c1' (max = 64) ERROR 42000: Display width out of range for 'c1' (max = 64)
CREATE TABLE t4(i INT, b BIT NOT NULL); CREATE TABLE t4(i INT, b BIT NOT NULL);
ALTER TABLE t4 ADD PRIMARY KEY (i); ALTER TABLE t4 ADD PRIMARY KEY (i);
CREATE TABLE t5(c1 BIT(64) NOT NULL PRIMARY KEY, c2 BIT(64)); CREATE TABLE t5(c1 BIT(64) NOT NULL PRIMARY KEY, c2 BIT(64));

View file

@ -71,13 +71,6 @@ Warning 1265 Data truncated for column 'c2' at row 1
SELECT count(*) FROM t1 WHERE c2='10:45:15' OR c2='2009-01-32' OR c2='2009-02-30' OR c2='2009-04-31' OR c2='2009-06-31' OR c2='2009-09-31' /* returns 0 */; SELECT count(*) FROM t1 WHERE c2='10:45:15' OR c2='2009-01-32' OR c2='2009-02-30' OR c2='2009-04-31' OR c2='2009-06-31' OR c2='2009-09-31' /* returns 0 */;
count(*) count(*)
0 0
Warnings:
Warning 1292 Incorrect date value: '10:45:15' for column 'c2' at row 1
Warning 1292 Incorrect date value: '2009-01-32' for column 'c2' at row 1
Warning 1292 Incorrect date value: '10:45:15' for column 'c2' at row 1
Warning 1292 Incorrect date value: '2009-01-32' for column 'c2' at row 1
Warning 1292 Incorrect date value: '10:45:15' for column 'c2' at row 1
Warning 1292 Incorrect date value: '2009-01-32' for column 'c2' at row 1
UPDATE t1 SET c2='2009-11-31' WHERE c2='2001-01-16'; UPDATE t1 SET c2='2009-11-31' WHERE c2='2001-01-16';
Warnings: Warnings:
Warning 1265 Data truncated for column 'c2' at row 1 Warning 1265 Data truncated for column 'c2' at row 1
@ -108,8 +101,7 @@ c1 c2 c3
2001-01-16 0000-00-00 12 2001-01-16 0000-00-00 12
2001-01-17 0000-00-00 13 2001-01-17 0000-00-00 13
Warnings: Warnings:
Warning 1292 Incorrect date value: '0000-00-00' for column 'c2' at row 1 Warning 1264 Out of range value for column 'c2' at row 1
Warning 1292 Incorrect date value: '0000-00-00' for column 'c2' at row 1
UPDATE t1 SET c2='0000-00-00' WHERE c2='2001-01-18'; UPDATE t1 SET c2='0000-00-00' WHERE c2='2001-01-18';
ERROR 22007: Incorrect date value: '0000-00-00' for column 'c2' at row 1 ERROR 22007: Incorrect date value: '0000-00-00' for column 'c2' at row 1
SET SQL_MODE=DEFAULT; SET SQL_MODE=DEFAULT;
@ -774,20 +766,17 @@ c1 c2 c3
INSERT INTO t1 VALUES('2001-01-09','2001-01-10',6),('2001-01-11','2001-01-12',7); INSERT INTO t1 VALUES('2001-01-09','2001-01-10',6),('2001-01-11','2001-01-12',7);
UPDATE t1 SET c1='2001-01-09 24:59:59',c2='2009-01-10 23:60:59' WHERE c1='2001-01-09'; UPDATE t1 SET c1='2001-01-09 24:59:59',c2='2009-01-10 23:60:59' WHERE c1='2001-01-09';
Warnings: Warnings:
Warning 1264 Out of range value for column 'c1' at row 1 Warning 1265 Data truncated for column 'c1' at row 1
Warning 1264 Out of range value for column 'c2' at row 1 Warning 1265 Data truncated for column 'c2' at row 1
UPDATE t1 SET c2='2001-01-11 23:59:60' WHERE c1='2001-01-11'; UPDATE t1 SET c2='2001-01-11 23:59:60' WHERE c1='2001-01-11';
Warnings: Warnings:
Warning 1264 Out of range value for column 'c2' at row 1 Warning 1265 Data truncated for column 'c2' at row 1
SELECT count(*) FROM t1 WHERE c1='2001-01-09 24:59:59' AND c2='2009-01-10 23:60:59'; SELECT count(*) FROM t1 WHERE c1='2001-01-09 24:59:59' AND c2='2009-01-10 23:60:59';
count(*) count(*)
1 1
Warnings: Warnings:
Warning 1292 Incorrect datetime value: '2001-01-09 24:59:59' for column 'c1' at row 1 Warning 1292 Incorrect datetime value: '2001-01-09 24:59:59'
Warning 1292 Incorrect datetime value: '2009-01-10 23:60:59' for column 'c2' at row 1 Warning 1292 Incorrect datetime value: '2009-01-10 23:60:59'
Warning 1292 Incorrect datetime value: '2001-01-09 24:59:59' for column 'c1' at row 1
Warning 1292 Truncated incorrect datetime value: '2001-01-09 24:59:59'
Warning 1292 Truncated incorrect datetime value: '2009-01-10 23:60:59'
SELECT count(*) FROM t1 WHERE c2='2001-01-11 23:59:60' /* returns 0 */; SELECT count(*) FROM t1 WHERE c2='2001-01-11 23:59:60' /* returns 0 */;
count(*) count(*)
0 0
@ -803,8 +792,7 @@ c1 c2 c3
2001-01-11 00:00:00 0000-00-00 00:00:00 7 2001-01-11 00:00:00 0000-00-00 00:00:00 7
2001-01-17 00:00:00 0000-00-00 00:00:00 8 2001-01-17 00:00:00 0000-00-00 00:00:00 8
Warnings: Warnings:
Warning 1292 Incorrect datetime value: '0000-00-00 00:00:00' for column 'c2' at row 1 Warning 1264 Out of range value for column 'c2' at row 1
Warning 1292 Incorrect datetime value: '0000-00-00 00:00:00' for column 'c2' at row 1
UPDATE t1 SET c2='0000-00-00 00:00:00' WHERE c2='2001-01-18 07:35'; UPDATE t1 SET c2='0000-00-00 00:00:00' WHERE c2='2001-01-18 07:35';
ERROR 22007: Incorrect datetime value: '0000-00-00 00:00:00' for column 'c2' at row 1 ERROR 22007: Incorrect datetime value: '0000-00-00 00:00:00' for column 'c2' at row 1
SET SQL_MODE=DEFAULT; SET SQL_MODE=DEFAULT;
@ -946,15 +934,13 @@ c1 c2 c3
2003-01-01 01:02:03 2002-01-09 01:30:30 10 2003-01-01 01:02:03 2002-01-09 01:30:30 10
UPDATE t1 SET c1='2003-01-01 1:2:3' WHERE c2 BETWEEN '20020109 01:30:40' AND '20020109 01:30:50' ORDER BY c2 LIMIT 2; UPDATE t1 SET c1='2003-01-01 1:2:3' WHERE c2 BETWEEN '20020109 01:30:40' AND '20020109 01:30:50' ORDER BY c2 LIMIT 2;
Warnings: Warnings:
Warning 1292 Incorrect datetime value: '20020109 01:30:40' for column 'c2' at row 1 Warning 1292 Incorrect datetime value: '20020109 01:30:40'
Warning 1292 Incorrect datetime value: '20020109 01:30:40' for column 'c2' at row 1 Warning 1292 Incorrect datetime value: '20020109 01:30:50'
Warning 1292 Incorrect datetime value: '20020109 01:30:50' for column 'c2' at row 1
SELECT * FROM t1 WHERE c2 BETWEEN '20020109 01:30:40' AND '20020109 01:30:50' ORDER BY c2; SELECT * FROM t1 WHERE c2 BETWEEN '20020109 01:30:40' AND '20020109 01:30:50' ORDER BY c2;
c1 c2 c3 c1 c2 c3
Warnings: Warnings:
Warning 1292 Incorrect datetime value: '20020109 01:30:40' for column 'c2' at row 1 Warning 1292 Incorrect datetime value: '20020109 01:30:40'
Warning 1292 Incorrect datetime value: '20020109 01:30:40' for column 'c2' at row 1 Warning 1292 Incorrect datetime value: '20020109 01:30:50'
Warning 1292 Incorrect datetime value: '20020109 01:30:50' for column 'c2' at row 1
UPDATE t1 SET c1='2003-01-01 1:2:3' WHERE c2 IN('2002-01-09 1:30:55','2002-01-09 2:00') ORDER BY c2 DESC LIMIT 2; UPDATE t1 SET c1='2003-01-01 1:2:3' WHERE c2 IN('2002-01-09 1:30:55','2002-01-09 2:00') ORDER BY c2 DESC LIMIT 2;
SELECT * FROM t1 WHERE c2 IN('2002-01-09 1:30:55','2002-01-09 2:00') ORDER BY c2 DESC; SELECT * FROM t1 WHERE c2 IN('2002-01-09 1:30:55','2002-01-09 2:00') ORDER BY c2 DESC;
c1 c2 c3 c1 c2 c3
@ -1386,17 +1372,13 @@ SELECT count(*) FROM t1 WHERE c1='2001-01-09 24:59:59' AND c2='2009-01-10 23:60:
count(*) count(*)
1 1
Warnings: Warnings:
Warning 1292 Incorrect datetime value: '2001-01-09 24:59:59' for column 'c1' at row 1 Warning 1292 Incorrect datetime value: '2001-01-09 24:59:59'
Warning 1292 Incorrect datetime value: '2009-01-10 23:60:59' for column 'c2' at row 1 Warning 1292 Incorrect datetime value: '2009-01-10 23:60:59'
Warning 1292 Incorrect datetime value: '2001-01-09 24:59:59' for column 'c1' at row 1
Warning 1292 Truncated incorrect datetime value: '2001-01-09 24:59:59'
Warning 1292 Truncated incorrect datetime value: '2009-01-10 23:60:59'
SELECT count(*) FROM t1 WHERE c1='2001-01-11 23:59:59' AND c2='2001-01-11 23:59:60'; SELECT count(*) FROM t1 WHERE c1='2001-01-11 23:59:59' AND c2='2001-01-11 23:59:60';
count(*) count(*)
1 1
Warnings: Warnings:
Warning 1292 Incorrect datetime value: '2001-01-11 23:59:60' for column 'c2' at row 1 Warning 1292 Incorrect datetime value: '2001-01-11 23:59:60'
Warning 1292 Truncated incorrect datetime value: '2001-01-11 23:59:60'
SELECT * FROM t1 WHERE c1='0000-00-00 00:00:00' OR c2='0000-00-00 00:00:00'; SELECT * FROM t1 WHERE c1='0000-00-00 00:00:00' OR c2='0000-00-00 00:00:00';
c1 c2 c3 c1 c2 c3
0000-00-00 00:00:00 0000-00-00 00:00:00 6 0000-00-00 00:00:00 0000-00-00 00:00:00 6
@ -1409,8 +1391,7 @@ c1 c2 c3
2001-01-11 23:59:59 0000-00-00 00:00:00 7 2001-01-11 23:59:59 0000-00-00 00:00:00 7
2001-01-17 00:00:00 0000-00-00 00:00:00 8 2001-01-17 00:00:00 0000-00-00 00:00:00 8
Warnings: Warnings:
Warning 1292 Incorrect datetime value: '0000-00-00 00:00:00' for column 'c2' at row 1 Warning 1265 Data truncated for column 'c2' at row 1
Warning 1292 Incorrect datetime value: '0000-00-00 00:00:00' for column 'c2' at row 1
UPDATE t1 SET c1='1972-01-01 07:35',c2='0000-00-00 00:00:00' WHERE c2='2001-01-18 07:35'; UPDATE t1 SET c1='1972-01-01 07:35',c2='0000-00-00 00:00:00' WHERE c2='2001-01-18 07:35';
ERROR 22007: Incorrect datetime value: '0000-00-00 00:00:00' for column 'c2' at row 1 ERROR 22007: Incorrect datetime value: '0000-00-00 00:00:00' for column 'c2' at row 1
SET SQL_MODE=DEFAULT; SET SQL_MODE=DEFAULT;
@ -1549,15 +1530,13 @@ c1 c2 c3
2003-01-01 01:02:03 2002-01-09 01:30:30 10 2003-01-01 01:02:03 2002-01-09 01:30:30 10
UPDATE t1 SET c1='2003-01-01 1:2:3' WHERE c2 BETWEEN '20020109 01:30:40' AND '20020109 01:30:50' ORDER BY c2 LIMIT 2; UPDATE t1 SET c1='2003-01-01 1:2:3' WHERE c2 BETWEEN '20020109 01:30:40' AND '20020109 01:30:50' ORDER BY c2 LIMIT 2;
Warnings: Warnings:
Warning 1292 Incorrect datetime value: '20020109 01:30:40' for column 'c2' at row 1 Warning 1292 Incorrect datetime value: '20020109 01:30:40'
Warning 1292 Incorrect datetime value: '20020109 01:30:40' for column 'c2' at row 1 Warning 1292 Incorrect datetime value: '20020109 01:30:50'
Warning 1292 Incorrect datetime value: '20020109 01:30:50' for column 'c2' at row 1
SELECT * FROM t1 WHERE c2 BETWEEN '20020109 01:30:40' AND '20020109 01:30:50' ORDER BY c2; SELECT * FROM t1 WHERE c2 BETWEEN '20020109 01:30:40' AND '20020109 01:30:50' ORDER BY c2;
c1 c2 c3 c1 c2 c3
Warnings: Warnings:
Warning 1292 Incorrect datetime value: '20020109 01:30:40' for column 'c2' at row 1 Warning 1292 Incorrect datetime value: '20020109 01:30:40'
Warning 1292 Incorrect datetime value: '20020109 01:30:40' for column 'c2' at row 1 Warning 1292 Incorrect datetime value: '20020109 01:30:50'
Warning 1292 Incorrect datetime value: '20020109 01:30:50' for column 'c2' at row 1
UPDATE t1 SET c1='2003-01-01 1:2:3' WHERE c2 IN('2002-01-09 1:30:55','2002-01-09 2:00') ORDER BY c2 DESC LIMIT 2; UPDATE t1 SET c1='2003-01-01 1:2:3' WHERE c2 IN('2002-01-09 1:30:55','2002-01-09 2:00') ORDER BY c2 DESC LIMIT 2;
SELECT * FROM t1 WHERE c2 IN('2002-01-09 1:30:55','2002-01-09 2:00') ORDER BY c2 DESC; SELECT * FROM t1 WHERE c2 IN('2002-01-09 1:30:55','2002-01-09 2:00') ORDER BY c2 DESC;
c1 c2 c3 c1 c2 c3

View file

@ -56,6 +56,8 @@ Warning 1264 Out of range value for column 'c2' at row 3
SELECT COUNT(*) FROM t1 WHERE c1=4294967296 AND c2=2147483648 /* no rows */; SELECT COUNT(*) FROM t1 WHERE c1=4294967296 AND c2=2147483648 /* no rows */;
COUNT(*) COUNT(*)
0 0
Warnings:
Warning 1264 Out of range value for column 'c2' at row 1
SELECT * FROM t1 WHERE c1=4294967295 AND c2=2147483647; SELECT * FROM t1 WHERE c1=4294967295 AND c2=2147483647;
c1 c2 c3 c1 c2 c3
4294967295 2147483647 10 4294967295 2147483647 10
@ -1150,6 +1152,8 @@ Warning 1264 Out of range value for column 'c2' at row 3
SELECT COUNT(*) FROM t1 WHERE c1=256 AND c2=128 /* no rows */; SELECT COUNT(*) FROM t1 WHERE c1=256 AND c2=128 /* no rows */;
COUNT(*) COUNT(*)
0 0
Warnings:
Warning 1264 Out of range value for column 'c2' at row 1
SELECT * FROM t1 WHERE c1=255 AND c2=127; SELECT * FROM t1 WHERE c1=255 AND c2=127;
c1 c2 c3 c1 c2 c3
255 127 10 255 127 10
@ -1922,6 +1926,8 @@ Warning 1264 Out of range value for column 'c2' at row 3
SELECT COUNT(*) FROM t1 WHERE c1=65536 AND c2=32768 /* no rows */; SELECT COUNT(*) FROM t1 WHERE c1=65536 AND c2=32768 /* no rows */;
COUNT(*) COUNT(*)
0 0
Warnings:
Warning 1264 Out of range value for column 'c2' at row 1
SELECT * FROM t1 WHERE c1=65535 AND c2=32767; SELECT * FROM t1 WHERE c1=65535 AND c2=32767;
c1 c2 c3 c1 c2 c3
65535 32767 10 65535 32767 10
@ -2669,6 +2675,8 @@ Warning 1264 Out of range value for column 'c2' at row 3
SELECT COUNT(*) FROM t1 WHERE c1=16777216 AND c2=8388608 /* no rows */; SELECT COUNT(*) FROM t1 WHERE c1=16777216 AND c2=8388608 /* no rows */;
COUNT(*) COUNT(*)
0 0
Warnings:
Warning 1264 Out of range value for column 'c2' at row 1
SELECT * FROM t1 WHERE c1=16777215 AND c2=8388607; SELECT * FROM t1 WHERE c1=16777215 AND c2=8388607;
c1 c2 c3 c1 c2 c3
16777215 8388607 10 16777215 8388607 10
@ -3416,6 +3424,8 @@ Warning 1264 Out of range value for column 'c2' at row 3
SELECT COUNT(*) FROM t1 WHERE c1=18446744073709551616 AND c2=9223372036854775808 /* no rows */; SELECT COUNT(*) FROM t1 WHERE c1=18446744073709551616 AND c2=9223372036854775808 /* no rows */;
COUNT(*) COUNT(*)
0 0
Warnings:
Warning 1264 Out of range value for column 'c2' at row 1
SELECT * FROM t1 WHERE c1=18446744073709551615 AND c2=9223372036854775807; SELECT * FROM t1 WHERE c1=18446744073709551615 AND c2=9223372036854775807;
c1 c2 c3 c1 c2 c3
18446744073709551615 9223372036854775807 10 18446744073709551615 9223372036854775807 10