MDEV-14576 Include full name of object in message about incorrect value for column.

The error message modified.
Then the TABLE_SHARE::error_table_name() implementation taken from 10.3,
          to be used as a name of the table in this message.
This commit is contained in:
Alexey Botchkov 2018-12-16 02:21:41 +04:00
parent 0a2edddbf4
commit c4ab352b67
100 changed files with 1494 additions and 1422 deletions

View File

@ -751,12 +751,12 @@ create table t1(f1 int);
alter table t1 add column f2 datetime not null, add column f21 date not null; alter table t1 add column f2 datetime not null, add column f21 date not null;
insert into t1 values(1,'2000-01-01','2000-01-01'); insert into t1 values(1,'2000-01-01','2000-01-01');
alter table t1 add column f3 datetime not null; alter table t1 add column f3 datetime not null;
ERROR 22007: Incorrect datetime value: '0000-00-00 00:00:00' for column 'f3' at row 1 ERROR 22007: Incorrect datetime value: '0000-00-00 00:00:00' for column `test`.`t1`.`f3` at row 1
alter table t1 add column f3 date not null; alter table t1 add column f3 date not null;
ERROR 22007: Incorrect date value: '0000-00-00' for column 'f3' at row 1 ERROR 22007: Incorrect date value: '0000-00-00' for column `test`.`t1`.`f3` at row 1
alter table t1 add column f4 datetime not null default '2002-02-02', alter table t1 add column f4 datetime not null default '2002-02-02',
add column f41 date not null; add column f41 date not null;
ERROR 22007: Incorrect date value: '0000-00-00' for column 'f41' at row 1 ERROR 22007: Incorrect date value: '0000-00-00' for column `test`.`t1`.`f41` at row 1
alter table t1 add column f4 datetime not null default '2002-02-02', alter table t1 add column f4 datetime not null default '2002-02-02',
add column f41 date not null default '2002-02-02'; add column f41 date not null default '2002-02-02';
select * from t1; select * from t1;

View File

@ -1225,7 +1225,7 @@ INSERT INTO t3 VALUES (0);
SET sql_mode = TRADITIONAL; SET sql_mode = TRADITIONAL;
ALTER TABLE t3 ADD INDEX(c1); ALTER TABLE t3 ADD INDEX(c1);
ERROR 22007: Incorrect datetime value: '0000-00-00 00:00:00' for column 'c1' at row 1 ERROR 22007: Incorrect datetime value: '0000-00-00 00:00:00' for column `test`.`t3`.`c1` at row 1
# -- Cleanup. # -- Cleanup.
SET sql_mode = ''; SET sql_mode = '';
@ -1783,12 +1783,12 @@ NULL 0000-00-00 0000-00-00
drop table t1; drop table t1;
set @@session.sql_mode='STRICT_ALL_TABLES'; set @@session.sql_mode='STRICT_ALL_TABLES';
create table if not exists t1 (a int, b date, c date) select 1 as b, 2 as c; create table if not exists t1 (a int, b date, c date) select 1 as b, 2 as c;
ERROR 22007: Incorrect date value: '1' for column 'b' at row 1 ERROR 22007: Incorrect date value: '1' for column `test`.`t1`.`b` at row 1
select * from t1; select * from t1;
ERROR 42S02: Table 'test.t1' doesn't exist ERROR 42S02: Table 'test.t1' doesn't exist
create table if not exists t1 (a int, b date, c date) create table if not exists t1 (a int, b date, c date)
replace select 1 as b, 2 as c; replace select 1 as b, 2 as c;
ERROR 22007: Incorrect date value: '1' for column 'b' at row 1 ERROR 22007: Incorrect date value: '1' for column `test`.`t1`.`b` at row 1
select * from t1; select * from t1;
ERROR 42S02: Table 'test.t1' doesn't exist ERROR 42S02: Table 'test.t1' doesn't exist
create table if not exists t1 (a int, b date, c date) create table if not exists t1 (a int, b date, c date)

View File

@ -565,70 +565,70 @@ COUNT(*)
28672 28672
UPDATE IGNORE t1 SET a=unhex(code) ORDER BY code; UPDATE IGNORE t1 SET a=unhex(code) ORDER BY code;
Warnings: Warnings:
Warning 1366 Incorrect string value: '\x80 ' for column 'a' at row 1 Warning 1366 Incorrect string value: '\x80 ' for column `test`.`t1`.`a` at row 1
Warning 1366 Incorrect string value: '\x80!' for column 'a' at row 2 Warning 1366 Incorrect string value: '\x80!' for column `test`.`t1`.`a` at row 2
Warning 1366 Incorrect string value: '\x80"' for column 'a' at row 3 Warning 1366 Incorrect string value: '\x80"' for column `test`.`t1`.`a` at row 3
Warning 1366 Incorrect string value: '\x80#' for column 'a' at row 4 Warning 1366 Incorrect string value: '\x80#' for column `test`.`t1`.`a` at row 4
Warning 1366 Incorrect string value: '\x80$' for column 'a' at row 5 Warning 1366 Incorrect string value: '\x80$' for column `test`.`t1`.`a` at row 5
Warning 1366 Incorrect string value: '\x80%' for column 'a' at row 6 Warning 1366 Incorrect string value: '\x80%' for column `test`.`t1`.`a` at row 6
Warning 1366 Incorrect string value: '\x80&' for column 'a' at row 7 Warning 1366 Incorrect string value: '\x80&' for column `test`.`t1`.`a` at row 7
Warning 1366 Incorrect string value: '\x80'' for column 'a' at row 8 Warning 1366 Incorrect string value: '\x80'' for column `test`.`t1`.`a` at row 8
Warning 1366 Incorrect string value: '\x80(' for column 'a' at row 9 Warning 1366 Incorrect string value: '\x80(' for column `test`.`t1`.`a` at row 9
Warning 1366 Incorrect string value: '\x80)' for column 'a' at row 10 Warning 1366 Incorrect string value: '\x80)' for column `test`.`t1`.`a` at row 10
Warning 1366 Incorrect string value: '\x80*' for column 'a' at row 11 Warning 1366 Incorrect string value: '\x80*' for column `test`.`t1`.`a` at row 11
Warning 1366 Incorrect string value: '\x80+' for column 'a' at row 12 Warning 1366 Incorrect string value: '\x80+' for column `test`.`t1`.`a` at row 12
Warning 1366 Incorrect string value: '\x80,' for column 'a' at row 13 Warning 1366 Incorrect string value: '\x80,' for column `test`.`t1`.`a` at row 13
Warning 1366 Incorrect string value: '\x80-' for column 'a' at row 14 Warning 1366 Incorrect string value: '\x80-' for column `test`.`t1`.`a` at row 14
Warning 1366 Incorrect string value: '\x80.' for column 'a' at row 15 Warning 1366 Incorrect string value: '\x80.' for column `test`.`t1`.`a` at row 15
Warning 1366 Incorrect string value: '\x80/' for column 'a' at row 16 Warning 1366 Incorrect string value: '\x80/' for column `test`.`t1`.`a` at row 16
Warning 1366 Incorrect string value: '\x800' for column 'a' at row 17 Warning 1366 Incorrect string value: '\x800' for column `test`.`t1`.`a` at row 17
Warning 1366 Incorrect string value: '\x801' for column 'a' at row 18 Warning 1366 Incorrect string value: '\x801' for column `test`.`t1`.`a` at row 18
Warning 1366 Incorrect string value: '\x802' for column 'a' at row 19 Warning 1366 Incorrect string value: '\x802' for column `test`.`t1`.`a` at row 19
Warning 1366 Incorrect string value: '\x803' for column 'a' at row 20 Warning 1366 Incorrect string value: '\x803' for column `test`.`t1`.`a` at row 20
Warning 1366 Incorrect string value: '\x804' for column 'a' at row 21 Warning 1366 Incorrect string value: '\x804' for column `test`.`t1`.`a` at row 21
Warning 1366 Incorrect string value: '\x805' for column 'a' at row 22 Warning 1366 Incorrect string value: '\x805' for column `test`.`t1`.`a` at row 22
Warning 1366 Incorrect string value: '\x806' for column 'a' at row 23 Warning 1366 Incorrect string value: '\x806' for column `test`.`t1`.`a` at row 23
Warning 1366 Incorrect string value: '\x807' for column 'a' at row 24 Warning 1366 Incorrect string value: '\x807' for column `test`.`t1`.`a` at row 24
Warning 1366 Incorrect string value: '\x808' for column 'a' at row 25 Warning 1366 Incorrect string value: '\x808' for column `test`.`t1`.`a` at row 25
Warning 1366 Incorrect string value: '\x809' for column 'a' at row 26 Warning 1366 Incorrect string value: '\x809' for column `test`.`t1`.`a` at row 26
Warning 1366 Incorrect string value: '\x80:' for column 'a' at row 27 Warning 1366 Incorrect string value: '\x80:' for column `test`.`t1`.`a` at row 27
Warning 1366 Incorrect string value: '\x80;' for column 'a' at row 28 Warning 1366 Incorrect string value: '\x80;' for column `test`.`t1`.`a` at row 28
Warning 1366 Incorrect string value: '\x80<' for column 'a' at row 29 Warning 1366 Incorrect string value: '\x80<' for column `test`.`t1`.`a` at row 29
Warning 1366 Incorrect string value: '\x80=' for column 'a' at row 30 Warning 1366 Incorrect string value: '\x80=' for column `test`.`t1`.`a` at row 30
Warning 1366 Incorrect string value: '\x80>' for column 'a' at row 31 Warning 1366 Incorrect string value: '\x80>' for column `test`.`t1`.`a` at row 31
Warning 1366 Incorrect string value: '\x80?' for column 'a' at row 32 Warning 1366 Incorrect string value: '\x80?' for column `test`.`t1`.`a` at row 32
Warning 1366 Incorrect string value: '\x80@' for column 'a' at row 33 Warning 1366 Incorrect string value: '\x80@' for column `test`.`t1`.`a` at row 33
Warning 1366 Incorrect string value: '\x80A' for column 'a' at row 34 Warning 1366 Incorrect string value: '\x80A' for column `test`.`t1`.`a` at row 34
Warning 1366 Incorrect string value: '\x80B' for column 'a' at row 35 Warning 1366 Incorrect string value: '\x80B' for column `test`.`t1`.`a` at row 35
Warning 1366 Incorrect string value: '\x80C' for column 'a' at row 36 Warning 1366 Incorrect string value: '\x80C' for column `test`.`t1`.`a` at row 36
Warning 1366 Incorrect string value: '\x80D' for column 'a' at row 37 Warning 1366 Incorrect string value: '\x80D' for column `test`.`t1`.`a` at row 37
Warning 1366 Incorrect string value: '\x80E' for column 'a' at row 38 Warning 1366 Incorrect string value: '\x80E' for column `test`.`t1`.`a` at row 38
Warning 1366 Incorrect string value: '\x80F' for column 'a' at row 39 Warning 1366 Incorrect string value: '\x80F' for column `test`.`t1`.`a` at row 39
Warning 1366 Incorrect string value: '\x80G' for column 'a' at row 40 Warning 1366 Incorrect string value: '\x80G' for column `test`.`t1`.`a` at row 40
Warning 1366 Incorrect string value: '\x80H' for column 'a' at row 41 Warning 1366 Incorrect string value: '\x80H' for column `test`.`t1`.`a` at row 41
Warning 1366 Incorrect string value: '\x80I' for column 'a' at row 42 Warning 1366 Incorrect string value: '\x80I' for column `test`.`t1`.`a` at row 42
Warning 1366 Incorrect string value: '\x80J' for column 'a' at row 43 Warning 1366 Incorrect string value: '\x80J' for column `test`.`t1`.`a` at row 43
Warning 1366 Incorrect string value: '\x80K' for column 'a' at row 44 Warning 1366 Incorrect string value: '\x80K' for column `test`.`t1`.`a` at row 44
Warning 1366 Incorrect string value: '\x80L' for column 'a' at row 45 Warning 1366 Incorrect string value: '\x80L' for column `test`.`t1`.`a` at row 45
Warning 1366 Incorrect string value: '\x80M' for column 'a' at row 46 Warning 1366 Incorrect string value: '\x80M' for column `test`.`t1`.`a` at row 46
Warning 1366 Incorrect string value: '\x80N' for column 'a' at row 47 Warning 1366 Incorrect string value: '\x80N' for column `test`.`t1`.`a` at row 47
Warning 1366 Incorrect string value: '\x80O' for column 'a' at row 48 Warning 1366 Incorrect string value: '\x80O' for column `test`.`t1`.`a` at row 48
Warning 1366 Incorrect string value: '\x80P' for column 'a' at row 49 Warning 1366 Incorrect string value: '\x80P' for column `test`.`t1`.`a` at row 49
Warning 1366 Incorrect string value: '\x80Q' for column 'a' at row 50 Warning 1366 Incorrect string value: '\x80Q' for column `test`.`t1`.`a` at row 50
Warning 1366 Incorrect string value: '\x80R' for column 'a' at row 51 Warning 1366 Incorrect string value: '\x80R' for column `test`.`t1`.`a` at row 51
Warning 1366 Incorrect string value: '\x80S' for column 'a' at row 52 Warning 1366 Incorrect string value: '\x80S' for column `test`.`t1`.`a` at row 52
Warning 1366 Incorrect string value: '\x80T' for column 'a' at row 53 Warning 1366 Incorrect string value: '\x80T' for column `test`.`t1`.`a` at row 53
Warning 1366 Incorrect string value: '\x80U' for column 'a' at row 54 Warning 1366 Incorrect string value: '\x80U' for column `test`.`t1`.`a` at row 54
Warning 1366 Incorrect string value: '\x80V' for column 'a' at row 55 Warning 1366 Incorrect string value: '\x80V' for column `test`.`t1`.`a` at row 55
Warning 1366 Incorrect string value: '\x80W' for column 'a' at row 56 Warning 1366 Incorrect string value: '\x80W' for column `test`.`t1`.`a` at row 56
Warning 1366 Incorrect string value: '\x80X' for column 'a' at row 57 Warning 1366 Incorrect string value: '\x80X' for column `test`.`t1`.`a` at row 57
Warning 1366 Incorrect string value: '\x80Y' for column 'a' at row 58 Warning 1366 Incorrect string value: '\x80Y' for column `test`.`t1`.`a` at row 58
Warning 1366 Incorrect string value: '\x80Z' for column 'a' at row 59 Warning 1366 Incorrect string value: '\x80Z' for column `test`.`t1`.`a` at row 59
Warning 1366 Incorrect string value: '\x80[' for column 'a' at row 60 Warning 1366 Incorrect string value: '\x80[' for column `test`.`t1`.`a` at row 60
Warning 1366 Incorrect string value: '\x80\' for column 'a' at row 61 Warning 1366 Incorrect string value: '\x80\' for column `test`.`t1`.`a` at row 61
Warning 1366 Incorrect string value: '\x80]' for column 'a' at row 62 Warning 1366 Incorrect string value: '\x80]' for column `test`.`t1`.`a` at row 62
Warning 1366 Incorrect string value: '\x80^' for column 'a' at row 63 Warning 1366 Incorrect string value: '\x80^' for column `test`.`t1`.`a` at row 63
Warning 1366 Incorrect string value: '\x80_' for column 'a' at row 64 Warning 1366 Incorrect string value: '\x80_' for column `test`.`t1`.`a` at row 64
SELECT COUNT(*) FROM t1 WHERE a<>'?'; SELECT COUNT(*) FROM t1 WHERE a<>'?';
COUNT(*) COUNT(*)
13973 13973

View File

@ -98,70 +98,70 @@ t1 CREATE TABLE `t1` (
) ENGINE=MyISAM DEFAULT CHARSET=latin1 ) ENGINE=MyISAM DEFAULT CHARSET=latin1
UPDATE IGNORE t1 SET a=unhex(code) ORDER BY code; UPDATE IGNORE t1 SET a=unhex(code) ORDER BY code;
Warnings: Warnings:
Warning 1366 Incorrect string value: '\x80 ' for column 'a' at row 1 Warning 1366 Incorrect string value: '\x80 ' for column `test`.`t1`.`a` at row 1
Warning 1366 Incorrect string value: '\x80!' for column 'a' at row 2 Warning 1366 Incorrect string value: '\x80!' for column `test`.`t1`.`a` at row 2
Warning 1366 Incorrect string value: '\x80"' for column 'a' at row 3 Warning 1366 Incorrect string value: '\x80"' for column `test`.`t1`.`a` at row 3
Warning 1366 Incorrect string value: '\x80#' for column 'a' at row 4 Warning 1366 Incorrect string value: '\x80#' for column `test`.`t1`.`a` at row 4
Warning 1366 Incorrect string value: '\x80$' for column 'a' at row 5 Warning 1366 Incorrect string value: '\x80$' for column `test`.`t1`.`a` at row 5
Warning 1366 Incorrect string value: '\x80%' for column 'a' at row 6 Warning 1366 Incorrect string value: '\x80%' for column `test`.`t1`.`a` at row 6
Warning 1366 Incorrect string value: '\x80&' for column 'a' at row 7 Warning 1366 Incorrect string value: '\x80&' for column `test`.`t1`.`a` at row 7
Warning 1366 Incorrect string value: '\x80'' for column 'a' at row 8 Warning 1366 Incorrect string value: '\x80'' for column `test`.`t1`.`a` at row 8
Warning 1366 Incorrect string value: '\x80(' for column 'a' at row 9 Warning 1366 Incorrect string value: '\x80(' for column `test`.`t1`.`a` at row 9
Warning 1366 Incorrect string value: '\x80)' for column 'a' at row 10 Warning 1366 Incorrect string value: '\x80)' for column `test`.`t1`.`a` at row 10
Warning 1366 Incorrect string value: '\x80*' for column 'a' at row 11 Warning 1366 Incorrect string value: '\x80*' for column `test`.`t1`.`a` at row 11
Warning 1366 Incorrect string value: '\x80+' for column 'a' at row 12 Warning 1366 Incorrect string value: '\x80+' for column `test`.`t1`.`a` at row 12
Warning 1366 Incorrect string value: '\x80,' for column 'a' at row 13 Warning 1366 Incorrect string value: '\x80,' for column `test`.`t1`.`a` at row 13
Warning 1366 Incorrect string value: '\x80-' for column 'a' at row 14 Warning 1366 Incorrect string value: '\x80-' for column `test`.`t1`.`a` at row 14
Warning 1366 Incorrect string value: '\x80.' for column 'a' at row 15 Warning 1366 Incorrect string value: '\x80.' for column `test`.`t1`.`a` at row 15
Warning 1366 Incorrect string value: '\x80/' for column 'a' at row 16 Warning 1366 Incorrect string value: '\x80/' for column `test`.`t1`.`a` at row 16
Warning 1366 Incorrect string value: '\x800' for column 'a' at row 17 Warning 1366 Incorrect string value: '\x800' for column `test`.`t1`.`a` at row 17
Warning 1366 Incorrect string value: '\x801' for column 'a' at row 18 Warning 1366 Incorrect string value: '\x801' for column `test`.`t1`.`a` at row 18
Warning 1366 Incorrect string value: '\x802' for column 'a' at row 19 Warning 1366 Incorrect string value: '\x802' for column `test`.`t1`.`a` at row 19
Warning 1366 Incorrect string value: '\x803' for column 'a' at row 20 Warning 1366 Incorrect string value: '\x803' for column `test`.`t1`.`a` at row 20
Warning 1366 Incorrect string value: '\x804' for column 'a' at row 21 Warning 1366 Incorrect string value: '\x804' for column `test`.`t1`.`a` at row 21
Warning 1366 Incorrect string value: '\x805' for column 'a' at row 22 Warning 1366 Incorrect string value: '\x805' for column `test`.`t1`.`a` at row 22
Warning 1366 Incorrect string value: '\x806' for column 'a' at row 23 Warning 1366 Incorrect string value: '\x806' for column `test`.`t1`.`a` at row 23
Warning 1366 Incorrect string value: '\x807' for column 'a' at row 24 Warning 1366 Incorrect string value: '\x807' for column `test`.`t1`.`a` at row 24
Warning 1366 Incorrect string value: '\x808' for column 'a' at row 25 Warning 1366 Incorrect string value: '\x808' for column `test`.`t1`.`a` at row 25
Warning 1366 Incorrect string value: '\x809' for column 'a' at row 26 Warning 1366 Incorrect string value: '\x809' for column `test`.`t1`.`a` at row 26
Warning 1366 Incorrect string value: '\x80:' for column 'a' at row 27 Warning 1366 Incorrect string value: '\x80:' for column `test`.`t1`.`a` at row 27
Warning 1366 Incorrect string value: '\x80;' for column 'a' at row 28 Warning 1366 Incorrect string value: '\x80;' for column `test`.`t1`.`a` at row 28
Warning 1366 Incorrect string value: '\x80<' for column 'a' at row 29 Warning 1366 Incorrect string value: '\x80<' for column `test`.`t1`.`a` at row 29
Warning 1366 Incorrect string value: '\x80=' for column 'a' at row 30 Warning 1366 Incorrect string value: '\x80=' for column `test`.`t1`.`a` at row 30
Warning 1366 Incorrect string value: '\x80>' for column 'a' at row 31 Warning 1366 Incorrect string value: '\x80>' for column `test`.`t1`.`a` at row 31
Warning 1366 Incorrect string value: '\x80?' for column 'a' at row 32 Warning 1366 Incorrect string value: '\x80?' for column `test`.`t1`.`a` at row 32
Warning 1366 Incorrect string value: '\x80@' for column 'a' at row 33 Warning 1366 Incorrect string value: '\x80@' for column `test`.`t1`.`a` at row 33
Warning 1366 Incorrect string value: '\x80A' for column 'a' at row 34 Warning 1366 Incorrect string value: '\x80A' for column `test`.`t1`.`a` at row 34
Warning 1366 Incorrect string value: '\x80B' for column 'a' at row 35 Warning 1366 Incorrect string value: '\x80B' for column `test`.`t1`.`a` at row 35
Warning 1366 Incorrect string value: '\x80C' for column 'a' at row 36 Warning 1366 Incorrect string value: '\x80C' for column `test`.`t1`.`a` at row 36
Warning 1366 Incorrect string value: '\x80D' for column 'a' at row 37 Warning 1366 Incorrect string value: '\x80D' for column `test`.`t1`.`a` at row 37
Warning 1366 Incorrect string value: '\x80E' for column 'a' at row 38 Warning 1366 Incorrect string value: '\x80E' for column `test`.`t1`.`a` at row 38
Warning 1366 Incorrect string value: '\x80F' for column 'a' at row 39 Warning 1366 Incorrect string value: '\x80F' for column `test`.`t1`.`a` at row 39
Warning 1366 Incorrect string value: '\x80G' for column 'a' at row 40 Warning 1366 Incorrect string value: '\x80G' for column `test`.`t1`.`a` at row 40
Warning 1366 Incorrect string value: '\x80H' for column 'a' at row 41 Warning 1366 Incorrect string value: '\x80H' for column `test`.`t1`.`a` at row 41
Warning 1366 Incorrect string value: '\x80I' for column 'a' at row 42 Warning 1366 Incorrect string value: '\x80I' for column `test`.`t1`.`a` at row 42
Warning 1366 Incorrect string value: '\x80J' for column 'a' at row 43 Warning 1366 Incorrect string value: '\x80J' for column `test`.`t1`.`a` at row 43
Warning 1366 Incorrect string value: '\x80K' for column 'a' at row 44 Warning 1366 Incorrect string value: '\x80K' for column `test`.`t1`.`a` at row 44
Warning 1366 Incorrect string value: '\x80L' for column 'a' at row 45 Warning 1366 Incorrect string value: '\x80L' for column `test`.`t1`.`a` at row 45
Warning 1366 Incorrect string value: '\x80M' for column 'a' at row 46 Warning 1366 Incorrect string value: '\x80M' for column `test`.`t1`.`a` at row 46
Warning 1366 Incorrect string value: '\x80N' for column 'a' at row 47 Warning 1366 Incorrect string value: '\x80N' for column `test`.`t1`.`a` at row 47
Warning 1366 Incorrect string value: '\x80O' for column 'a' at row 48 Warning 1366 Incorrect string value: '\x80O' for column `test`.`t1`.`a` at row 48
Warning 1366 Incorrect string value: '\x80P' for column 'a' at row 49 Warning 1366 Incorrect string value: '\x80P' for column `test`.`t1`.`a` at row 49
Warning 1366 Incorrect string value: '\x80Q' for column 'a' at row 50 Warning 1366 Incorrect string value: '\x80Q' for column `test`.`t1`.`a` at row 50
Warning 1366 Incorrect string value: '\x80R' for column 'a' at row 51 Warning 1366 Incorrect string value: '\x80R' for column `test`.`t1`.`a` at row 51
Warning 1366 Incorrect string value: '\x80S' for column 'a' at row 52 Warning 1366 Incorrect string value: '\x80S' for column `test`.`t1`.`a` at row 52
Warning 1366 Incorrect string value: '\x80T' for column 'a' at row 53 Warning 1366 Incorrect string value: '\x80T' for column `test`.`t1`.`a` at row 53
Warning 1366 Incorrect string value: '\x80U' for column 'a' at row 54 Warning 1366 Incorrect string value: '\x80U' for column `test`.`t1`.`a` at row 54
Warning 1366 Incorrect string value: '\x80V' for column 'a' at row 55 Warning 1366 Incorrect string value: '\x80V' for column `test`.`t1`.`a` at row 55
Warning 1366 Incorrect string value: '\x80W' for column 'a' at row 56 Warning 1366 Incorrect string value: '\x80W' for column `test`.`t1`.`a` at row 56
Warning 1366 Incorrect string value: '\x80X' for column 'a' at row 57 Warning 1366 Incorrect string value: '\x80X' for column `test`.`t1`.`a` at row 57
Warning 1366 Incorrect string value: '\x80Y' for column 'a' at row 58 Warning 1366 Incorrect string value: '\x80Y' for column `test`.`t1`.`a` at row 58
Warning 1366 Incorrect string value: '\x80Z' for column 'a' at row 59 Warning 1366 Incorrect string value: '\x80Z' for column `test`.`t1`.`a` at row 59
Warning 1366 Incorrect string value: '\x80[' for column 'a' at row 60 Warning 1366 Incorrect string value: '\x80[' for column `test`.`t1`.`a` at row 60
Warning 1366 Incorrect string value: '\x80\' for column 'a' at row 61 Warning 1366 Incorrect string value: '\x80\' for column `test`.`t1`.`a` at row 61
Warning 1366 Incorrect string value: '\x80]' for column 'a' at row 62 Warning 1366 Incorrect string value: '\x80]' for column `test`.`t1`.`a` at row 62
Warning 1366 Incorrect string value: '\x80^' for column 'a' at row 63 Warning 1366 Incorrect string value: '\x80^' for column `test`.`t1`.`a` at row 63
Warning 1366 Incorrect string value: '\x80_' for column 'a' at row 64 Warning 1366 Incorrect string value: '\x80_' for column `test`.`t1`.`a` at row 64
SELECT COUNT(*) FROM t1; SELECT COUNT(*) FROM t1;
COUNT(*) COUNT(*)
14623 14623

View File

@ -10042,70 +10042,70 @@ t1 CREATE TABLE `t1` (
) ENGINE=MyISAM DEFAULT CHARSET=latin1 ) ENGINE=MyISAM DEFAULT CHARSET=latin1
UPDATE IGNORE t1 SET a=unhex(code) ORDER BY code; UPDATE IGNORE t1 SET a=unhex(code) ORDER BY code;
Warnings: Warnings:
Warning 1366 Incorrect string value: '\x80 ' for column 'a' at row 1 Warning 1366 Incorrect string value: '\x80 ' for column `test`.`t1`.`a` at row 1
Warning 1366 Incorrect string value: '\x80!' for column 'a' at row 2 Warning 1366 Incorrect string value: '\x80!' for column `test`.`t1`.`a` at row 2
Warning 1366 Incorrect string value: '\x80"' for column 'a' at row 3 Warning 1366 Incorrect string value: '\x80"' for column `test`.`t1`.`a` at row 3
Warning 1366 Incorrect string value: '\x80#' for column 'a' at row 4 Warning 1366 Incorrect string value: '\x80#' for column `test`.`t1`.`a` at row 4
Warning 1366 Incorrect string value: '\x80$' for column 'a' at row 5 Warning 1366 Incorrect string value: '\x80$' for column `test`.`t1`.`a` at row 5
Warning 1366 Incorrect string value: '\x80%' for column 'a' at row 6 Warning 1366 Incorrect string value: '\x80%' for column `test`.`t1`.`a` at row 6
Warning 1366 Incorrect string value: '\x80&' for column 'a' at row 7 Warning 1366 Incorrect string value: '\x80&' for column `test`.`t1`.`a` at row 7
Warning 1366 Incorrect string value: '\x80'' for column 'a' at row 8 Warning 1366 Incorrect string value: '\x80'' for column `test`.`t1`.`a` at row 8
Warning 1366 Incorrect string value: '\x80(' for column 'a' at row 9 Warning 1366 Incorrect string value: '\x80(' for column `test`.`t1`.`a` at row 9
Warning 1366 Incorrect string value: '\x80)' for column 'a' at row 10 Warning 1366 Incorrect string value: '\x80)' for column `test`.`t1`.`a` at row 10
Warning 1366 Incorrect string value: '\x80*' for column 'a' at row 11 Warning 1366 Incorrect string value: '\x80*' for column `test`.`t1`.`a` at row 11
Warning 1366 Incorrect string value: '\x80+' for column 'a' at row 12 Warning 1366 Incorrect string value: '\x80+' for column `test`.`t1`.`a` at row 12
Warning 1366 Incorrect string value: '\x80,' for column 'a' at row 13 Warning 1366 Incorrect string value: '\x80,' for column `test`.`t1`.`a` at row 13
Warning 1366 Incorrect string value: '\x80-' for column 'a' at row 14 Warning 1366 Incorrect string value: '\x80-' for column `test`.`t1`.`a` at row 14
Warning 1366 Incorrect string value: '\x80.' for column 'a' at row 15 Warning 1366 Incorrect string value: '\x80.' for column `test`.`t1`.`a` at row 15
Warning 1366 Incorrect string value: '\x80/' for column 'a' at row 16 Warning 1366 Incorrect string value: '\x80/' for column `test`.`t1`.`a` at row 16
Warning 1366 Incorrect string value: '\x800' for column 'a' at row 17 Warning 1366 Incorrect string value: '\x800' for column `test`.`t1`.`a` at row 17
Warning 1366 Incorrect string value: '\x801' for column 'a' at row 18 Warning 1366 Incorrect string value: '\x801' for column `test`.`t1`.`a` at row 18
Warning 1366 Incorrect string value: '\x802' for column 'a' at row 19 Warning 1366 Incorrect string value: '\x802' for column `test`.`t1`.`a` at row 19
Warning 1366 Incorrect string value: '\x803' for column 'a' at row 20 Warning 1366 Incorrect string value: '\x803' for column `test`.`t1`.`a` at row 20
Warning 1366 Incorrect string value: '\x804' for column 'a' at row 21 Warning 1366 Incorrect string value: '\x804' for column `test`.`t1`.`a` at row 21
Warning 1366 Incorrect string value: '\x805' for column 'a' at row 22 Warning 1366 Incorrect string value: '\x805' for column `test`.`t1`.`a` at row 22
Warning 1366 Incorrect string value: '\x806' for column 'a' at row 23 Warning 1366 Incorrect string value: '\x806' for column `test`.`t1`.`a` at row 23
Warning 1366 Incorrect string value: '\x807' for column 'a' at row 24 Warning 1366 Incorrect string value: '\x807' for column `test`.`t1`.`a` at row 24
Warning 1366 Incorrect string value: '\x808' for column 'a' at row 25 Warning 1366 Incorrect string value: '\x808' for column `test`.`t1`.`a` at row 25
Warning 1366 Incorrect string value: '\x809' for column 'a' at row 26 Warning 1366 Incorrect string value: '\x809' for column `test`.`t1`.`a` at row 26
Warning 1366 Incorrect string value: '\x80:' for column 'a' at row 27 Warning 1366 Incorrect string value: '\x80:' for column `test`.`t1`.`a` at row 27
Warning 1366 Incorrect string value: '\x80;' for column 'a' at row 28 Warning 1366 Incorrect string value: '\x80;' for column `test`.`t1`.`a` at row 28
Warning 1366 Incorrect string value: '\x80<' for column 'a' at row 29 Warning 1366 Incorrect string value: '\x80<' for column `test`.`t1`.`a` at row 29
Warning 1366 Incorrect string value: '\x80=' for column 'a' at row 30 Warning 1366 Incorrect string value: '\x80=' for column `test`.`t1`.`a` at row 30
Warning 1366 Incorrect string value: '\x80>' for column 'a' at row 31 Warning 1366 Incorrect string value: '\x80>' for column `test`.`t1`.`a` at row 31
Warning 1366 Incorrect string value: '\x80?' for column 'a' at row 32 Warning 1366 Incorrect string value: '\x80?' for column `test`.`t1`.`a` at row 32
Warning 1366 Incorrect string value: '\x80@' for column 'a' at row 33 Warning 1366 Incorrect string value: '\x80@' for column `test`.`t1`.`a` at row 33
Warning 1366 Incorrect string value: '\x80A' for column 'a' at row 34 Warning 1366 Incorrect string value: '\x80A' for column `test`.`t1`.`a` at row 34
Warning 1366 Incorrect string value: '\x80B' for column 'a' at row 35 Warning 1366 Incorrect string value: '\x80B' for column `test`.`t1`.`a` at row 35
Warning 1366 Incorrect string value: '\x80C' for column 'a' at row 36 Warning 1366 Incorrect string value: '\x80C' for column `test`.`t1`.`a` at row 36
Warning 1366 Incorrect string value: '\x80D' for column 'a' at row 37 Warning 1366 Incorrect string value: '\x80D' for column `test`.`t1`.`a` at row 37
Warning 1366 Incorrect string value: '\x80E' for column 'a' at row 38 Warning 1366 Incorrect string value: '\x80E' for column `test`.`t1`.`a` at row 38
Warning 1366 Incorrect string value: '\x80F' for column 'a' at row 39 Warning 1366 Incorrect string value: '\x80F' for column `test`.`t1`.`a` at row 39
Warning 1366 Incorrect string value: '\x80G' for column 'a' at row 40 Warning 1366 Incorrect string value: '\x80G' for column `test`.`t1`.`a` at row 40
Warning 1366 Incorrect string value: '\x80H' for column 'a' at row 41 Warning 1366 Incorrect string value: '\x80H' for column `test`.`t1`.`a` at row 41
Warning 1366 Incorrect string value: '\x80I' for column 'a' at row 42 Warning 1366 Incorrect string value: '\x80I' for column `test`.`t1`.`a` at row 42
Warning 1366 Incorrect string value: '\x80J' for column 'a' at row 43 Warning 1366 Incorrect string value: '\x80J' for column `test`.`t1`.`a` at row 43
Warning 1366 Incorrect string value: '\x80K' for column 'a' at row 44 Warning 1366 Incorrect string value: '\x80K' for column `test`.`t1`.`a` at row 44
Warning 1366 Incorrect string value: '\x80L' for column 'a' at row 45 Warning 1366 Incorrect string value: '\x80L' for column `test`.`t1`.`a` at row 45
Warning 1366 Incorrect string value: '\x80M' for column 'a' at row 46 Warning 1366 Incorrect string value: '\x80M' for column `test`.`t1`.`a` at row 46
Warning 1366 Incorrect string value: '\x80N' for column 'a' at row 47 Warning 1366 Incorrect string value: '\x80N' for column `test`.`t1`.`a` at row 47
Warning 1366 Incorrect string value: '\x80O' for column 'a' at row 48 Warning 1366 Incorrect string value: '\x80O' for column `test`.`t1`.`a` at row 48
Warning 1366 Incorrect string value: '\x80P' for column 'a' at row 49 Warning 1366 Incorrect string value: '\x80P' for column `test`.`t1`.`a` at row 49
Warning 1366 Incorrect string value: '\x80Q' for column 'a' at row 50 Warning 1366 Incorrect string value: '\x80Q' for column `test`.`t1`.`a` at row 50
Warning 1366 Incorrect string value: '\x80R' for column 'a' at row 51 Warning 1366 Incorrect string value: '\x80R' for column `test`.`t1`.`a` at row 51
Warning 1366 Incorrect string value: '\x80S' for column 'a' at row 52 Warning 1366 Incorrect string value: '\x80S' for column `test`.`t1`.`a` at row 52
Warning 1366 Incorrect string value: '\x80T' for column 'a' at row 53 Warning 1366 Incorrect string value: '\x80T' for column `test`.`t1`.`a` at row 53
Warning 1366 Incorrect string value: '\x80U' for column 'a' at row 54 Warning 1366 Incorrect string value: '\x80U' for column `test`.`t1`.`a` at row 54
Warning 1366 Incorrect string value: '\x80V' for column 'a' at row 55 Warning 1366 Incorrect string value: '\x80V' for column `test`.`t1`.`a` at row 55
Warning 1366 Incorrect string value: '\x80W' for column 'a' at row 56 Warning 1366 Incorrect string value: '\x80W' for column `test`.`t1`.`a` at row 56
Warning 1366 Incorrect string value: '\x80X' for column 'a' at row 57 Warning 1366 Incorrect string value: '\x80X' for column `test`.`t1`.`a` at row 57
Warning 1366 Incorrect string value: '\x80Y' for column 'a' at row 58 Warning 1366 Incorrect string value: '\x80Y' for column `test`.`t1`.`a` at row 58
Warning 1366 Incorrect string value: '\x80Z' for column 'a' at row 59 Warning 1366 Incorrect string value: '\x80Z' for column `test`.`t1`.`a` at row 59
Warning 1366 Incorrect string value: '\x80[' for column 'a' at row 60 Warning 1366 Incorrect string value: '\x80[' for column `test`.`t1`.`a` at row 60
Warning 1366 Incorrect string value: '\x80\' for column 'a' at row 61 Warning 1366 Incorrect string value: '\x80\' for column `test`.`t1`.`a` at row 61
Warning 1366 Incorrect string value: '\x80]' for column 'a' at row 62 Warning 1366 Incorrect string value: '\x80]' for column `test`.`t1`.`a` at row 62
Warning 1366 Incorrect string value: '\x80^' for column 'a' at row 63 Warning 1366 Incorrect string value: '\x80^' for column `test`.`t1`.`a` at row 63
Warning 1366 Incorrect string value: '\x80_' for column 'a' at row 64 Warning 1366 Incorrect string value: '\x80_' for column `test`.`t1`.`a` at row 64
SELECT COUNT(*) FROM t1; SELECT COUNT(*) FROM t1;
COUNT(*) COUNT(*)
56959 56959

View File

@ -389,22 +389,22 @@ insert into t1 values (0xA181);
insert into t1 values (0xA1FE); insert into t1 values (0xA1FE);
insert ignore into t1 values (0xA140); insert ignore into t1 values (0xA140);
Warnings: Warnings:
Warning 1366 Incorrect string value: '\xA1@' for column 's1' at row 1 Warning 1366 Incorrect string value: '\xA1@' for column `test`.`t1`.`s1` at row 1
insert ignore into t1 values (0xA15B); insert ignore into t1 values (0xA15B);
Warnings: Warnings:
Warning 1366 Incorrect string value: '\xA1[' for column 's1' at row 1 Warning 1366 Incorrect string value: '\xA1[' for column `test`.`t1`.`s1` at row 1
insert ignore into t1 values (0xA160); insert ignore into t1 values (0xA160);
Warnings: Warnings:
Warning 1366 Incorrect string value: '\xA1`' for column 's1' at row 1 Warning 1366 Incorrect string value: '\xA1`' for column `test`.`t1`.`s1` at row 1
insert ignore into t1 values (0xA17B); insert ignore into t1 values (0xA17B);
Warnings: Warnings:
Warning 1366 Incorrect string value: '\xA1{' for column 's1' at row 1 Warning 1366 Incorrect string value: '\xA1{' for column `test`.`t1`.`s1` at row 1
insert ignore into t1 values (0xA180); insert ignore into t1 values (0xA180);
Warnings: Warnings:
Warning 1366 Incorrect string value: '\xA1\x80' for column 's1' at row 1 Warning 1366 Incorrect string value: '\xA1\x80' for column `test`.`t1`.`s1` at row 1
insert ignore into t1 values (0xA1FF); insert ignore into t1 values (0xA1FF);
Warnings: Warnings:
Warning 1366 Incorrect string value: '\xA1\xFF' for column 's1' at row 1 Warning 1366 Incorrect string value: '\xA1\xFF' for column `test`.`t1`.`s1` at row 1
select hex(s1), hex(convert(s1 using utf8)) from t1 order by binary s1; select hex(s1), hex(convert(s1 using utf8)) from t1 order by binary s1;
hex(s1) hex(convert(s1 using utf8)) hex(s1) hex(convert(s1 using utf8))
3F3F 3F3F 3F3F 3F3F
@ -24428,70 +24428,70 @@ t1 CREATE TABLE `t1` (
) ENGINE=MyISAM DEFAULT CHARSET=latin1 ) ENGINE=MyISAM DEFAULT CHARSET=latin1
UPDATE IGNORE t1 SET a=unhex(code) ORDER BY code; UPDATE IGNORE t1 SET a=unhex(code) ORDER BY code;
Warnings: Warnings:
Warning 1366 Incorrect string value: '\x80 ' for column 'a' at row 1 Warning 1366 Incorrect string value: '\x80 ' for column `test`.`t1`.`a` at row 1
Warning 1366 Incorrect string value: '\x80!' for column 'a' at row 2 Warning 1366 Incorrect string value: '\x80!' for column `test`.`t1`.`a` at row 2
Warning 1366 Incorrect string value: '\x80"' for column 'a' at row 3 Warning 1366 Incorrect string value: '\x80"' for column `test`.`t1`.`a` at row 3
Warning 1366 Incorrect string value: '\x80#' for column 'a' at row 4 Warning 1366 Incorrect string value: '\x80#' for column `test`.`t1`.`a` at row 4
Warning 1366 Incorrect string value: '\x80$' for column 'a' at row 5 Warning 1366 Incorrect string value: '\x80$' for column `test`.`t1`.`a` at row 5
Warning 1366 Incorrect string value: '\x80%' for column 'a' at row 6 Warning 1366 Incorrect string value: '\x80%' for column `test`.`t1`.`a` at row 6
Warning 1366 Incorrect string value: '\x80&' for column 'a' at row 7 Warning 1366 Incorrect string value: '\x80&' for column `test`.`t1`.`a` at row 7
Warning 1366 Incorrect string value: '\x80'' for column 'a' at row 8 Warning 1366 Incorrect string value: '\x80'' for column `test`.`t1`.`a` at row 8
Warning 1366 Incorrect string value: '\x80(' for column 'a' at row 9 Warning 1366 Incorrect string value: '\x80(' for column `test`.`t1`.`a` at row 9
Warning 1366 Incorrect string value: '\x80)' for column 'a' at row 10 Warning 1366 Incorrect string value: '\x80)' for column `test`.`t1`.`a` at row 10
Warning 1366 Incorrect string value: '\x80*' for column 'a' at row 11 Warning 1366 Incorrect string value: '\x80*' for column `test`.`t1`.`a` at row 11
Warning 1366 Incorrect string value: '\x80+' for column 'a' at row 12 Warning 1366 Incorrect string value: '\x80+' for column `test`.`t1`.`a` at row 12
Warning 1366 Incorrect string value: '\x80,' for column 'a' at row 13 Warning 1366 Incorrect string value: '\x80,' for column `test`.`t1`.`a` at row 13
Warning 1366 Incorrect string value: '\x80-' for column 'a' at row 14 Warning 1366 Incorrect string value: '\x80-' for column `test`.`t1`.`a` at row 14
Warning 1366 Incorrect string value: '\x80.' for column 'a' at row 15 Warning 1366 Incorrect string value: '\x80.' for column `test`.`t1`.`a` at row 15
Warning 1366 Incorrect string value: '\x80/' for column 'a' at row 16 Warning 1366 Incorrect string value: '\x80/' for column `test`.`t1`.`a` at row 16
Warning 1366 Incorrect string value: '\x800' for column 'a' at row 17 Warning 1366 Incorrect string value: '\x800' for column `test`.`t1`.`a` at row 17
Warning 1366 Incorrect string value: '\x801' for column 'a' at row 18 Warning 1366 Incorrect string value: '\x801' for column `test`.`t1`.`a` at row 18
Warning 1366 Incorrect string value: '\x802' for column 'a' at row 19 Warning 1366 Incorrect string value: '\x802' for column `test`.`t1`.`a` at row 19
Warning 1366 Incorrect string value: '\x803' for column 'a' at row 20 Warning 1366 Incorrect string value: '\x803' for column `test`.`t1`.`a` at row 20
Warning 1366 Incorrect string value: '\x804' for column 'a' at row 21 Warning 1366 Incorrect string value: '\x804' for column `test`.`t1`.`a` at row 21
Warning 1366 Incorrect string value: '\x805' for column 'a' at row 22 Warning 1366 Incorrect string value: '\x805' for column `test`.`t1`.`a` at row 22
Warning 1366 Incorrect string value: '\x806' for column 'a' at row 23 Warning 1366 Incorrect string value: '\x806' for column `test`.`t1`.`a` at row 23
Warning 1366 Incorrect string value: '\x807' for column 'a' at row 24 Warning 1366 Incorrect string value: '\x807' for column `test`.`t1`.`a` at row 24
Warning 1366 Incorrect string value: '\x808' for column 'a' at row 25 Warning 1366 Incorrect string value: '\x808' for column `test`.`t1`.`a` at row 25
Warning 1366 Incorrect string value: '\x809' for column 'a' at row 26 Warning 1366 Incorrect string value: '\x809' for column `test`.`t1`.`a` at row 26
Warning 1366 Incorrect string value: '\x80:' for column 'a' at row 27 Warning 1366 Incorrect string value: '\x80:' for column `test`.`t1`.`a` at row 27
Warning 1366 Incorrect string value: '\x80;' for column 'a' at row 28 Warning 1366 Incorrect string value: '\x80;' for column `test`.`t1`.`a` at row 28
Warning 1366 Incorrect string value: '\x80<' for column 'a' at row 29 Warning 1366 Incorrect string value: '\x80<' for column `test`.`t1`.`a` at row 29
Warning 1366 Incorrect string value: '\x80=' for column 'a' at row 30 Warning 1366 Incorrect string value: '\x80=' for column `test`.`t1`.`a` at row 30
Warning 1366 Incorrect string value: '\x80>' for column 'a' at row 31 Warning 1366 Incorrect string value: '\x80>' for column `test`.`t1`.`a` at row 31
Warning 1366 Incorrect string value: '\x80?' for column 'a' at row 32 Warning 1366 Incorrect string value: '\x80?' for column `test`.`t1`.`a` at row 32
Warning 1366 Incorrect string value: '\x80@' for column 'a' at row 33 Warning 1366 Incorrect string value: '\x80@' for column `test`.`t1`.`a` at row 33
Warning 1366 Incorrect string value: '\x80A' for column 'a' at row 34 Warning 1366 Incorrect string value: '\x80A' for column `test`.`t1`.`a` at row 34
Warning 1366 Incorrect string value: '\x80B' for column 'a' at row 35 Warning 1366 Incorrect string value: '\x80B' for column `test`.`t1`.`a` at row 35
Warning 1366 Incorrect string value: '\x80C' for column 'a' at row 36 Warning 1366 Incorrect string value: '\x80C' for column `test`.`t1`.`a` at row 36
Warning 1366 Incorrect string value: '\x80D' for column 'a' at row 37 Warning 1366 Incorrect string value: '\x80D' for column `test`.`t1`.`a` at row 37
Warning 1366 Incorrect string value: '\x80E' for column 'a' at row 38 Warning 1366 Incorrect string value: '\x80E' for column `test`.`t1`.`a` at row 38
Warning 1366 Incorrect string value: '\x80F' for column 'a' at row 39 Warning 1366 Incorrect string value: '\x80F' for column `test`.`t1`.`a` at row 39
Warning 1366 Incorrect string value: '\x80G' for column 'a' at row 40 Warning 1366 Incorrect string value: '\x80G' for column `test`.`t1`.`a` at row 40
Warning 1366 Incorrect string value: '\x80H' for column 'a' at row 41 Warning 1366 Incorrect string value: '\x80H' for column `test`.`t1`.`a` at row 41
Warning 1366 Incorrect string value: '\x80I' for column 'a' at row 42 Warning 1366 Incorrect string value: '\x80I' for column `test`.`t1`.`a` at row 42
Warning 1366 Incorrect string value: '\x80J' for column 'a' at row 43 Warning 1366 Incorrect string value: '\x80J' for column `test`.`t1`.`a` at row 43
Warning 1366 Incorrect string value: '\x80K' for column 'a' at row 44 Warning 1366 Incorrect string value: '\x80K' for column `test`.`t1`.`a` at row 44
Warning 1366 Incorrect string value: '\x80L' for column 'a' at row 45 Warning 1366 Incorrect string value: '\x80L' for column `test`.`t1`.`a` at row 45
Warning 1366 Incorrect string value: '\x80M' for column 'a' at row 46 Warning 1366 Incorrect string value: '\x80M' for column `test`.`t1`.`a` at row 46
Warning 1366 Incorrect string value: '\x80N' for column 'a' at row 47 Warning 1366 Incorrect string value: '\x80N' for column `test`.`t1`.`a` at row 47
Warning 1366 Incorrect string value: '\x80O' for column 'a' at row 48 Warning 1366 Incorrect string value: '\x80O' for column `test`.`t1`.`a` at row 48
Warning 1366 Incorrect string value: '\x80P' for column 'a' at row 49 Warning 1366 Incorrect string value: '\x80P' for column `test`.`t1`.`a` at row 49
Warning 1366 Incorrect string value: '\x80Q' for column 'a' at row 50 Warning 1366 Incorrect string value: '\x80Q' for column `test`.`t1`.`a` at row 50
Warning 1366 Incorrect string value: '\x80R' for column 'a' at row 51 Warning 1366 Incorrect string value: '\x80R' for column `test`.`t1`.`a` at row 51
Warning 1366 Incorrect string value: '\x80S' for column 'a' at row 52 Warning 1366 Incorrect string value: '\x80S' for column `test`.`t1`.`a` at row 52
Warning 1366 Incorrect string value: '\x80T' for column 'a' at row 53 Warning 1366 Incorrect string value: '\x80T' for column `test`.`t1`.`a` at row 53
Warning 1366 Incorrect string value: '\x80U' for column 'a' at row 54 Warning 1366 Incorrect string value: '\x80U' for column `test`.`t1`.`a` at row 54
Warning 1366 Incorrect string value: '\x80V' for column 'a' at row 55 Warning 1366 Incorrect string value: '\x80V' for column `test`.`t1`.`a` at row 55
Warning 1366 Incorrect string value: '\x80W' for column 'a' at row 56 Warning 1366 Incorrect string value: '\x80W' for column `test`.`t1`.`a` at row 56
Warning 1366 Incorrect string value: '\x80X' for column 'a' at row 57 Warning 1366 Incorrect string value: '\x80X' for column `test`.`t1`.`a` at row 57
Warning 1366 Incorrect string value: '\x80Y' for column 'a' at row 58 Warning 1366 Incorrect string value: '\x80Y' for column `test`.`t1`.`a` at row 58
Warning 1366 Incorrect string value: '\x80Z' for column 'a' at row 59 Warning 1366 Incorrect string value: '\x80Z' for column `test`.`t1`.`a` at row 59
Warning 1366 Incorrect string value: '\x80[' for column 'a' at row 60 Warning 1366 Incorrect string value: '\x80[' for column `test`.`t1`.`a` at row 60
Warning 1366 Incorrect string value: '\x80\' for column 'a' at row 61 Warning 1366 Incorrect string value: '\x80\' for column `test`.`t1`.`a` at row 61
Warning 1366 Incorrect string value: '\x80]' for column 'a' at row 62 Warning 1366 Incorrect string value: '\x80]' for column `test`.`t1`.`a` at row 62
Warning 1366 Incorrect string value: '\x80^' for column 'a' at row 63 Warning 1366 Incorrect string value: '\x80^' for column `test`.`t1`.`a` at row 63
Warning 1366 Incorrect string value: '\x80_' for column 'a' at row 64 Warning 1366 Incorrect string value: '\x80_' for column `test`.`t1`.`a` at row 64
SELECT COUNT(*) FROM t1 WHERE a<>'?'; SELECT COUNT(*) FROM t1 WHERE a<>'?';
COUNT(*) COUNT(*)
22428 22428

View File

@ -489,70 +489,70 @@ t1 CREATE TABLE `t1` (
) ENGINE=MyISAM DEFAULT CHARSET=latin1 ) ENGINE=MyISAM DEFAULT CHARSET=latin1
UPDATE IGNORE t1 SET a=unhex(code) ORDER BY code; UPDATE IGNORE t1 SET a=unhex(code) ORDER BY code;
Warnings: Warnings:
Warning 1366 Incorrect string value: '\x80 ' for column 'a' at row 1 Warning 1366 Incorrect string value: '\x80 ' for column `test`.`t1`.`a` at row 1
Warning 1366 Incorrect string value: '\x80!' for column 'a' at row 2 Warning 1366 Incorrect string value: '\x80!' for column `test`.`t1`.`a` at row 2
Warning 1366 Incorrect string value: '\x80"' for column 'a' at row 3 Warning 1366 Incorrect string value: '\x80"' for column `test`.`t1`.`a` at row 3
Warning 1366 Incorrect string value: '\x80#' for column 'a' at row 4 Warning 1366 Incorrect string value: '\x80#' for column `test`.`t1`.`a` at row 4
Warning 1366 Incorrect string value: '\x80$' for column 'a' at row 5 Warning 1366 Incorrect string value: '\x80$' for column `test`.`t1`.`a` at row 5
Warning 1366 Incorrect string value: '\x80%' for column 'a' at row 6 Warning 1366 Incorrect string value: '\x80%' for column `test`.`t1`.`a` at row 6
Warning 1366 Incorrect string value: '\x80&' for column 'a' at row 7 Warning 1366 Incorrect string value: '\x80&' for column `test`.`t1`.`a` at row 7
Warning 1366 Incorrect string value: '\x80'' for column 'a' at row 8 Warning 1366 Incorrect string value: '\x80'' for column `test`.`t1`.`a` at row 8
Warning 1366 Incorrect string value: '\x80(' for column 'a' at row 9 Warning 1366 Incorrect string value: '\x80(' for column `test`.`t1`.`a` at row 9
Warning 1366 Incorrect string value: '\x80)' for column 'a' at row 10 Warning 1366 Incorrect string value: '\x80)' for column `test`.`t1`.`a` at row 10
Warning 1366 Incorrect string value: '\x80*' for column 'a' at row 11 Warning 1366 Incorrect string value: '\x80*' for column `test`.`t1`.`a` at row 11
Warning 1366 Incorrect string value: '\x80+' for column 'a' at row 12 Warning 1366 Incorrect string value: '\x80+' for column `test`.`t1`.`a` at row 12
Warning 1366 Incorrect string value: '\x80,' for column 'a' at row 13 Warning 1366 Incorrect string value: '\x80,' for column `test`.`t1`.`a` at row 13
Warning 1366 Incorrect string value: '\x80-' for column 'a' at row 14 Warning 1366 Incorrect string value: '\x80-' for column `test`.`t1`.`a` at row 14
Warning 1366 Incorrect string value: '\x80.' for column 'a' at row 15 Warning 1366 Incorrect string value: '\x80.' for column `test`.`t1`.`a` at row 15
Warning 1366 Incorrect string value: '\x80/' for column 'a' at row 16 Warning 1366 Incorrect string value: '\x80/' for column `test`.`t1`.`a` at row 16
Warning 1366 Incorrect string value: '\x800' for column 'a' at row 17 Warning 1366 Incorrect string value: '\x800' for column `test`.`t1`.`a` at row 17
Warning 1366 Incorrect string value: '\x801' for column 'a' at row 18 Warning 1366 Incorrect string value: '\x801' for column `test`.`t1`.`a` at row 18
Warning 1366 Incorrect string value: '\x802' for column 'a' at row 19 Warning 1366 Incorrect string value: '\x802' for column `test`.`t1`.`a` at row 19
Warning 1366 Incorrect string value: '\x803' for column 'a' at row 20 Warning 1366 Incorrect string value: '\x803' for column `test`.`t1`.`a` at row 20
Warning 1366 Incorrect string value: '\x804' for column 'a' at row 21 Warning 1366 Incorrect string value: '\x804' for column `test`.`t1`.`a` at row 21
Warning 1366 Incorrect string value: '\x805' for column 'a' at row 22 Warning 1366 Incorrect string value: '\x805' for column `test`.`t1`.`a` at row 22
Warning 1366 Incorrect string value: '\x806' for column 'a' at row 23 Warning 1366 Incorrect string value: '\x806' for column `test`.`t1`.`a` at row 23
Warning 1366 Incorrect string value: '\x807' for column 'a' at row 24 Warning 1366 Incorrect string value: '\x807' for column `test`.`t1`.`a` at row 24
Warning 1366 Incorrect string value: '\x808' for column 'a' at row 25 Warning 1366 Incorrect string value: '\x808' for column `test`.`t1`.`a` at row 25
Warning 1366 Incorrect string value: '\x809' for column 'a' at row 26 Warning 1366 Incorrect string value: '\x809' for column `test`.`t1`.`a` at row 26
Warning 1366 Incorrect string value: '\x80:' for column 'a' at row 27 Warning 1366 Incorrect string value: '\x80:' for column `test`.`t1`.`a` at row 27
Warning 1366 Incorrect string value: '\x80;' for column 'a' at row 28 Warning 1366 Incorrect string value: '\x80;' for column `test`.`t1`.`a` at row 28
Warning 1366 Incorrect string value: '\x80<' for column 'a' at row 29 Warning 1366 Incorrect string value: '\x80<' for column `test`.`t1`.`a` at row 29
Warning 1366 Incorrect string value: '\x80=' for column 'a' at row 30 Warning 1366 Incorrect string value: '\x80=' for column `test`.`t1`.`a` at row 30
Warning 1366 Incorrect string value: '\x80>' for column 'a' at row 31 Warning 1366 Incorrect string value: '\x80>' for column `test`.`t1`.`a` at row 31
Warning 1366 Incorrect string value: '\x80?' for column 'a' at row 32 Warning 1366 Incorrect string value: '\x80?' for column `test`.`t1`.`a` at row 32
Warning 1366 Incorrect string value: '\x80@' for column 'a' at row 33 Warning 1366 Incorrect string value: '\x80@' for column `test`.`t1`.`a` at row 33
Warning 1366 Incorrect string value: '\x80A' for column 'a' at row 34 Warning 1366 Incorrect string value: '\x80A' for column `test`.`t1`.`a` at row 34
Warning 1366 Incorrect string value: '\x80B' for column 'a' at row 35 Warning 1366 Incorrect string value: '\x80B' for column `test`.`t1`.`a` at row 35
Warning 1366 Incorrect string value: '\x80C' for column 'a' at row 36 Warning 1366 Incorrect string value: '\x80C' for column `test`.`t1`.`a` at row 36
Warning 1366 Incorrect string value: '\x80D' for column 'a' at row 37 Warning 1366 Incorrect string value: '\x80D' for column `test`.`t1`.`a` at row 37
Warning 1366 Incorrect string value: '\x80E' for column 'a' at row 38 Warning 1366 Incorrect string value: '\x80E' for column `test`.`t1`.`a` at row 38
Warning 1366 Incorrect string value: '\x80F' for column 'a' at row 39 Warning 1366 Incorrect string value: '\x80F' for column `test`.`t1`.`a` at row 39
Warning 1366 Incorrect string value: '\x80G' for column 'a' at row 40 Warning 1366 Incorrect string value: '\x80G' for column `test`.`t1`.`a` at row 40
Warning 1366 Incorrect string value: '\x80H' for column 'a' at row 41 Warning 1366 Incorrect string value: '\x80H' for column `test`.`t1`.`a` at row 41
Warning 1366 Incorrect string value: '\x80I' for column 'a' at row 42 Warning 1366 Incorrect string value: '\x80I' for column `test`.`t1`.`a` at row 42
Warning 1366 Incorrect string value: '\x80J' for column 'a' at row 43 Warning 1366 Incorrect string value: '\x80J' for column `test`.`t1`.`a` at row 43
Warning 1366 Incorrect string value: '\x80K' for column 'a' at row 44 Warning 1366 Incorrect string value: '\x80K' for column `test`.`t1`.`a` at row 44
Warning 1366 Incorrect string value: '\x80L' for column 'a' at row 45 Warning 1366 Incorrect string value: '\x80L' for column `test`.`t1`.`a` at row 45
Warning 1366 Incorrect string value: '\x80M' for column 'a' at row 46 Warning 1366 Incorrect string value: '\x80M' for column `test`.`t1`.`a` at row 46
Warning 1366 Incorrect string value: '\x80N' for column 'a' at row 47 Warning 1366 Incorrect string value: '\x80N' for column `test`.`t1`.`a` at row 47
Warning 1366 Incorrect string value: '\x80O' for column 'a' at row 48 Warning 1366 Incorrect string value: '\x80O' for column `test`.`t1`.`a` at row 48
Warning 1366 Incorrect string value: '\x80P' for column 'a' at row 49 Warning 1366 Incorrect string value: '\x80P' for column `test`.`t1`.`a` at row 49
Warning 1366 Incorrect string value: '\x80Q' for column 'a' at row 50 Warning 1366 Incorrect string value: '\x80Q' for column `test`.`t1`.`a` at row 50
Warning 1366 Incorrect string value: '\x80R' for column 'a' at row 51 Warning 1366 Incorrect string value: '\x80R' for column `test`.`t1`.`a` at row 51
Warning 1366 Incorrect string value: '\x80S' for column 'a' at row 52 Warning 1366 Incorrect string value: '\x80S' for column `test`.`t1`.`a` at row 52
Warning 1366 Incorrect string value: '\x80T' for column 'a' at row 53 Warning 1366 Incorrect string value: '\x80T' for column `test`.`t1`.`a` at row 53
Warning 1366 Incorrect string value: '\x80U' for column 'a' at row 54 Warning 1366 Incorrect string value: '\x80U' for column `test`.`t1`.`a` at row 54
Warning 1366 Incorrect string value: '\x80V' for column 'a' at row 55 Warning 1366 Incorrect string value: '\x80V' for column `test`.`t1`.`a` at row 55
Warning 1366 Incorrect string value: '\x80W' for column 'a' at row 56 Warning 1366 Incorrect string value: '\x80W' for column `test`.`t1`.`a` at row 56
Warning 1366 Incorrect string value: '\x80X' for column 'a' at row 57 Warning 1366 Incorrect string value: '\x80X' for column `test`.`t1`.`a` at row 57
Warning 1366 Incorrect string value: '\x80Y' for column 'a' at row 58 Warning 1366 Incorrect string value: '\x80Y' for column `test`.`t1`.`a` at row 58
Warning 1366 Incorrect string value: '\x80Z' for column 'a' at row 59 Warning 1366 Incorrect string value: '\x80Z' for column `test`.`t1`.`a` at row 59
Warning 1366 Incorrect string value: '\x80[' for column 'a' at row 60 Warning 1366 Incorrect string value: '\x80[' for column `test`.`t1`.`a` at row 60
Warning 1366 Incorrect string value: '\x80\' for column 'a' at row 61 Warning 1366 Incorrect string value: '\x80\' for column `test`.`t1`.`a` at row 61
Warning 1366 Incorrect string value: '\x80]' for column 'a' at row 62 Warning 1366 Incorrect string value: '\x80]' for column `test`.`t1`.`a` at row 62
Warning 1366 Incorrect string value: '\x80^' for column 'a' at row 63 Warning 1366 Incorrect string value: '\x80^' for column `test`.`t1`.`a` at row 63
Warning 1366 Incorrect string value: '\x80_' for column 'a' at row 64 Warning 1366 Incorrect string value: '\x80_' for column `test`.`t1`.`a` at row 64
SELECT COUNT(*) FROM t1 WHERE a<>'?'; SELECT COUNT(*) FROM t1 WHERE a<>'?';
COUNT(*) COUNT(*)
8178 8178

View File

@ -511,70 +511,70 @@ t1 CREATE TABLE `t1` (
) ENGINE=MyISAM DEFAULT CHARSET=latin1 ) ENGINE=MyISAM DEFAULT CHARSET=latin1
UPDATE IGNORE t1 SET a=unhex(code) ORDER BY code; UPDATE IGNORE t1 SET a=unhex(code) ORDER BY code;
Warnings: Warnings:
Warning 1366 Incorrect string value: '\x80 ' for column 'a' at row 1 Warning 1366 Incorrect string value: '\x80 ' for column `test`.`t1`.`a` at row 1
Warning 1366 Incorrect string value: '\x80!' for column 'a' at row 2 Warning 1366 Incorrect string value: '\x80!' for column `test`.`t1`.`a` at row 2
Warning 1366 Incorrect string value: '\x80"' for column 'a' at row 3 Warning 1366 Incorrect string value: '\x80"' for column `test`.`t1`.`a` at row 3
Warning 1366 Incorrect string value: '\x80#' for column 'a' at row 4 Warning 1366 Incorrect string value: '\x80#' for column `test`.`t1`.`a` at row 4
Warning 1366 Incorrect string value: '\x80$' for column 'a' at row 5 Warning 1366 Incorrect string value: '\x80$' for column `test`.`t1`.`a` at row 5
Warning 1366 Incorrect string value: '\x80%' for column 'a' at row 6 Warning 1366 Incorrect string value: '\x80%' for column `test`.`t1`.`a` at row 6
Warning 1366 Incorrect string value: '\x80&' for column 'a' at row 7 Warning 1366 Incorrect string value: '\x80&' for column `test`.`t1`.`a` at row 7
Warning 1366 Incorrect string value: '\x80'' for column 'a' at row 8 Warning 1366 Incorrect string value: '\x80'' for column `test`.`t1`.`a` at row 8
Warning 1366 Incorrect string value: '\x80(' for column 'a' at row 9 Warning 1366 Incorrect string value: '\x80(' for column `test`.`t1`.`a` at row 9
Warning 1366 Incorrect string value: '\x80)' for column 'a' at row 10 Warning 1366 Incorrect string value: '\x80)' for column `test`.`t1`.`a` at row 10
Warning 1366 Incorrect string value: '\x80*' for column 'a' at row 11 Warning 1366 Incorrect string value: '\x80*' for column `test`.`t1`.`a` at row 11
Warning 1366 Incorrect string value: '\x80+' for column 'a' at row 12 Warning 1366 Incorrect string value: '\x80+' for column `test`.`t1`.`a` at row 12
Warning 1366 Incorrect string value: '\x80,' for column 'a' at row 13 Warning 1366 Incorrect string value: '\x80,' for column `test`.`t1`.`a` at row 13
Warning 1366 Incorrect string value: '\x80-' for column 'a' at row 14 Warning 1366 Incorrect string value: '\x80-' for column `test`.`t1`.`a` at row 14
Warning 1366 Incorrect string value: '\x80.' for column 'a' at row 15 Warning 1366 Incorrect string value: '\x80.' for column `test`.`t1`.`a` at row 15
Warning 1366 Incorrect string value: '\x80/' for column 'a' at row 16 Warning 1366 Incorrect string value: '\x80/' for column `test`.`t1`.`a` at row 16
Warning 1366 Incorrect string value: '\x800' for column 'a' at row 17 Warning 1366 Incorrect string value: '\x800' for column `test`.`t1`.`a` at row 17
Warning 1366 Incorrect string value: '\x801' for column 'a' at row 18 Warning 1366 Incorrect string value: '\x801' for column `test`.`t1`.`a` at row 18
Warning 1366 Incorrect string value: '\x802' for column 'a' at row 19 Warning 1366 Incorrect string value: '\x802' for column `test`.`t1`.`a` at row 19
Warning 1366 Incorrect string value: '\x803' for column 'a' at row 20 Warning 1366 Incorrect string value: '\x803' for column `test`.`t1`.`a` at row 20
Warning 1366 Incorrect string value: '\x804' for column 'a' at row 21 Warning 1366 Incorrect string value: '\x804' for column `test`.`t1`.`a` at row 21
Warning 1366 Incorrect string value: '\x805' for column 'a' at row 22 Warning 1366 Incorrect string value: '\x805' for column `test`.`t1`.`a` at row 22
Warning 1366 Incorrect string value: '\x806' for column 'a' at row 23 Warning 1366 Incorrect string value: '\x806' for column `test`.`t1`.`a` at row 23
Warning 1366 Incorrect string value: '\x807' for column 'a' at row 24 Warning 1366 Incorrect string value: '\x807' for column `test`.`t1`.`a` at row 24
Warning 1366 Incorrect string value: '\x808' for column 'a' at row 25 Warning 1366 Incorrect string value: '\x808' for column `test`.`t1`.`a` at row 25
Warning 1366 Incorrect string value: '\x809' for column 'a' at row 26 Warning 1366 Incorrect string value: '\x809' for column `test`.`t1`.`a` at row 26
Warning 1366 Incorrect string value: '\x80:' for column 'a' at row 27 Warning 1366 Incorrect string value: '\x80:' for column `test`.`t1`.`a` at row 27
Warning 1366 Incorrect string value: '\x80;' for column 'a' at row 28 Warning 1366 Incorrect string value: '\x80;' for column `test`.`t1`.`a` at row 28
Warning 1366 Incorrect string value: '\x80<' for column 'a' at row 29 Warning 1366 Incorrect string value: '\x80<' for column `test`.`t1`.`a` at row 29
Warning 1366 Incorrect string value: '\x80=' for column 'a' at row 30 Warning 1366 Incorrect string value: '\x80=' for column `test`.`t1`.`a` at row 30
Warning 1366 Incorrect string value: '\x80>' for column 'a' at row 31 Warning 1366 Incorrect string value: '\x80>' for column `test`.`t1`.`a` at row 31
Warning 1366 Incorrect string value: '\x80?' for column 'a' at row 32 Warning 1366 Incorrect string value: '\x80?' for column `test`.`t1`.`a` at row 32
Warning 1366 Incorrect string value: '\x80@' for column 'a' at row 33 Warning 1366 Incorrect string value: '\x80@' for column `test`.`t1`.`a` at row 33
Warning 1366 Incorrect string value: '\x80A' for column 'a' at row 34 Warning 1366 Incorrect string value: '\x80A' for column `test`.`t1`.`a` at row 34
Warning 1366 Incorrect string value: '\x80B' for column 'a' at row 35 Warning 1366 Incorrect string value: '\x80B' for column `test`.`t1`.`a` at row 35
Warning 1366 Incorrect string value: '\x80C' for column 'a' at row 36 Warning 1366 Incorrect string value: '\x80C' for column `test`.`t1`.`a` at row 36
Warning 1366 Incorrect string value: '\x80D' for column 'a' at row 37 Warning 1366 Incorrect string value: '\x80D' for column `test`.`t1`.`a` at row 37
Warning 1366 Incorrect string value: '\x80E' for column 'a' at row 38 Warning 1366 Incorrect string value: '\x80E' for column `test`.`t1`.`a` at row 38
Warning 1366 Incorrect string value: '\x80F' for column 'a' at row 39 Warning 1366 Incorrect string value: '\x80F' for column `test`.`t1`.`a` at row 39
Warning 1366 Incorrect string value: '\x80G' for column 'a' at row 40 Warning 1366 Incorrect string value: '\x80G' for column `test`.`t1`.`a` at row 40
Warning 1366 Incorrect string value: '\x80H' for column 'a' at row 41 Warning 1366 Incorrect string value: '\x80H' for column `test`.`t1`.`a` at row 41
Warning 1366 Incorrect string value: '\x80I' for column 'a' at row 42 Warning 1366 Incorrect string value: '\x80I' for column `test`.`t1`.`a` at row 42
Warning 1366 Incorrect string value: '\x80J' for column 'a' at row 43 Warning 1366 Incorrect string value: '\x80J' for column `test`.`t1`.`a` at row 43
Warning 1366 Incorrect string value: '\x80K' for column 'a' at row 44 Warning 1366 Incorrect string value: '\x80K' for column `test`.`t1`.`a` at row 44
Warning 1366 Incorrect string value: '\x80L' for column 'a' at row 45 Warning 1366 Incorrect string value: '\x80L' for column `test`.`t1`.`a` at row 45
Warning 1366 Incorrect string value: '\x80M' for column 'a' at row 46 Warning 1366 Incorrect string value: '\x80M' for column `test`.`t1`.`a` at row 46
Warning 1366 Incorrect string value: '\x80N' for column 'a' at row 47 Warning 1366 Incorrect string value: '\x80N' for column `test`.`t1`.`a` at row 47
Warning 1366 Incorrect string value: '\x80O' for column 'a' at row 48 Warning 1366 Incorrect string value: '\x80O' for column `test`.`t1`.`a` at row 48
Warning 1366 Incorrect string value: '\x80P' for column 'a' at row 49 Warning 1366 Incorrect string value: '\x80P' for column `test`.`t1`.`a` at row 49
Warning 1366 Incorrect string value: '\x80Q' for column 'a' at row 50 Warning 1366 Incorrect string value: '\x80Q' for column `test`.`t1`.`a` at row 50
Warning 1366 Incorrect string value: '\x80R' for column 'a' at row 51 Warning 1366 Incorrect string value: '\x80R' for column `test`.`t1`.`a` at row 51
Warning 1366 Incorrect string value: '\x80S' for column 'a' at row 52 Warning 1366 Incorrect string value: '\x80S' for column `test`.`t1`.`a` at row 52
Warning 1366 Incorrect string value: '\x80T' for column 'a' at row 53 Warning 1366 Incorrect string value: '\x80T' for column `test`.`t1`.`a` at row 53
Warning 1366 Incorrect string value: '\x80U' for column 'a' at row 54 Warning 1366 Incorrect string value: '\x80U' for column `test`.`t1`.`a` at row 54
Warning 1366 Incorrect string value: '\x80V' for column 'a' at row 55 Warning 1366 Incorrect string value: '\x80V' for column `test`.`t1`.`a` at row 55
Warning 1366 Incorrect string value: '\x80W' for column 'a' at row 56 Warning 1366 Incorrect string value: '\x80W' for column `test`.`t1`.`a` at row 56
Warning 1366 Incorrect string value: '\x80X' for column 'a' at row 57 Warning 1366 Incorrect string value: '\x80X' for column `test`.`t1`.`a` at row 57
Warning 1366 Incorrect string value: '\x80Y' for column 'a' at row 58 Warning 1366 Incorrect string value: '\x80Y' for column `test`.`t1`.`a` at row 58
Warning 1366 Incorrect string value: '\x80Z' for column 'a' at row 59 Warning 1366 Incorrect string value: '\x80Z' for column `test`.`t1`.`a` at row 59
Warning 1366 Incorrect string value: '\x80[' for column 'a' at row 60 Warning 1366 Incorrect string value: '\x80[' for column `test`.`t1`.`a` at row 60
Warning 1366 Incorrect string value: '\x80\' for column 'a' at row 61 Warning 1366 Incorrect string value: '\x80\' for column `test`.`t1`.`a` at row 61
Warning 1366 Incorrect string value: '\x80]' for column 'a' at row 62 Warning 1366 Incorrect string value: '\x80]' for column `test`.`t1`.`a` at row 62
Warning 1366 Incorrect string value: '\x80^' for column 'a' at row 63 Warning 1366 Incorrect string value: '\x80^' for column `test`.`t1`.`a` at row 63
Warning 1366 Incorrect string value: '\x80_' for column 'a' at row 64 Warning 1366 Incorrect string value: '\x80_' for column `test`.`t1`.`a` at row 64
SELECT COUNT(*) FROM t1 WHERE a<>'?'; SELECT COUNT(*) FROM t1 WHERE a<>'?';
COUNT(*) COUNT(*)
23940 23940
@ -5192,25 +5192,25 @@ INSERT IGNORE INTO t3 (b,c,comment) SELECT b,b,comment FROM t2
WHERE type1='tail' OR type1='bad' OR type2='bad' WHERE type1='tail' OR type1='bad' OR type2='bad'
ORDER BY b; ORDER BY b;
Warnings: Warnings:
Warning 1366 Incorrect string value: '\xFF' for column 'c' at row 1 Warning 1366 Incorrect string value: '\xFF' for column `test`.`t3`.`c` at row 1
Warning 1366 Incorrect string value: '\x80@' for column 'c' at row 2 Warning 1366 Incorrect string value: '\x80@' for column `test`.`t3`.`c` at row 2
Warning 1366 Incorrect string value: '\x80\x80' for column 'c' at row 3 Warning 1366 Incorrect string value: '\x80\x80' for column `test`.`t3`.`c` at row 3
Warning 1366 Incorrect string value: '\x80\x81' for column 'c' at row 4 Warning 1366 Incorrect string value: '\x80\x81' for column `test`.`t3`.`c` at row 4
Warning 1366 Incorrect string value: '\x80\xA1@' for column 'c' at row 5 Warning 1366 Incorrect string value: '\x80\xA1@' for column `test`.`t3`.`c` at row 5
Warning 1366 Incorrect string value: '\x80\xA1\xA3' for column 'c' at row 6 Warning 1366 Incorrect string value: '\x80\xA1\xA3' for column `test`.`t3`.`c` at row 6
Warning 1366 Incorrect string value: '\x80\xFE@' for column 'c' at row 7 Warning 1366 Incorrect string value: '\x80\xFE@' for column `test`.`t3`.`c` at row 7
Warning 1366 Incorrect string value: '\x80\xFF' for column 'c' at row 8 Warning 1366 Incorrect string value: '\x80\xFF' for column `test`.`t3`.`c` at row 8
Warning 1366 Incorrect string value: '\x81\xFF' for column 'c' at row 9 Warning 1366 Incorrect string value: '\x81\xFF' for column `test`.`t3`.`c` at row 9
Warning 1366 Incorrect string value: '\xFF' for column 'c' at row 10 Warning 1366 Incorrect string value: '\xFF' for column `test`.`t3`.`c` at row 10
Warning 1366 Incorrect string value: '\xFF' for column 'c' at row 11 Warning 1366 Incorrect string value: '\xFF' for column `test`.`t3`.`c` at row 11
Warning 1366 Incorrect string value: '\xFF' for column 'c' at row 12 Warning 1366 Incorrect string value: '\xFF' for column `test`.`t3`.`c` at row 12
Warning 1366 Incorrect string value: '\xFF@' for column 'c' at row 13 Warning 1366 Incorrect string value: '\xFF@' for column `test`.`t3`.`c` at row 13
Warning 1366 Incorrect string value: '\xFF\x80' for column 'c' at row 14 Warning 1366 Incorrect string value: '\xFF\x80' for column `test`.`t3`.`c` at row 14
Warning 1366 Incorrect string value: '\xFF\x81' for column 'c' at row 15 Warning 1366 Incorrect string value: '\xFF\x81' for column `test`.`t3`.`c` at row 15
Warning 1366 Incorrect string value: '\xFF\xA1@' for column 'c' at row 16 Warning 1366 Incorrect string value: '\xFF\xA1@' for column `test`.`t3`.`c` at row 16
Warning 1366 Incorrect string value: '\xFF\xA1\xA3' for column 'c' at row 17 Warning 1366 Incorrect string value: '\xFF\xA1\xA3' for column `test`.`t3`.`c` at row 17
Warning 1366 Incorrect string value: '\xFF\xFE@' for column 'c' at row 18 Warning 1366 Incorrect string value: '\xFF\xFE@' for column `test`.`t3`.`c` at row 18
Warning 1366 Incorrect string value: '\xFF\xFF' for column 'c' at row 19 Warning 1366 Incorrect string value: '\xFF\xFF' for column `test`.`t3`.`c` at row 19
SELECT COUNT(*) FROM t3; SELECT COUNT(*) FROM t3;
COUNT(*) COUNT(*)
19 19
@ -5248,14 +5248,14 @@ WHERE (FIND_IN_SET('mb2',type1) OR FIND_IN_SET('ascii',type1))
AND (FIND_IN_SET('tail',type2) AND NOT FIND_IN_SET('ascii',type2)) AND (FIND_IN_SET('tail',type2) AND NOT FIND_IN_SET('ascii',type2))
ORDER BY b; ORDER BY b;
Warnings: Warnings:
Warning 1366 Incorrect string value: '\x80' for column 'c' at row 1 Warning 1366 Incorrect string value: '\x80' for column `test`.`t3`.`c` at row 1
Warning 1366 Incorrect string value: '\x81' for column 'c' at row 2 Warning 1366 Incorrect string value: '\x81' for column `test`.`t3`.`c` at row 2
Warning 1366 Incorrect string value: '\x80' for column 'c' at row 3 Warning 1366 Incorrect string value: '\x80' for column `test`.`t3`.`c` at row 3
Warning 1366 Incorrect string value: '\x81' for column 'c' at row 4 Warning 1366 Incorrect string value: '\x81' for column `test`.`t3`.`c` at row 4
Warning 1366 Incorrect string value: '\x80' for column 'c' at row 5 Warning 1366 Incorrect string value: '\x80' for column `test`.`t3`.`c` at row 5
Warning 1366 Incorrect string value: '\x81' for column 'c' at row 6 Warning 1366 Incorrect string value: '\x81' for column `test`.`t3`.`c` at row 6
Warning 1366 Incorrect string value: '\x80' for column 'c' at row 7 Warning 1366 Incorrect string value: '\x80' for column `test`.`t3`.`c` at row 7
Warning 1366 Incorrect string value: '\x81' for column 'c' at row 8 Warning 1366 Incorrect string value: '\x81' for column `test`.`t3`.`c` at row 8
SELECT COUNT(*) FROM t3; SELECT COUNT(*) FROM t3;
COUNT(*) COUNT(*)
8 8
@ -5278,7 +5278,7 @@ DELETE FROM t3;
# #
INSERT INTO t3 (b,c,comment) SELECT b,b,comment FROM t2 ORDER BY b; INSERT INTO t3 (b,c,comment) SELECT b,b,comment FROM t2 ORDER BY b;
Warnings: Warnings:
Warning 1366 Incorrect string value: '\xA3' for column 'c' at row 5 Warning 1366 Incorrect string value: '\xA3' for column `test`.`t3`.`c` at row 5
SELECT COUNT(*) FROM t3; SELECT COUNT(*) FROM t3;
COUNT(*) COUNT(*)
6 6
@ -5401,70 +5401,70 @@ INSERT IGNORE INTO t3 (b,c,comment) SELECT b,b,comment FROM t2
WHERE type1='tail' OR type1='bad' OR type2='bad' OR type3='bad' WHERE type1='tail' OR type1='bad' OR type2='bad' OR type3='bad'
ORDER BY b; ORDER BY b;
Warnings: Warnings:
Warning 1366 Incorrect string value: '\xFF' for column 'c' at row 1 Warning 1366 Incorrect string value: '\xFF' for column `test`.`t3`.`c` at row 1
Warning 1366 Incorrect string value: '\x80\xFF' for column 'c' at row 2 Warning 1366 Incorrect string value: '\x80\xFF' for column `test`.`t3`.`c` at row 2
Warning 1366 Incorrect string value: '\x81\xFF' for column 'c' at row 3 Warning 1366 Incorrect string value: '\x81\xFF' for column `test`.`t3`.`c` at row 3
Warning 1366 Incorrect string value: '\xFF' for column 'c' at row 4 Warning 1366 Incorrect string value: '\xFF' for column `test`.`t3`.`c` at row 4
Warning 1366 Incorrect string value: '\xFF' for column 'c' at row 5 Warning 1366 Incorrect string value: '\xFF' for column `test`.`t3`.`c` at row 5
Warning 1366 Incorrect string value: '\xFF' for column 'c' at row 6 Warning 1366 Incorrect string value: '\xFF' for column `test`.`t3`.`c` at row 6
Warning 1366 Incorrect string value: '\xFF@' for column 'c' at row 7 Warning 1366 Incorrect string value: '\xFF@' for column `test`.`t3`.`c` at row 7
Warning 1366 Incorrect string value: '\xFF\x80' for column 'c' at row 8 Warning 1366 Incorrect string value: '\xFF\x80' for column `test`.`t3`.`c` at row 8
Warning 1366 Incorrect string value: '\xFF\x81' for column 'c' at row 9 Warning 1366 Incorrect string value: '\xFF\x81' for column `test`.`t3`.`c` at row 9
Warning 1366 Incorrect string value: '\xFF\xA1@' for column 'c' at row 10 Warning 1366 Incorrect string value: '\xFF\xA1@' for column `test`.`t3`.`c` at row 10
Warning 1366 Incorrect string value: '\xFF\xA1\xA3' for column 'c' at row 11 Warning 1366 Incorrect string value: '\xFF\xA1\xA3' for column `test`.`t3`.`c` at row 11
Warning 1366 Incorrect string value: '\xFF\xFE@' for column 'c' at row 12 Warning 1366 Incorrect string value: '\xFF\xFE@' for column `test`.`t3`.`c` at row 12
Warning 1366 Incorrect string value: '\xFF\xFF' for column 'c' at row 13 Warning 1366 Incorrect string value: '\xFF\xFF' for column `test`.`t3`.`c` at row 13
Warning 1366 Incorrect string value: '\x80@@' for column 'c' at row 14 Warning 1366 Incorrect string value: '\x80@@' for column `test`.`t3`.`c` at row 14
Warning 1366 Incorrect string value: '\x80@\x80' for column 'c' at row 15 Warning 1366 Incorrect string value: '\x80@\x80' for column `test`.`t3`.`c` at row 15
Warning 1366 Incorrect string value: '\x80@\x81' for column 'c' at row 16 Warning 1366 Incorrect string value: '\x80@\x81' for column `test`.`t3`.`c` at row 16
Warning 1366 Incorrect string value: '\x80@\xA1@' for column 'c' at row 17 Warning 1366 Incorrect string value: '\x80@\xA1@' for column `test`.`t3`.`c` at row 17
Warning 1366 Incorrect string value: '\x80@\xA1\xA3' for column 'c' at row 18 Warning 1366 Incorrect string value: '\x80@\xA1\xA3' for column `test`.`t3`.`c` at row 18
Warning 1366 Incorrect string value: '\x80@\xFE@' for column 'c' at row 19 Warning 1366 Incorrect string value: '\x80@\xFE@' for column `test`.`t3`.`c` at row 19
Warning 1366 Incorrect string value: '\x80@\xFF' for column 'c' at row 20 Warning 1366 Incorrect string value: '\x80@\xFF' for column `test`.`t3`.`c` at row 20
Warning 1366 Incorrect string value: '\x80\x80@' for column 'c' at row 21 Warning 1366 Incorrect string value: '\x80\x80@' for column `test`.`t3`.`c` at row 21
Warning 1366 Incorrect string value: '\x80\x80\x80' for column 'c' at row 22 Warning 1366 Incorrect string value: '\x80\x80\x80' for column `test`.`t3`.`c` at row 22
Warning 1366 Incorrect string value: '\x80\x80\x81' for column 'c' at row 23 Warning 1366 Incorrect string value: '\x80\x80\x81' for column `test`.`t3`.`c` at row 23
Warning 1366 Incorrect string value: '\x80\x80\xA1@' for column 'c' at row 24 Warning 1366 Incorrect string value: '\x80\x80\xA1@' for column `test`.`t3`.`c` at row 24
Warning 1366 Incorrect string value: '\x80\x80\xA1\xA3' for column 'c' at row 25 Warning 1366 Incorrect string value: '\x80\x80\xA1\xA3' for column `test`.`t3`.`c` at row 25
Warning 1366 Incorrect string value: '\x80\x80\xFE@' for column 'c' at row 26 Warning 1366 Incorrect string value: '\x80\x80\xFE@' for column `test`.`t3`.`c` at row 26
Warning 1366 Incorrect string value: '\x80\x80\xFF' for column 'c' at row 27 Warning 1366 Incorrect string value: '\x80\x80\xFF' for column `test`.`t3`.`c` at row 27
Warning 1366 Incorrect string value: '\x80\x81@' for column 'c' at row 28 Warning 1366 Incorrect string value: '\x80\x81@' for column `test`.`t3`.`c` at row 28
Warning 1366 Incorrect string value: '\x80\x81\x80' for column 'c' at row 29 Warning 1366 Incorrect string value: '\x80\x81\x80' for column `test`.`t3`.`c` at row 29
Warning 1366 Incorrect string value: '\x80\x81\x81' for column 'c' at row 30 Warning 1366 Incorrect string value: '\x80\x81\x81' for column `test`.`t3`.`c` at row 30
Warning 1366 Incorrect string value: '\x80\x81\xA1@' for column 'c' at row 31 Warning 1366 Incorrect string value: '\x80\x81\xA1@' for column `test`.`t3`.`c` at row 31
Warning 1366 Incorrect string value: '\x80\x81\xA1\xA3' for column 'c' at row 32 Warning 1366 Incorrect string value: '\x80\x81\xA1\xA3' for column `test`.`t3`.`c` at row 32
Warning 1366 Incorrect string value: '\x80\x81\xFE@' for column 'c' at row 33 Warning 1366 Incorrect string value: '\x80\x81\xFE@' for column `test`.`t3`.`c` at row 33
Warning 1366 Incorrect string value: '\x80\x81\xFF' for column 'c' at row 34 Warning 1366 Incorrect string value: '\x80\x81\xFF' for column `test`.`t3`.`c` at row 34
Warning 1366 Incorrect string value: '\x80\xA1@@' for column 'c' at row 35 Warning 1366 Incorrect string value: '\x80\xA1@@' for column `test`.`t3`.`c` at row 35
Warning 1366 Incorrect string value: '\x80\xA1@\x80' for column 'c' at row 36 Warning 1366 Incorrect string value: '\x80\xA1@\x80' for column `test`.`t3`.`c` at row 36
Warning 1366 Incorrect string value: '\x80\xA1@\x81' for column 'c' at row 37 Warning 1366 Incorrect string value: '\x80\xA1@\x81' for column `test`.`t3`.`c` at row 37
Warning 1366 Incorrect string value: '\x80\xA1@\xA1@' for column 'c' at row 38 Warning 1366 Incorrect string value: '\x80\xA1@\xA1@' for column `test`.`t3`.`c` at row 38
Warning 1366 Incorrect string value: '\x80\xA1@\xA1\xA3' for column 'c' at row 39 Warning 1366 Incorrect string value: '\x80\xA1@\xA1\xA3' for column `test`.`t3`.`c` at row 39
Warning 1366 Incorrect string value: '\x80\xA1@\xFE@' for column 'c' at row 40 Warning 1366 Incorrect string value: '\x80\xA1@\xFE@' for column `test`.`t3`.`c` at row 40
Warning 1366 Incorrect string value: '\x80\xA1@\xFF' for column 'c' at row 41 Warning 1366 Incorrect string value: '\x80\xA1@\xFF' for column `test`.`t3`.`c` at row 41
Warning 1366 Incorrect string value: '\x80\xA1\xA3@' for column 'c' at row 42 Warning 1366 Incorrect string value: '\x80\xA1\xA3@' for column `test`.`t3`.`c` at row 42
Warning 1366 Incorrect string value: '\x80\xA1\xA3\x80' for column 'c' at row 43 Warning 1366 Incorrect string value: '\x80\xA1\xA3\x80' for column `test`.`t3`.`c` at row 43
Warning 1366 Incorrect string value: '\x80\xA1\xA3\x81' for column 'c' at row 44 Warning 1366 Incorrect string value: '\x80\xA1\xA3\x81' for column `test`.`t3`.`c` at row 44
Warning 1366 Incorrect string value: '\x80\xA1\xA3\xA1@' for column 'c' at row 45 Warning 1366 Incorrect string value: '\x80\xA1\xA3\xA1@' for column `test`.`t3`.`c` at row 45
Warning 1366 Incorrect string value: '\x80\xA1\xA3\xA1\xA3' for column 'c' at row 46 Warning 1366 Incorrect string value: '\x80\xA1\xA3\xA1\xA3' for column `test`.`t3`.`c` at row 46
Warning 1366 Incorrect string value: '\x80\xA1\xA3\xFE@' for column 'c' at row 47 Warning 1366 Incorrect string value: '\x80\xA1\xA3\xFE@' for column `test`.`t3`.`c` at row 47
Warning 1366 Incorrect string value: '\x80\xA1\xA3\xFF' for column 'c' at row 48 Warning 1366 Incorrect string value: '\x80\xA1\xA3\xFF' for column `test`.`t3`.`c` at row 48
Warning 1366 Incorrect string value: '\x80\xFE@@' for column 'c' at row 49 Warning 1366 Incorrect string value: '\x80\xFE@@' for column `test`.`t3`.`c` at row 49
Warning 1366 Incorrect string value: '\x80\xFE@\x80' for column 'c' at row 50 Warning 1366 Incorrect string value: '\x80\xFE@\x80' for column `test`.`t3`.`c` at row 50
Warning 1366 Incorrect string value: '\x80\xFE@\x81' for column 'c' at row 51 Warning 1366 Incorrect string value: '\x80\xFE@\x81' for column `test`.`t3`.`c` at row 51
Warning 1366 Incorrect string value: '\x80\xFE@\xA1@' for column 'c' at row 52 Warning 1366 Incorrect string value: '\x80\xFE@\xA1@' for column `test`.`t3`.`c` at row 52
Warning 1366 Incorrect string value: '\x80\xFE@\xA1\xA3' for column 'c' at row 53 Warning 1366 Incorrect string value: '\x80\xFE@\xA1\xA3' for column `test`.`t3`.`c` at row 53
Warning 1366 Incorrect string value: '\x80\xFE@\xFE@' for column 'c' at row 54 Warning 1366 Incorrect string value: '\x80\xFE@\xFE@' for column `test`.`t3`.`c` at row 54
Warning 1366 Incorrect string value: '\x80\xFE@\xFF' for column 'c' at row 55 Warning 1366 Incorrect string value: '\x80\xFE@\xFF' for column `test`.`t3`.`c` at row 55
Warning 1366 Incorrect string value: '\x80\xFF@' for column 'c' at row 56 Warning 1366 Incorrect string value: '\x80\xFF@' for column `test`.`t3`.`c` at row 56
Warning 1366 Incorrect string value: '\x80\xFF\x80' for column 'c' at row 57 Warning 1366 Incorrect string value: '\x80\xFF\x80' for column `test`.`t3`.`c` at row 57
Warning 1366 Incorrect string value: '\x80\xFF\x81' for column 'c' at row 58 Warning 1366 Incorrect string value: '\x80\xFF\x81' for column `test`.`t3`.`c` at row 58
Warning 1366 Incorrect string value: '\x80\xFF\xA1@' for column 'c' at row 59 Warning 1366 Incorrect string value: '\x80\xFF\xA1@' for column `test`.`t3`.`c` at row 59
Warning 1366 Incorrect string value: '\x80\xFF\xA1\xA3' for column 'c' at row 60 Warning 1366 Incorrect string value: '\x80\xFF\xA1\xA3' for column `test`.`t3`.`c` at row 60
Warning 1366 Incorrect string value: '\x80\xFF\xFE@' for column 'c' at row 61 Warning 1366 Incorrect string value: '\x80\xFF\xFE@' for column `test`.`t3`.`c` at row 61
Warning 1366 Incorrect string value: '\x80\xFF\xFF' for column 'c' at row 62 Warning 1366 Incorrect string value: '\x80\xFF\xFF' for column `test`.`t3`.`c` at row 62
Warning 1366 Incorrect string value: '\xFF' for column 'c' at row 63 Warning 1366 Incorrect string value: '\xFF' for column `test`.`t3`.`c` at row 63
Warning 1366 Incorrect string value: '\xFF' for column 'c' at row 64 Warning 1366 Incorrect string value: '\xFF' for column `test`.`t3`.`c` at row 64
SELECT COUNT(*) FROM t3; SELECT COUNT(*) FROM t3;
COUNT(*) COUNT(*)
163 163
@ -5646,30 +5646,30 @@ WHERE (FIND_IN_SET('mb2',type1) OR FIND_IN_SET('ascii',type1))
AND type2='tail' AND type2='tail'
ORDER BY b; ORDER BY b;
Warnings: Warnings:
Warning 1366 Incorrect string value: '\x80@' for column 'c' at row 1 Warning 1366 Incorrect string value: '\x80@' for column `test`.`t3`.`c` at row 1
Warning 1366 Incorrect string value: '\x80\x80' for column 'c' at row 2 Warning 1366 Incorrect string value: '\x80\x80' for column `test`.`t3`.`c` at row 2
Warning 1366 Incorrect string value: '\x80\x81' for column 'c' at row 3 Warning 1366 Incorrect string value: '\x80\x81' for column `test`.`t3`.`c` at row 3
Warning 1366 Incorrect string value: '\x80\xA1@' for column 'c' at row 4 Warning 1366 Incorrect string value: '\x80\xA1@' for column `test`.`t3`.`c` at row 4
Warning 1366 Incorrect string value: '\x80\xA1\xA3' for column 'c' at row 5 Warning 1366 Incorrect string value: '\x80\xA1\xA3' for column `test`.`t3`.`c` at row 5
Warning 1366 Incorrect string value: '\x80\xFE@' for column 'c' at row 6 Warning 1366 Incorrect string value: '\x80\xFE@' for column `test`.`t3`.`c` at row 6
Warning 1366 Incorrect string value: '\x80@' for column 'c' at row 7 Warning 1366 Incorrect string value: '\x80@' for column `test`.`t3`.`c` at row 7
Warning 1366 Incorrect string value: '\x80\x80' for column 'c' at row 8 Warning 1366 Incorrect string value: '\x80\x80' for column `test`.`t3`.`c` at row 8
Warning 1366 Incorrect string value: '\x80\x81' for column 'c' at row 9 Warning 1366 Incorrect string value: '\x80\x81' for column `test`.`t3`.`c` at row 9
Warning 1366 Incorrect string value: '\x80\xA1@' for column 'c' at row 10 Warning 1366 Incorrect string value: '\x80\xA1@' for column `test`.`t3`.`c` at row 10
Warning 1366 Incorrect string value: '\x80\xA1\xA3' for column 'c' at row 11 Warning 1366 Incorrect string value: '\x80\xA1\xA3' for column `test`.`t3`.`c` at row 11
Warning 1366 Incorrect string value: '\x80\xFE@' for column 'c' at row 12 Warning 1366 Incorrect string value: '\x80\xFE@' for column `test`.`t3`.`c` at row 12
Warning 1366 Incorrect string value: '\x80@' for column 'c' at row 13 Warning 1366 Incorrect string value: '\x80@' for column `test`.`t3`.`c` at row 13
Warning 1366 Incorrect string value: '\x80\x80' for column 'c' at row 14 Warning 1366 Incorrect string value: '\x80\x80' for column `test`.`t3`.`c` at row 14
Warning 1366 Incorrect string value: '\x80\x81' for column 'c' at row 15 Warning 1366 Incorrect string value: '\x80\x81' for column `test`.`t3`.`c` at row 15
Warning 1366 Incorrect string value: '\x80\xA1@' for column 'c' at row 16 Warning 1366 Incorrect string value: '\x80\xA1@' for column `test`.`t3`.`c` at row 16
Warning 1366 Incorrect string value: '\x80\xA1\xA3' for column 'c' at row 17 Warning 1366 Incorrect string value: '\x80\xA1\xA3' for column `test`.`t3`.`c` at row 17
Warning 1366 Incorrect string value: '\x80\xFE@' for column 'c' at row 18 Warning 1366 Incorrect string value: '\x80\xFE@' for column `test`.`t3`.`c` at row 18
Warning 1366 Incorrect string value: '\x80@' for column 'c' at row 19 Warning 1366 Incorrect string value: '\x80@' for column `test`.`t3`.`c` at row 19
Warning 1366 Incorrect string value: '\x80\x80' for column 'c' at row 20 Warning 1366 Incorrect string value: '\x80\x80' for column `test`.`t3`.`c` at row 20
Warning 1366 Incorrect string value: '\x80\x81' for column 'c' at row 21 Warning 1366 Incorrect string value: '\x80\x81' for column `test`.`t3`.`c` at row 21
Warning 1366 Incorrect string value: '\x80\xA1@' for column 'c' at row 22 Warning 1366 Incorrect string value: '\x80\xA1@' for column `test`.`t3`.`c` at row 22
Warning 1366 Incorrect string value: '\x80\xA1\xA3' for column 'c' at row 23 Warning 1366 Incorrect string value: '\x80\xA1\xA3' for column `test`.`t3`.`c` at row 23
Warning 1366 Incorrect string value: '\x80\xFE@' for column 'c' at row 24 Warning 1366 Incorrect string value: '\x80\xFE@' for column `test`.`t3`.`c` at row 24
SELECT COUNT(*) FROM t3; SELECT COUNT(*) FROM t3;
COUNT(*) COUNT(*)
24 24
@ -5713,22 +5713,22 @@ WHERE (FIND_IN_SET('mb2',type1) OR FIND_IN_SET('ascii',type1)) AND
type3='tail' type3='tail'
ORDER BY b; ORDER BY b;
Warnings: Warnings:
Warning 1366 Incorrect string value: '\x80' for column 'c' at row 1 Warning 1366 Incorrect string value: '\x80' for column `test`.`t3`.`c` at row 1
Warning 1366 Incorrect string value: '\x80' for column 'c' at row 2 Warning 1366 Incorrect string value: '\x80' for column `test`.`t3`.`c` at row 2
Warning 1366 Incorrect string value: '\x80' for column 'c' at row 3 Warning 1366 Incorrect string value: '\x80' for column `test`.`t3`.`c` at row 3
Warning 1366 Incorrect string value: '\x80' for column 'c' at row 4 Warning 1366 Incorrect string value: '\x80' for column `test`.`t3`.`c` at row 4
Warning 1366 Incorrect string value: '\x80' for column 'c' at row 5 Warning 1366 Incorrect string value: '\x80' for column `test`.`t3`.`c` at row 5
Warning 1366 Incorrect string value: '\x80' for column 'c' at row 6 Warning 1366 Incorrect string value: '\x80' for column `test`.`t3`.`c` at row 6
Warning 1366 Incorrect string value: '\x80' for column 'c' at row 7 Warning 1366 Incorrect string value: '\x80' for column `test`.`t3`.`c` at row 7
Warning 1366 Incorrect string value: '\x80' for column 'c' at row 8 Warning 1366 Incorrect string value: '\x80' for column `test`.`t3`.`c` at row 8
Warning 1366 Incorrect string value: '\x80' for column 'c' at row 9 Warning 1366 Incorrect string value: '\x80' for column `test`.`t3`.`c` at row 9
Warning 1366 Incorrect string value: '\x80' for column 'c' at row 10 Warning 1366 Incorrect string value: '\x80' for column `test`.`t3`.`c` at row 10
Warning 1366 Incorrect string value: '\x80' for column 'c' at row 11 Warning 1366 Incorrect string value: '\x80' for column `test`.`t3`.`c` at row 11
Warning 1366 Incorrect string value: '\x80' for column 'c' at row 12 Warning 1366 Incorrect string value: '\x80' for column `test`.`t3`.`c` at row 12
Warning 1366 Incorrect string value: '\x80' for column 'c' at row 13 Warning 1366 Incorrect string value: '\x80' for column `test`.`t3`.`c` at row 13
Warning 1366 Incorrect string value: '\x80' for column 'c' at row 14 Warning 1366 Incorrect string value: '\x80' for column `test`.`t3`.`c` at row 14
Warning 1366 Incorrect string value: '\x80' for column 'c' at row 15 Warning 1366 Incorrect string value: '\x80' for column `test`.`t3`.`c` at row 15
Warning 1366 Incorrect string value: '\x80' for column 'c' at row 16 Warning 1366 Incorrect string value: '\x80' for column `test`.`t3`.`c` at row 16
SELECT COUNT(*) FROM t3; SELECT COUNT(*) FROM t3;
COUNT(*) COUNT(*)
16 16
@ -5764,15 +5764,15 @@ AND NOT FIND_IN_SET('ascii',type3)
AND NOT FIND_IN_SET('mb2',type3) AND NOT FIND_IN_SET('mb2',type3)
ORDER BY b; ORDER BY b;
Warnings: Warnings:
Warning 1366 Incorrect string value: '\x81' for column 'c' at row 1 Warning 1366 Incorrect string value: '\x81' for column `test`.`t3`.`c` at row 1
Warning 1366 Incorrect string value: '\x81' for column 'c' at row 2 Warning 1366 Incorrect string value: '\x81' for column `test`.`t3`.`c` at row 2
Warning 1366 Incorrect string value: '\x81' for column 'c' at row 3 Warning 1366 Incorrect string value: '\x81' for column `test`.`t3`.`c` at row 3
Warning 1366 Incorrect string value: '\x81' for column 'c' at row 4 Warning 1366 Incorrect string value: '\x81' for column `test`.`t3`.`c` at row 4
Warning 1366 Incorrect string value: '\x81' for column 'c' at row 5 Warning 1366 Incorrect string value: '\x81' for column `test`.`t3`.`c` at row 5
Warning 1366 Incorrect string value: '\x81' for column 'c' at row 6 Warning 1366 Incorrect string value: '\x81' for column `test`.`t3`.`c` at row 6
Warning 1366 Incorrect string value: '\x81' for column 'c' at row 7 Warning 1366 Incorrect string value: '\x81' for column `test`.`t3`.`c` at row 7
Warning 1366 Incorrect string value: '\x81' for column 'c' at row 8 Warning 1366 Incorrect string value: '\x81' for column `test`.`t3`.`c` at row 8
Warning 1366 Incorrect string value: '\x81' for column 'c' at row 9 Warning 1366 Incorrect string value: '\x81' for column `test`.`t3`.`c` at row 9
SELECT COUNT(*) FROM t3; SELECT COUNT(*) FROM t3;
COUNT(*) COUNT(*)
9 9
@ -5848,28 +5848,28 @@ DELETE FROM t2 WHERE b IN (SELECT b FROM t3);
DELETE FROM t3; DELETE FROM t3;
INSERT IGNORE INTO t3 (b,c,comment) SELECT b,b,comment FROM t2 ORDER BY b; INSERT IGNORE INTO t3 (b,c,comment) SELECT b,b,comment FROM t2 ORDER BY b;
Warnings: Warnings:
Warning 1366 Incorrect string value: '\x81' for column 'c' at row 1 Warning 1366 Incorrect string value: '\x81' for column `test`.`t3`.`c` at row 1
Warning 1366 Incorrect string value: '\xA3' for column 'c' at row 3 Warning 1366 Incorrect string value: '\xA3' for column `test`.`t3`.`c` at row 3
Warning 1366 Incorrect string value: '\x81' for column 'c' at row 5 Warning 1366 Incorrect string value: '\x81' for column `test`.`t3`.`c` at row 5
Warning 1366 Incorrect string value: '\x81' for column 'c' at row 6 Warning 1366 Incorrect string value: '\x81' for column `test`.`t3`.`c` at row 6
Warning 1366 Incorrect string value: '\x81' for column 'c' at row 7 Warning 1366 Incorrect string value: '\x81' for column `test`.`t3`.`c` at row 7
Warning 1366 Incorrect string value: '\x80' for column 'c' at row 9 Warning 1366 Incorrect string value: '\x80' for column `test`.`t3`.`c` at row 9
Warning 1366 Incorrect string value: '\x81' for column 'c' at row 10 Warning 1366 Incorrect string value: '\x81' for column `test`.`t3`.`c` at row 10
Warning 1366 Incorrect string value: '\x80' for column 'c' at row 12 Warning 1366 Incorrect string value: '\x80' for column `test`.`t3`.`c` at row 12
Warning 1366 Incorrect string value: '\x81' for column 'c' at row 13 Warning 1366 Incorrect string value: '\x81' for column `test`.`t3`.`c` at row 13
Warning 1366 Incorrect string value: '\x80' for column 'c' at row 15 Warning 1366 Incorrect string value: '\x80' for column `test`.`t3`.`c` at row 15
Warning 1366 Incorrect string value: '\x81' for column 'c' at row 16 Warning 1366 Incorrect string value: '\x81' for column `test`.`t3`.`c` at row 16
Warning 1366 Incorrect string value: '\x80' for column 'c' at row 18 Warning 1366 Incorrect string value: '\x80' for column `test`.`t3`.`c` at row 18
Warning 1366 Incorrect string value: '\x81' for column 'c' at row 19 Warning 1366 Incorrect string value: '\x81' for column `test`.`t3`.`c` at row 19
Warning 1366 Incorrect string value: '\xA3' for column 'c' at row 27 Warning 1366 Incorrect string value: '\xA3' for column `test`.`t3`.`c` at row 27
Warning 1366 Incorrect string value: '\x80' for column 'c' at row 30 Warning 1366 Incorrect string value: '\x80' for column `test`.`t3`.`c` at row 30
Warning 1366 Incorrect string value: '\x81' for column 'c' at row 31 Warning 1366 Incorrect string value: '\x81' for column `test`.`t3`.`c` at row 31
Warning 1366 Incorrect string value: '\x81' for column 'c' at row 35 Warning 1366 Incorrect string value: '\x81' for column `test`.`t3`.`c` at row 35
Warning 1366 Incorrect string value: '\xA3' for column 'c' at row 37 Warning 1366 Incorrect string value: '\xA3' for column `test`.`t3`.`c` at row 37
Warning 1366 Incorrect string value: '\x81' for column 'c' at row 39 Warning 1366 Incorrect string value: '\x81' for column `test`.`t3`.`c` at row 39
Warning 1366 Incorrect string value: '\xA3' for column 'c' at row 41 Warning 1366 Incorrect string value: '\xA3' for column `test`.`t3`.`c` at row 41
Warning 1366 Incorrect string value: '\x81' for column 'c' at row 43 Warning 1366 Incorrect string value: '\x81' for column `test`.`t3`.`c` at row 43
Warning 1366 Incorrect string value: '\xA3' for column 'c' at row 45 Warning 1366 Incorrect string value: '\xA3' for column `test`.`t3`.`c` at row 45
SELECT COUNT(*) FROM t3; SELECT COUNT(*) FROM t3;
COUNT(*) COUNT(*)
46 46

View File

@ -7987,12 +7987,12 @@ SET NAMES utf8;
CREATE TABLE t1 (a VARCHAR(10) CHARACTER SET latin1); CREATE TABLE t1 (a VARCHAR(10) CHARACTER SET latin1);
INSERT IGNORE INTO t1 VALUES ('Â'),('Â#'); INSERT IGNORE INTO t1 VALUES ('Â'),('Â#');
Warnings: Warnings:
Warning 1366 Incorrect string value: '\xC2' for column 'a' at row 1 Warning 1366 Incorrect string value: '\xC2' for column `test`.`t1`.`a` at row 1
Warning 1366 Incorrect string value: '\xC2#' for column 'a' at row 2 Warning 1366 Incorrect string value: '\xC2#' for column `test`.`t1`.`a` at row 2
SHOW WARNINGS; SHOW WARNINGS;
Level Code Message Level Code Message
Warning 1366 Incorrect string value: '\xC2' for column 'a' at row 1 Warning 1366 Incorrect string value: '\xC2' for column `test`.`t1`.`a` at row 1
Warning 1366 Incorrect string value: '\xC2#' for column 'a' at row 2 Warning 1366 Incorrect string value: '\xC2#' for column `test`.`t1`.`a` at row 2
SELECT HEX(a),a FROM t1; SELECT HEX(a),a FROM t1;
HEX(a) a HEX(a) a
3F ? 3F ?

View File

@ -1767,8 +1767,8 @@ CREATE TABLE t2 (a VARCHAR(10) CHARACTER SET ucs2);
INSERT INTO t1 VALUES (0x10082), (0x12345); INSERT INTO t1 VALUES (0x10082), (0x12345);
INSERT IGNORE INTO t2 SELECT * FROM t1; INSERT IGNORE INTO t2 SELECT * FROM t1;
Warnings: Warnings:
Warning 1366 Incorrect string value: '\x00\x01\x00\x82' for column 'a' at row 1 Warning 1366 Incorrect string value: '\x00\x01\x00\x82' for column `test`.`t2`.`a` at row 1
Warning 1366 Incorrect string value: '\x00\x01\x23\x45' for column 'a' at row 2 Warning 1366 Incorrect string value: '\x00\x01\x23\x45' for column `test`.`t2`.`a` at row 2
SELECT HEX(a) FROM t2; SELECT HEX(a) FROM t2;
HEX(a) HEX(a)
003F 003F

View File

@ -171,8 +171,8 @@ create table t1 (a char(10) character set koi8r, b text character set koi8r);
insert into t1 values ('test','test'); insert into t1 values ('test','test');
insert ignore into t1 values ('ÊÃÕË','ÊÃÕË'); insert ignore into t1 values ('ÊÃÕË','ÊÃÕË');
Warnings: Warnings:
Warning 1366 Incorrect string value: '\xCA\xC3\xD5\xCB' for column 'a' at row 1 Warning 1366 Incorrect string value: '\xCA\xC3\xD5\xCB' for column `test`.`t1`.`a` at row 1
Warning 1366 Incorrect string value: '\xCA\xC3\xD5\xCB' for column 'b' at row 1 Warning 1366 Incorrect string value: '\xCA\xC3\xD5\xCB' for column `test`.`t1`.`b` at row 1
drop table t1; drop table t1;
set names koi8r; set names koi8r;
create table t1 (a char(10) character set cp1251); create table t1 (a char(10) character set cp1251);

View File

@ -412,70 +412,70 @@ t1 CREATE TABLE `t1` (
) ENGINE=MyISAM DEFAULT CHARSET=latin1 ) ENGINE=MyISAM DEFAULT CHARSET=latin1
UPDATE IGNORE t1 SET a=unhex(code) ORDER BY code; UPDATE IGNORE t1 SET a=unhex(code) ORDER BY code;
Warnings: Warnings:
Warning 1366 Incorrect string value: '\x80 ' for column 'a' at row 1 Warning 1366 Incorrect string value: '\x80 ' for column `test`.`t1`.`a` at row 1
Warning 1366 Incorrect string value: '\x80!' for column 'a' at row 2 Warning 1366 Incorrect string value: '\x80!' for column `test`.`t1`.`a` at row 2
Warning 1366 Incorrect string value: '\x80"' for column 'a' at row 3 Warning 1366 Incorrect string value: '\x80"' for column `test`.`t1`.`a` at row 3
Warning 1366 Incorrect string value: '\x80#' for column 'a' at row 4 Warning 1366 Incorrect string value: '\x80#' for column `test`.`t1`.`a` at row 4
Warning 1366 Incorrect string value: '\x80$' for column 'a' at row 5 Warning 1366 Incorrect string value: '\x80$' for column `test`.`t1`.`a` at row 5
Warning 1366 Incorrect string value: '\x80%' for column 'a' at row 6 Warning 1366 Incorrect string value: '\x80%' for column `test`.`t1`.`a` at row 6
Warning 1366 Incorrect string value: '\x80&' for column 'a' at row 7 Warning 1366 Incorrect string value: '\x80&' for column `test`.`t1`.`a` at row 7
Warning 1366 Incorrect string value: '\x80'' for column 'a' at row 8 Warning 1366 Incorrect string value: '\x80'' for column `test`.`t1`.`a` at row 8
Warning 1366 Incorrect string value: '\x80(' for column 'a' at row 9 Warning 1366 Incorrect string value: '\x80(' for column `test`.`t1`.`a` at row 9
Warning 1366 Incorrect string value: '\x80)' for column 'a' at row 10 Warning 1366 Incorrect string value: '\x80)' for column `test`.`t1`.`a` at row 10
Warning 1366 Incorrect string value: '\x80*' for column 'a' at row 11 Warning 1366 Incorrect string value: '\x80*' for column `test`.`t1`.`a` at row 11
Warning 1366 Incorrect string value: '\x80+' for column 'a' at row 12 Warning 1366 Incorrect string value: '\x80+' for column `test`.`t1`.`a` at row 12
Warning 1366 Incorrect string value: '\x80,' for column 'a' at row 13 Warning 1366 Incorrect string value: '\x80,' for column `test`.`t1`.`a` at row 13
Warning 1366 Incorrect string value: '\x80-' for column 'a' at row 14 Warning 1366 Incorrect string value: '\x80-' for column `test`.`t1`.`a` at row 14
Warning 1366 Incorrect string value: '\x80.' for column 'a' at row 15 Warning 1366 Incorrect string value: '\x80.' for column `test`.`t1`.`a` at row 15
Warning 1366 Incorrect string value: '\x80/' for column 'a' at row 16 Warning 1366 Incorrect string value: '\x80/' for column `test`.`t1`.`a` at row 16
Warning 1366 Incorrect string value: '\x800' for column 'a' at row 17 Warning 1366 Incorrect string value: '\x800' for column `test`.`t1`.`a` at row 17
Warning 1366 Incorrect string value: '\x801' for column 'a' at row 18 Warning 1366 Incorrect string value: '\x801' for column `test`.`t1`.`a` at row 18
Warning 1366 Incorrect string value: '\x802' for column 'a' at row 19 Warning 1366 Incorrect string value: '\x802' for column `test`.`t1`.`a` at row 19
Warning 1366 Incorrect string value: '\x803' for column 'a' at row 20 Warning 1366 Incorrect string value: '\x803' for column `test`.`t1`.`a` at row 20
Warning 1366 Incorrect string value: '\x804' for column 'a' at row 21 Warning 1366 Incorrect string value: '\x804' for column `test`.`t1`.`a` at row 21
Warning 1366 Incorrect string value: '\x805' for column 'a' at row 22 Warning 1366 Incorrect string value: '\x805' for column `test`.`t1`.`a` at row 22
Warning 1366 Incorrect string value: '\x806' for column 'a' at row 23 Warning 1366 Incorrect string value: '\x806' for column `test`.`t1`.`a` at row 23
Warning 1366 Incorrect string value: '\x807' for column 'a' at row 24 Warning 1366 Incorrect string value: '\x807' for column `test`.`t1`.`a` at row 24
Warning 1366 Incorrect string value: '\x808' for column 'a' at row 25 Warning 1366 Incorrect string value: '\x808' for column `test`.`t1`.`a` at row 25
Warning 1366 Incorrect string value: '\x809' for column 'a' at row 26 Warning 1366 Incorrect string value: '\x809' for column `test`.`t1`.`a` at row 26
Warning 1366 Incorrect string value: '\x80:' for column 'a' at row 27 Warning 1366 Incorrect string value: '\x80:' for column `test`.`t1`.`a` at row 27
Warning 1366 Incorrect string value: '\x80;' for column 'a' at row 28 Warning 1366 Incorrect string value: '\x80;' for column `test`.`t1`.`a` at row 28
Warning 1366 Incorrect string value: '\x80<' for column 'a' at row 29 Warning 1366 Incorrect string value: '\x80<' for column `test`.`t1`.`a` at row 29
Warning 1366 Incorrect string value: '\x80=' for column 'a' at row 30 Warning 1366 Incorrect string value: '\x80=' for column `test`.`t1`.`a` at row 30
Warning 1366 Incorrect string value: '\x80>' for column 'a' at row 31 Warning 1366 Incorrect string value: '\x80>' for column `test`.`t1`.`a` at row 31
Warning 1366 Incorrect string value: '\x80?' for column 'a' at row 32 Warning 1366 Incorrect string value: '\x80?' for column `test`.`t1`.`a` at row 32
Warning 1366 Incorrect string value: '\x80@' for column 'a' at row 33 Warning 1366 Incorrect string value: '\x80@' for column `test`.`t1`.`a` at row 33
Warning 1366 Incorrect string value: '\x80A' for column 'a' at row 34 Warning 1366 Incorrect string value: '\x80A' for column `test`.`t1`.`a` at row 34
Warning 1366 Incorrect string value: '\x80B' for column 'a' at row 35 Warning 1366 Incorrect string value: '\x80B' for column `test`.`t1`.`a` at row 35
Warning 1366 Incorrect string value: '\x80C' for column 'a' at row 36 Warning 1366 Incorrect string value: '\x80C' for column `test`.`t1`.`a` at row 36
Warning 1366 Incorrect string value: '\x80D' for column 'a' at row 37 Warning 1366 Incorrect string value: '\x80D' for column `test`.`t1`.`a` at row 37
Warning 1366 Incorrect string value: '\x80E' for column 'a' at row 38 Warning 1366 Incorrect string value: '\x80E' for column `test`.`t1`.`a` at row 38
Warning 1366 Incorrect string value: '\x80F' for column 'a' at row 39 Warning 1366 Incorrect string value: '\x80F' for column `test`.`t1`.`a` at row 39
Warning 1366 Incorrect string value: '\x80G' for column 'a' at row 40 Warning 1366 Incorrect string value: '\x80G' for column `test`.`t1`.`a` at row 40
Warning 1366 Incorrect string value: '\x80H' for column 'a' at row 41 Warning 1366 Incorrect string value: '\x80H' for column `test`.`t1`.`a` at row 41
Warning 1366 Incorrect string value: '\x80I' for column 'a' at row 42 Warning 1366 Incorrect string value: '\x80I' for column `test`.`t1`.`a` at row 42
Warning 1366 Incorrect string value: '\x80J' for column 'a' at row 43 Warning 1366 Incorrect string value: '\x80J' for column `test`.`t1`.`a` at row 43
Warning 1366 Incorrect string value: '\x80K' for column 'a' at row 44 Warning 1366 Incorrect string value: '\x80K' for column `test`.`t1`.`a` at row 44
Warning 1366 Incorrect string value: '\x80L' for column 'a' at row 45 Warning 1366 Incorrect string value: '\x80L' for column `test`.`t1`.`a` at row 45
Warning 1366 Incorrect string value: '\x80M' for column 'a' at row 46 Warning 1366 Incorrect string value: '\x80M' for column `test`.`t1`.`a` at row 46
Warning 1366 Incorrect string value: '\x80N' for column 'a' at row 47 Warning 1366 Incorrect string value: '\x80N' for column `test`.`t1`.`a` at row 47
Warning 1366 Incorrect string value: '\x80O' for column 'a' at row 48 Warning 1366 Incorrect string value: '\x80O' for column `test`.`t1`.`a` at row 48
Warning 1366 Incorrect string value: '\x80P' for column 'a' at row 49 Warning 1366 Incorrect string value: '\x80P' for column `test`.`t1`.`a` at row 49
Warning 1366 Incorrect string value: '\x80Q' for column 'a' at row 50 Warning 1366 Incorrect string value: '\x80Q' for column `test`.`t1`.`a` at row 50
Warning 1366 Incorrect string value: '\x80R' for column 'a' at row 51 Warning 1366 Incorrect string value: '\x80R' for column `test`.`t1`.`a` at row 51
Warning 1366 Incorrect string value: '\x80S' for column 'a' at row 52 Warning 1366 Incorrect string value: '\x80S' for column `test`.`t1`.`a` at row 52
Warning 1366 Incorrect string value: '\x80T' for column 'a' at row 53 Warning 1366 Incorrect string value: '\x80T' for column `test`.`t1`.`a` at row 53
Warning 1366 Incorrect string value: '\x80U' for column 'a' at row 54 Warning 1366 Incorrect string value: '\x80U' for column `test`.`t1`.`a` at row 54
Warning 1366 Incorrect string value: '\x80V' for column 'a' at row 55 Warning 1366 Incorrect string value: '\x80V' for column `test`.`t1`.`a` at row 55
Warning 1366 Incorrect string value: '\x80W' for column 'a' at row 56 Warning 1366 Incorrect string value: '\x80W' for column `test`.`t1`.`a` at row 56
Warning 1366 Incorrect string value: '\x80X' for column 'a' at row 57 Warning 1366 Incorrect string value: '\x80X' for column `test`.`t1`.`a` at row 57
Warning 1366 Incorrect string value: '\x80Y' for column 'a' at row 58 Warning 1366 Incorrect string value: '\x80Y' for column `test`.`t1`.`a` at row 58
Warning 1366 Incorrect string value: '\x80Z' for column 'a' at row 59 Warning 1366 Incorrect string value: '\x80Z' for column `test`.`t1`.`a` at row 59
Warning 1366 Incorrect string value: '\x80[' for column 'a' at row 60 Warning 1366 Incorrect string value: '\x80[' for column `test`.`t1`.`a` at row 60
Warning 1366 Incorrect string value: '\x80\' for column 'a' at row 61 Warning 1366 Incorrect string value: '\x80\' for column `test`.`t1`.`a` at row 61
Warning 1366 Incorrect string value: '\x80]' for column 'a' at row 62 Warning 1366 Incorrect string value: '\x80]' for column `test`.`t1`.`a` at row 62
Warning 1366 Incorrect string value: '\x80^' for column 'a' at row 63 Warning 1366 Incorrect string value: '\x80^' for column `test`.`t1`.`a` at row 63
Warning 1366 Incorrect string value: '\x80_' for column 'a' at row 64 Warning 1366 Incorrect string value: '\x80_' for column `test`.`t1`.`a` at row 64
SELECT COUNT(*) FROM t1; SELECT COUNT(*) FROM t1;
COUNT(*) COUNT(*)
14623 14623

View File

@ -6743,13 +6743,13 @@ INSERT INTO t1 (ch) VALUES ('admin'),('admin1');
SELECT ch FROM t1 WHERE ch='admin𝌆'; SELECT ch FROM t1 WHERE ch='admin𝌆';
ch ch
Warnings: Warnings:
Warning 1366 Incorrect string value: '\xF0\x9D\x8C\x86' for column 'ch' at row 1 Warning 1366 Incorrect string value: '\xF0\x9D\x8C\x86' for column `test`.`t1`.`ch` at row 1
SELECT ch FROM t1 IGNORE KEY (ch) WHERE ch='admin𝌆'; SELECT ch FROM t1 IGNORE KEY (ch) WHERE ch='admin𝌆';
ch ch
SELECT ch FROM t1 FORCE KEY (ch) WHERE ch='admin𝌆'; SELECT ch FROM t1 FORCE KEY (ch) WHERE ch='admin𝌆';
ch ch
Warnings: Warnings:
Warning 1366 Incorrect string value: '\xF0\x9D\x8C\x86' for column 'ch' at row 1 Warning 1366 Incorrect string value: '\xF0\x9D\x8C\x86' for column `test`.`t1`.`ch` at row 1
DELETE FROM t1; DELETE FROM t1;
INSERT INTO t1 (ch) VALUES ('a'), ('a?'), ('a??'), ('a???'), ('a????'); INSERT INTO t1 (ch) VALUES ('a'), ('a?'), ('a??'), ('a???'), ('a????');
INSERT INTO t1 (ch) VALUES ('ab'),('a?b'),('a??b'),('a???b'),('a????b'); INSERT INTO t1 (ch) VALUES ('ab'),('a?b'),('a??b'),('a???b'),('a????b');
@ -6766,21 +6766,21 @@ SELECT ch FROM t1 FORCE KEY (ch) WHERE ch='a𝌆' ORDER BY ch;
id select_type table type possible_keys key key_len ref rows Extra id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE NULL NULL NULL NULL NULL NULL # Impossible WHERE noticed after reading const tables 1 SIMPLE NULL NULL NULL NULL NULL NULL # Impossible WHERE noticed after reading const tables
Warnings: Warnings:
Warning 1366 Incorrect string value: '\xF0\x9D\x8C\x86' for column 'ch' at row 1 Warning 1366 Incorrect string value: '\xF0\x9D\x8C\x86' for column `test`.`t1`.`ch` at row 1
SELECT ch FROM t1 FORCE KEY (ch) WHERE ch='a𝌆' ORDER BY ch; SELECT ch FROM t1 FORCE KEY (ch) WHERE ch='a𝌆' ORDER BY ch;
ch ch
Warnings: Warnings:
Warning 1366 Incorrect string value: '\xF0\x9D\x8C\x86' for column 'ch' at row 1 Warning 1366 Incorrect string value: '\xF0\x9D\x8C\x86' for column `test`.`t1`.`ch` at row 1
EXPLAIN EXPLAIN
SELECT ch FROM t1 FORCE KEY (ch) WHERE ch='a𝌆b' ORDER BY ch; SELECT ch FROM t1 FORCE KEY (ch) WHERE ch='a𝌆b' ORDER BY ch;
id select_type table type possible_keys key key_len ref rows Extra id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE NULL NULL NULL NULL NULL NULL # Impossible WHERE noticed after reading const tables 1 SIMPLE NULL NULL NULL NULL NULL NULL # Impossible WHERE noticed after reading const tables
Warnings: Warnings:
Warning 1366 Incorrect string value: '\xF0\x9D\x8C\x86b' for column 'ch' at row 1 Warning 1366 Incorrect string value: '\xF0\x9D\x8C\x86b' for column `test`.`t1`.`ch` at row 1
SELECT ch FROM t1 FORCE KEY (ch) WHERE ch='a𝌆b' ORDER BY ch; SELECT ch FROM t1 FORCE KEY (ch) WHERE ch='a𝌆b' ORDER BY ch;
ch ch
Warnings: Warnings:
Warning 1366 Incorrect string value: '\xF0\x9D\x8C\x86b' for column 'ch' at row 1 Warning 1366 Incorrect string value: '\xF0\x9D\x8C\x86b' for column `test`.`t1`.`ch` at row 1
SELECT ch FROM t1 IGNORE KEY (ch) WHERE ch<'a𝌆' ORDER BY ch; SELECT ch FROM t1 IGNORE KEY (ch) WHERE ch<'a𝌆' ORDER BY ch;
ch ch
a a
@ -6824,7 +6824,7 @@ SELECT ch FROM t1 FORCE KEY (ch) WHERE ch<'a𝌆' ORDER BY ch;
id select_type table type possible_keys key key_len ref rows Extra id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE t1 index ch ch 183 NULL # Using where; Using index 1 SIMPLE t1 index ch ch 183 NULL # Using where; Using index
Warnings: Warnings:
Warning 1366 Incorrect string value: '\xF0\x9D\x8C\x86' for column 'ch' at row 1 Warning 1366 Incorrect string value: '\xF0\x9D\x8C\x86' for column `test`.`t1`.`ch` at row 1
SELECT ch FROM t1 FORCE KEY (ch) WHERE ch<'a𝌆' ORDER BY ch; SELECT ch FROM t1 FORCE KEY (ch) WHERE ch<'a𝌆' ORDER BY ch;
ch ch
a a
@ -6845,13 +6845,13 @@ az
Warnings: Warnings:
Warning 1366 Incorrect string value: '\xF0\x9D\x8C\x86' for column 'ch' at row 1 Warning 1366 Incorrect string value: '\xF0\x9D\x8C\x86' for column `test`.`t1`.`ch` at row 1
EXPLAIN EXPLAIN
SELECT ch FROM t1 FORCE KEY (ch) WHERE ch<'a𝌆b' ORDER BY ch; SELECT ch FROM t1 FORCE KEY (ch) WHERE ch<'a𝌆b' ORDER BY ch;
id select_type table type possible_keys key key_len ref rows Extra id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE t1 index ch ch 183 NULL # Using where; Using index 1 SIMPLE t1 index ch ch 183 NULL # Using where; Using index
Warnings: Warnings:
Warning 1366 Incorrect string value: '\xF0\x9D\x8C\x86b' for column 'ch' at row 1 Warning 1366 Incorrect string value: '\xF0\x9D\x8C\x86b' for column `test`.`t1`.`ch` at row 1
SELECT ch FROM t1 FORCE KEY (ch) WHERE ch<'a𝌆b' ORDER BY ch; SELECT ch FROM t1 FORCE KEY (ch) WHERE ch<'a𝌆b' ORDER BY ch;
ch ch
a a
@ -6872,7 +6872,7 @@ az
Warnings: Warnings:
Warning 1366 Incorrect string value: '\xF0\x9D\x8C\x86b' for column 'ch' at row 1 Warning 1366 Incorrect string value: '\xF0\x9D\x8C\x86b' for column `test`.`t1`.`ch` at row 1
SELECT ch FROM t1 IGNORE KEY (ch) WHERE ch>'a𝌆' ORDER BY ch; SELECT ch FROM t1 IGNORE KEY (ch) WHERE ch>'a𝌆' ORDER BY ch;
ch ch
z z
@ -6884,23 +6884,23 @@ SELECT ch FROM t1 FORCE KEY (ch) WHERE ch>'a𝌆' ORDER BY ch;
id select_type table type possible_keys key key_len ref rows Extra id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE t1 index ch ch 183 NULL # Using where; Using index 1 SIMPLE t1 index ch ch 183 NULL # Using where; Using index
Warnings: Warnings:
Warning 1366 Incorrect string value: '\xF0\x9D\x8C\x86' for column 'ch' at row 1 Warning 1366 Incorrect string value: '\xF0\x9D\x8C\x86' for column `test`.`t1`.`ch` at row 1
SELECT ch FROM t1 FORCE KEY (ch) WHERE ch>'a𝌆' ORDER BY ch; SELECT ch FROM t1 FORCE KEY (ch) WHERE ch>'a𝌆' ORDER BY ch;
ch ch
z z
Warnings: Warnings:
Warning 1366 Incorrect string value: '\xF0\x9D\x8C\x86' for column 'ch' at row 1 Warning 1366 Incorrect string value: '\xF0\x9D\x8C\x86' for column `test`.`t1`.`ch` at row 1
EXPLAIN EXPLAIN
SELECT ch FROM t1 FORCE KEY (ch) WHERE ch>'a𝌆b' ORDER BY ch; SELECT ch FROM t1 FORCE KEY (ch) WHERE ch>'a𝌆b' ORDER BY ch;
id select_type table type possible_keys key key_len ref rows Extra id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE t1 index ch ch 183 NULL # Using where; Using index 1 SIMPLE t1 index ch ch 183 NULL # Using where; Using index
Warnings: Warnings:
Warning 1366 Incorrect string value: '\xF0\x9D\x8C\x86b' for column 'ch' at row 1 Warning 1366 Incorrect string value: '\xF0\x9D\x8C\x86b' for column `test`.`t1`.`ch` at row 1
SELECT ch FROM t1 FORCE KEY (ch) WHERE ch>'a𝌆b' ORDER BY ch; SELECT ch FROM t1 FORCE KEY (ch) WHERE ch>'a𝌆b' ORDER BY ch;
ch ch
z z
Warnings: Warnings:
Warning 1366 Incorrect string value: '\xF0\x9D\x8C\x86b' for column 'ch' at row 1 Warning 1366 Incorrect string value: '\xF0\x9D\x8C\x86b' for column `test`.`t1`.`ch` at row 1
ALTER TABLE t1 DROP KEY ch; ALTER TABLE t1 DROP KEY ch;
# 0xD18F would be a good 2-byte character, 0xD1 is an incomplete sequence # 0xD18F would be a good 2-byte character, 0xD1 is an incomplete sequence
SET @query=CONCAT('SELECT ch FROM t1 WHERE ch=''a', 0xD1,''''); SET @query=CONCAT('SELECT ch FROM t1 WHERE ch=''a', 0xD1,'''');
@ -6987,13 +6987,13 @@ INSERT INTO t1 (ch) VALUES ('admin'),('admin1');
SELECT ch FROM t1 WHERE ch='admin𝌆'; SELECT ch FROM t1 WHERE ch='admin𝌆';
ch ch
Warnings: Warnings:
Warning 1366 Incorrect string value: '\xF0\x9D\x8C\x86' for column 'ch' at row 1 Warning 1366 Incorrect string value: '\xF0\x9D\x8C\x86' for column `test`.`t1`.`ch` at row 1
SELECT ch FROM t1 IGNORE KEY (ch) WHERE ch='admin𝌆'; SELECT ch FROM t1 IGNORE KEY (ch) WHERE ch='admin𝌆';
ch ch
SELECT ch FROM t1 FORCE KEY (ch) WHERE ch='admin𝌆'; SELECT ch FROM t1 FORCE KEY (ch) WHERE ch='admin𝌆';
ch ch
Warnings: Warnings:
Warning 1366 Incorrect string value: '\xF0\x9D\x8C\x86' for column 'ch' at row 1 Warning 1366 Incorrect string value: '\xF0\x9D\x8C\x86' for column `test`.`t1`.`ch` at row 1
DELETE FROM t1; DELETE FROM t1;
INSERT INTO t1 (ch) VALUES ('a'), ('a?'), ('a??'), ('a???'), ('a????'); INSERT INTO t1 (ch) VALUES ('a'), ('a?'), ('a??'), ('a???'), ('a????');
INSERT INTO t1 (ch) VALUES ('ab'),('a?b'),('a??b'),('a???b'),('a????b'); INSERT INTO t1 (ch) VALUES ('ab'),('a?b'),('a??b'),('a???b'),('a????b');
@ -7010,21 +7010,21 @@ SELECT ch FROM t1 FORCE KEY (ch) WHERE ch='a𝌆' ORDER BY ch;
id select_type table type possible_keys key key_len ref rows Extra id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE NULL NULL NULL NULL NULL NULL # Impossible WHERE noticed after reading const tables 1 SIMPLE NULL NULL NULL NULL NULL NULL # Impossible WHERE noticed after reading const tables
Warnings: Warnings:
Warning 1366 Incorrect string value: '\xF0\x9D\x8C\x86' for column 'ch' at row 1 Warning 1366 Incorrect string value: '\xF0\x9D\x8C\x86' for column `test`.`t1`.`ch` at row 1
SELECT ch FROM t1 FORCE KEY (ch) WHERE ch='a𝌆' ORDER BY ch; SELECT ch FROM t1 FORCE KEY (ch) WHERE ch='a𝌆' ORDER BY ch;
ch ch
Warnings: Warnings:
Warning 1366 Incorrect string value: '\xF0\x9D\x8C\x86' for column 'ch' at row 1 Warning 1366 Incorrect string value: '\xF0\x9D\x8C\x86' for column `test`.`t1`.`ch` at row 1
EXPLAIN EXPLAIN
SELECT ch FROM t1 FORCE KEY (ch) WHERE ch='a𝌆b' ORDER BY ch; SELECT ch FROM t1 FORCE KEY (ch) WHERE ch='a𝌆b' ORDER BY ch;
id select_type table type possible_keys key key_len ref rows Extra id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE NULL NULL NULL NULL NULL NULL # Impossible WHERE noticed after reading const tables 1 SIMPLE NULL NULL NULL NULL NULL NULL # Impossible WHERE noticed after reading const tables
Warnings: Warnings:
Warning 1366 Incorrect string value: '\xF0\x9D\x8C\x86b' for column 'ch' at row 1 Warning 1366 Incorrect string value: '\xF0\x9D\x8C\x86b' for column `test`.`t1`.`ch` at row 1
SELECT ch FROM t1 FORCE KEY (ch) WHERE ch='a𝌆b' ORDER BY ch; SELECT ch FROM t1 FORCE KEY (ch) WHERE ch='a𝌆b' ORDER BY ch;
ch ch
Warnings: Warnings:
Warning 1366 Incorrect string value: '\xF0\x9D\x8C\x86b' for column 'ch' at row 1 Warning 1366 Incorrect string value: '\xF0\x9D\x8C\x86b' for column `test`.`t1`.`ch` at row 1
SELECT ch FROM t1 IGNORE KEY (ch) WHERE ch<'a𝌆' ORDER BY ch; SELECT ch FROM t1 IGNORE KEY (ch) WHERE ch<'a𝌆' ORDER BY ch;
ch ch
a a

View File

@ -24,13 +24,13 @@ INSERT INTO t1 (ch) VALUES ('admin'),('admin1');
SELECT ch FROM t1 WHERE ch='admin𝌆'; SELECT ch FROM t1 WHERE ch='admin𝌆';
ch ch
Warnings: Warnings:
Warning 1366 Incorrect string value: '\xF0\x9D\x8C\x86' for column 'ch' at row 1 Warning 1366 Incorrect string value: '\xF0\x9D\x8C\x86' for column `test`.`t1`.`ch` at row 1
SELECT ch FROM t1 IGNORE KEY (ch) WHERE ch='admin𝌆'; SELECT ch FROM t1 IGNORE KEY (ch) WHERE ch='admin𝌆';
ch ch
SELECT ch FROM t1 FORCE KEY (ch) WHERE ch='admin𝌆'; SELECT ch FROM t1 FORCE KEY (ch) WHERE ch='admin𝌆';
ch ch
Warnings: Warnings:
Warning 1366 Incorrect string value: '\xF0\x9D\x8C\x86' for column 'ch' at row 1 Warning 1366 Incorrect string value: '\xF0\x9D\x8C\x86' for column `test`.`t1`.`ch` at row 1
DELETE FROM t1; DELETE FROM t1;
INSERT INTO t1 (ch) VALUES ('a'), ('a?'), ('a??'), ('a???'), ('a????'); INSERT INTO t1 (ch) VALUES ('a'), ('a?'), ('a??'), ('a???'), ('a????');
INSERT INTO t1 (ch) VALUES ('ab'),('a?b'),('a??b'),('a???b'),('a????b'); INSERT INTO t1 (ch) VALUES ('ab'),('a?b'),('a??b'),('a???b'),('a????b');
@ -47,21 +47,21 @@ SELECT ch FROM t1 FORCE KEY (ch) WHERE ch='a𝌆' ORDER BY ch;
id select_type table type possible_keys key key_len ref rows Extra id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE NULL NULL NULL NULL NULL NULL # Impossible WHERE noticed after reading const tables 1 SIMPLE NULL NULL NULL NULL NULL NULL # Impossible WHERE noticed after reading const tables
Warnings: Warnings:
Warning 1366 Incorrect string value: '\xF0\x9D\x8C\x86' for column 'ch' at row 1 Warning 1366 Incorrect string value: '\xF0\x9D\x8C\x86' for column `test`.`t1`.`ch` at row 1
SELECT ch FROM t1 FORCE KEY (ch) WHERE ch='a𝌆' ORDER BY ch; SELECT ch FROM t1 FORCE KEY (ch) WHERE ch='a𝌆' ORDER BY ch;
ch ch
Warnings: Warnings:
Warning 1366 Incorrect string value: '\xF0\x9D\x8C\x86' for column 'ch' at row 1 Warning 1366 Incorrect string value: '\xF0\x9D\x8C\x86' for column `test`.`t1`.`ch` at row 1
EXPLAIN EXPLAIN
SELECT ch FROM t1 FORCE KEY (ch) WHERE ch='a𝌆b' ORDER BY ch; SELECT ch FROM t1 FORCE KEY (ch) WHERE ch='a𝌆b' ORDER BY ch;
id select_type table type possible_keys key key_len ref rows Extra id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE NULL NULL NULL NULL NULL NULL # Impossible WHERE noticed after reading const tables 1 SIMPLE NULL NULL NULL NULL NULL NULL # Impossible WHERE noticed after reading const tables
Warnings: Warnings:
Warning 1366 Incorrect string value: '\xF0\x9D\x8C\x86b' for column 'ch' at row 1 Warning 1366 Incorrect string value: '\xF0\x9D\x8C\x86b' for column `test`.`t1`.`ch` at row 1
SELECT ch FROM t1 FORCE KEY (ch) WHERE ch='a𝌆b' ORDER BY ch; SELECT ch FROM t1 FORCE KEY (ch) WHERE ch='a𝌆b' ORDER BY ch;
ch ch
Warnings: Warnings:
Warning 1366 Incorrect string value: '\xF0\x9D\x8C\x86b' for column 'ch' at row 1 Warning 1366 Incorrect string value: '\xF0\x9D\x8C\x86b' for column `test`.`t1`.`ch` at row 1
SELECT ch FROM t1 IGNORE KEY (ch) WHERE ch<'a𝌆' ORDER BY ch; SELECT ch FROM t1 IGNORE KEY (ch) WHERE ch<'a𝌆' ORDER BY ch;
ch ch
a a
@ -105,7 +105,7 @@ SELECT ch FROM t1 FORCE KEY (ch) WHERE ch<'a𝌆' ORDER BY ch;
id select_type table type possible_keys key key_len ref rows Extra id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE t1 index ch ch 183 NULL # Using where; Using index 1 SIMPLE t1 index ch ch 183 NULL # Using where; Using index
Warnings: Warnings:
Warning 1366 Incorrect string value: '\xF0\x9D\x8C\x86' for column 'ch' at row 1 Warning 1366 Incorrect string value: '\xF0\x9D\x8C\x86' for column `test`.`t1`.`ch` at row 1
SELECT ch FROM t1 FORCE KEY (ch) WHERE ch<'a𝌆' ORDER BY ch; SELECT ch FROM t1 FORCE KEY (ch) WHERE ch<'a𝌆' ORDER BY ch;
ch ch
a a
@ -126,13 +126,13 @@ az
Warnings: Warnings:
Warning 1366 Incorrect string value: '\xF0\x9D\x8C\x86' for column 'ch' at row 1 Warning 1366 Incorrect string value: '\xF0\x9D\x8C\x86' for column `test`.`t1`.`ch` at row 1
EXPLAIN EXPLAIN
SELECT ch FROM t1 FORCE KEY (ch) WHERE ch<'a𝌆b' ORDER BY ch; SELECT ch FROM t1 FORCE KEY (ch) WHERE ch<'a𝌆b' ORDER BY ch;
id select_type table type possible_keys key key_len ref rows Extra id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE t1 index ch ch 183 NULL # Using where; Using index 1 SIMPLE t1 index ch ch 183 NULL # Using where; Using index
Warnings: Warnings:
Warning 1366 Incorrect string value: '\xF0\x9D\x8C\x86b' for column 'ch' at row 1 Warning 1366 Incorrect string value: '\xF0\x9D\x8C\x86b' for column `test`.`t1`.`ch` at row 1
SELECT ch FROM t1 FORCE KEY (ch) WHERE ch<'a𝌆b' ORDER BY ch; SELECT ch FROM t1 FORCE KEY (ch) WHERE ch<'a𝌆b' ORDER BY ch;
ch ch
a a
@ -153,7 +153,7 @@ az
Warnings: Warnings:
Warning 1366 Incorrect string value: '\xF0\x9D\x8C\x86b' for column 'ch' at row 1 Warning 1366 Incorrect string value: '\xF0\x9D\x8C\x86b' for column `test`.`t1`.`ch` at row 1
SELECT ch FROM t1 IGNORE KEY (ch) WHERE ch>'a𝌆' ORDER BY ch; SELECT ch FROM t1 IGNORE KEY (ch) WHERE ch>'a𝌆' ORDER BY ch;
ch ch
z z
@ -165,23 +165,23 @@ SELECT ch FROM t1 FORCE KEY (ch) WHERE ch>'a𝌆' ORDER BY ch;
id select_type table type possible_keys key key_len ref rows Extra id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE t1 index ch ch 183 NULL # Using where; Using index 1 SIMPLE t1 index ch ch 183 NULL # Using where; Using index
Warnings: Warnings:
Warning 1366 Incorrect string value: '\xF0\x9D\x8C\x86' for column 'ch' at row 1 Warning 1366 Incorrect string value: '\xF0\x9D\x8C\x86' for column `test`.`t1`.`ch` at row 1
SELECT ch FROM t1 FORCE KEY (ch) WHERE ch>'a𝌆' ORDER BY ch; SELECT ch FROM t1 FORCE KEY (ch) WHERE ch>'a𝌆' ORDER BY ch;
ch ch
z z
Warnings: Warnings:
Warning 1366 Incorrect string value: '\xF0\x9D\x8C\x86' for column 'ch' at row 1 Warning 1366 Incorrect string value: '\xF0\x9D\x8C\x86' for column `test`.`t1`.`ch` at row 1
EXPLAIN EXPLAIN
SELECT ch FROM t1 FORCE KEY (ch) WHERE ch>'a𝌆b' ORDER BY ch; SELECT ch FROM t1 FORCE KEY (ch) WHERE ch>'a𝌆b' ORDER BY ch;
id select_type table type possible_keys key key_len ref rows Extra id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE t1 index ch ch 183 NULL # Using where; Using index 1 SIMPLE t1 index ch ch 183 NULL # Using where; Using index
Warnings: Warnings:
Warning 1366 Incorrect string value: '\xF0\x9D\x8C\x86b' for column 'ch' at row 1 Warning 1366 Incorrect string value: '\xF0\x9D\x8C\x86b' for column `test`.`t1`.`ch` at row 1
SELECT ch FROM t1 FORCE KEY (ch) WHERE ch>'a𝌆b' ORDER BY ch; SELECT ch FROM t1 FORCE KEY (ch) WHERE ch>'a𝌆b' ORDER BY ch;
ch ch
z z
Warnings: Warnings:
Warning 1366 Incorrect string value: '\xF0\x9D\x8C\x86b' for column 'ch' at row 1 Warning 1366 Incorrect string value: '\xF0\x9D\x8C\x86b' for column `test`.`t1`.`ch` at row 1
ALTER TABLE t1 DROP KEY ch; ALTER TABLE t1 DROP KEY ch;
# 0xD18F would be a good 2-byte character, 0xD1 is an incomplete sequence # 0xD18F would be a good 2-byte character, 0xD1 is an incomplete sequence
SET @query=CONCAT('SELECT ch FROM t1 WHERE ch=''a', 0xD1,''''); SET @query=CONCAT('SELECT ch FROM t1 WHERE ch=''a', 0xD1,'''');

View File

@ -5404,7 +5404,7 @@ ERROR 22003: Out of range value for column 'a' at row 1
SET sql_mode=DEFAULT; SET sql_mode=DEFAULT;
INSERT IGNORE INTO t1 VALUES (CONVERT('aaa' USING ucs2)); INSERT IGNORE INTO t1 VALUES (CONVERT('aaa' USING ucs2));
Warnings: Warnings:
Warning 1366 Incorrect decimal value: 'aaa' for column 'a' at row 1 Warning 1366 Incorrect decimal value: 'aaa' for column `test`.`t1`.`a` at row 1
DROP TABLE t1; DROP TABLE t1;
# #
# End of 5.6 tests # End of 5.6 tests

View File

@ -2571,70 +2571,70 @@ t1 CREATE TABLE `t1` (
) ENGINE=MyISAM DEFAULT CHARSET=latin1 ) ENGINE=MyISAM DEFAULT CHARSET=latin1
UPDATE IGNORE t1 SET a=unhex(code) ORDER BY code; UPDATE IGNORE t1 SET a=unhex(code) ORDER BY code;
Warnings: Warnings:
Warning 1366 Incorrect string value: '\x80 ' for column 'a' at row 1 Warning 1366 Incorrect string value: '\x80 ' for column `test`.`t1`.`a` at row 1
Warning 1366 Incorrect string value: '\x80!' for column 'a' at row 2 Warning 1366 Incorrect string value: '\x80!' for column `test`.`t1`.`a` at row 2
Warning 1366 Incorrect string value: '\x80"' for column 'a' at row 3 Warning 1366 Incorrect string value: '\x80"' for column `test`.`t1`.`a` at row 3
Warning 1366 Incorrect string value: '\x80#' for column 'a' at row 4 Warning 1366 Incorrect string value: '\x80#' for column `test`.`t1`.`a` at row 4
Warning 1366 Incorrect string value: '\x80$' for column 'a' at row 5 Warning 1366 Incorrect string value: '\x80$' for column `test`.`t1`.`a` at row 5
Warning 1366 Incorrect string value: '\x80%' for column 'a' at row 6 Warning 1366 Incorrect string value: '\x80%' for column `test`.`t1`.`a` at row 6
Warning 1366 Incorrect string value: '\x80&' for column 'a' at row 7 Warning 1366 Incorrect string value: '\x80&' for column `test`.`t1`.`a` at row 7
Warning 1366 Incorrect string value: '\x80'' for column 'a' at row 8 Warning 1366 Incorrect string value: '\x80'' for column `test`.`t1`.`a` at row 8
Warning 1366 Incorrect string value: '\x80(' for column 'a' at row 9 Warning 1366 Incorrect string value: '\x80(' for column `test`.`t1`.`a` at row 9
Warning 1366 Incorrect string value: '\x80)' for column 'a' at row 10 Warning 1366 Incorrect string value: '\x80)' for column `test`.`t1`.`a` at row 10
Warning 1366 Incorrect string value: '\x80*' for column 'a' at row 11 Warning 1366 Incorrect string value: '\x80*' for column `test`.`t1`.`a` at row 11
Warning 1366 Incorrect string value: '\x80+' for column 'a' at row 12 Warning 1366 Incorrect string value: '\x80+' for column `test`.`t1`.`a` at row 12
Warning 1366 Incorrect string value: '\x80,' for column 'a' at row 13 Warning 1366 Incorrect string value: '\x80,' for column `test`.`t1`.`a` at row 13
Warning 1366 Incorrect string value: '\x80-' for column 'a' at row 14 Warning 1366 Incorrect string value: '\x80-' for column `test`.`t1`.`a` at row 14
Warning 1366 Incorrect string value: '\x80.' for column 'a' at row 15 Warning 1366 Incorrect string value: '\x80.' for column `test`.`t1`.`a` at row 15
Warning 1366 Incorrect string value: '\x80/' for column 'a' at row 16 Warning 1366 Incorrect string value: '\x80/' for column `test`.`t1`.`a` at row 16
Warning 1366 Incorrect string value: '\x800' for column 'a' at row 17 Warning 1366 Incorrect string value: '\x800' for column `test`.`t1`.`a` at row 17
Warning 1366 Incorrect string value: '\x801' for column 'a' at row 18 Warning 1366 Incorrect string value: '\x801' for column `test`.`t1`.`a` at row 18
Warning 1366 Incorrect string value: '\x802' for column 'a' at row 19 Warning 1366 Incorrect string value: '\x802' for column `test`.`t1`.`a` at row 19
Warning 1366 Incorrect string value: '\x803' for column 'a' at row 20 Warning 1366 Incorrect string value: '\x803' for column `test`.`t1`.`a` at row 20
Warning 1366 Incorrect string value: '\x804' for column 'a' at row 21 Warning 1366 Incorrect string value: '\x804' for column `test`.`t1`.`a` at row 21
Warning 1366 Incorrect string value: '\x805' for column 'a' at row 22 Warning 1366 Incorrect string value: '\x805' for column `test`.`t1`.`a` at row 22
Warning 1366 Incorrect string value: '\x806' for column 'a' at row 23 Warning 1366 Incorrect string value: '\x806' for column `test`.`t1`.`a` at row 23
Warning 1366 Incorrect string value: '\x807' for column 'a' at row 24 Warning 1366 Incorrect string value: '\x807' for column `test`.`t1`.`a` at row 24
Warning 1366 Incorrect string value: '\x808' for column 'a' at row 25 Warning 1366 Incorrect string value: '\x808' for column `test`.`t1`.`a` at row 25
Warning 1366 Incorrect string value: '\x809' for column 'a' at row 26 Warning 1366 Incorrect string value: '\x809' for column `test`.`t1`.`a` at row 26
Warning 1366 Incorrect string value: '\x80:' for column 'a' at row 27 Warning 1366 Incorrect string value: '\x80:' for column `test`.`t1`.`a` at row 27
Warning 1366 Incorrect string value: '\x80;' for column 'a' at row 28 Warning 1366 Incorrect string value: '\x80;' for column `test`.`t1`.`a` at row 28
Warning 1366 Incorrect string value: '\x80<' for column 'a' at row 29 Warning 1366 Incorrect string value: '\x80<' for column `test`.`t1`.`a` at row 29
Warning 1366 Incorrect string value: '\x80=' for column 'a' at row 30 Warning 1366 Incorrect string value: '\x80=' for column `test`.`t1`.`a` at row 30
Warning 1366 Incorrect string value: '\x80>' for column 'a' at row 31 Warning 1366 Incorrect string value: '\x80>' for column `test`.`t1`.`a` at row 31
Warning 1366 Incorrect string value: '\x80?' for column 'a' at row 32 Warning 1366 Incorrect string value: '\x80?' for column `test`.`t1`.`a` at row 32
Warning 1366 Incorrect string value: '\x80@' for column 'a' at row 33 Warning 1366 Incorrect string value: '\x80@' for column `test`.`t1`.`a` at row 33
Warning 1366 Incorrect string value: '\x80A' for column 'a' at row 34 Warning 1366 Incorrect string value: '\x80A' for column `test`.`t1`.`a` at row 34
Warning 1366 Incorrect string value: '\x80B' for column 'a' at row 35 Warning 1366 Incorrect string value: '\x80B' for column `test`.`t1`.`a` at row 35
Warning 1366 Incorrect string value: '\x80C' for column 'a' at row 36 Warning 1366 Incorrect string value: '\x80C' for column `test`.`t1`.`a` at row 36
Warning 1366 Incorrect string value: '\x80D' for column 'a' at row 37 Warning 1366 Incorrect string value: '\x80D' for column `test`.`t1`.`a` at row 37
Warning 1366 Incorrect string value: '\x80E' for column 'a' at row 38 Warning 1366 Incorrect string value: '\x80E' for column `test`.`t1`.`a` at row 38
Warning 1366 Incorrect string value: '\x80F' for column 'a' at row 39 Warning 1366 Incorrect string value: '\x80F' for column `test`.`t1`.`a` at row 39
Warning 1366 Incorrect string value: '\x80G' for column 'a' at row 40 Warning 1366 Incorrect string value: '\x80G' for column `test`.`t1`.`a` at row 40
Warning 1366 Incorrect string value: '\x80H' for column 'a' at row 41 Warning 1366 Incorrect string value: '\x80H' for column `test`.`t1`.`a` at row 41
Warning 1366 Incorrect string value: '\x80I' for column 'a' at row 42 Warning 1366 Incorrect string value: '\x80I' for column `test`.`t1`.`a` at row 42
Warning 1366 Incorrect string value: '\x80J' for column 'a' at row 43 Warning 1366 Incorrect string value: '\x80J' for column `test`.`t1`.`a` at row 43
Warning 1366 Incorrect string value: '\x80K' for column 'a' at row 44 Warning 1366 Incorrect string value: '\x80K' for column `test`.`t1`.`a` at row 44
Warning 1366 Incorrect string value: '\x80L' for column 'a' at row 45 Warning 1366 Incorrect string value: '\x80L' for column `test`.`t1`.`a` at row 45
Warning 1366 Incorrect string value: '\x80M' for column 'a' at row 46 Warning 1366 Incorrect string value: '\x80M' for column `test`.`t1`.`a` at row 46
Warning 1366 Incorrect string value: '\x80N' for column 'a' at row 47 Warning 1366 Incorrect string value: '\x80N' for column `test`.`t1`.`a` at row 47
Warning 1366 Incorrect string value: '\x80O' for column 'a' at row 48 Warning 1366 Incorrect string value: '\x80O' for column `test`.`t1`.`a` at row 48
Warning 1366 Incorrect string value: '\x80P' for column 'a' at row 49 Warning 1366 Incorrect string value: '\x80P' for column `test`.`t1`.`a` at row 49
Warning 1366 Incorrect string value: '\x80Q' for column 'a' at row 50 Warning 1366 Incorrect string value: '\x80Q' for column `test`.`t1`.`a` at row 50
Warning 1366 Incorrect string value: '\x80R' for column 'a' at row 51 Warning 1366 Incorrect string value: '\x80R' for column `test`.`t1`.`a` at row 51
Warning 1366 Incorrect string value: '\x80S' for column 'a' at row 52 Warning 1366 Incorrect string value: '\x80S' for column `test`.`t1`.`a` at row 52
Warning 1366 Incorrect string value: '\x80T' for column 'a' at row 53 Warning 1366 Incorrect string value: '\x80T' for column `test`.`t1`.`a` at row 53
Warning 1366 Incorrect string value: '\x80U' for column 'a' at row 54 Warning 1366 Incorrect string value: '\x80U' for column `test`.`t1`.`a` at row 54
Warning 1366 Incorrect string value: '\x80V' for column 'a' at row 55 Warning 1366 Incorrect string value: '\x80V' for column `test`.`t1`.`a` at row 55
Warning 1366 Incorrect string value: '\x80W' for column 'a' at row 56 Warning 1366 Incorrect string value: '\x80W' for column `test`.`t1`.`a` at row 56
Warning 1366 Incorrect string value: '\x80X' for column 'a' at row 57 Warning 1366 Incorrect string value: '\x80X' for column `test`.`t1`.`a` at row 57
Warning 1366 Incorrect string value: '\x80Y' for column 'a' at row 58 Warning 1366 Incorrect string value: '\x80Y' for column `test`.`t1`.`a` at row 58
Warning 1366 Incorrect string value: '\x80Z' for column 'a' at row 59 Warning 1366 Incorrect string value: '\x80Z' for column `test`.`t1`.`a` at row 59
Warning 1366 Incorrect string value: '\x80[' for column 'a' at row 60 Warning 1366 Incorrect string value: '\x80[' for column `test`.`t1`.`a` at row 60
Warning 1366 Incorrect string value: '\x80\' for column 'a' at row 61 Warning 1366 Incorrect string value: '\x80\' for column `test`.`t1`.`a` at row 61
Warning 1366 Incorrect string value: '\x80]' for column 'a' at row 62 Warning 1366 Incorrect string value: '\x80]' for column `test`.`t1`.`a` at row 62
Warning 1366 Incorrect string value: '\x80^' for column 'a' at row 63 Warning 1366 Incorrect string value: '\x80^' for column `test`.`t1`.`a` at row 63
Warning 1366 Incorrect string value: '\x80_' for column 'a' at row 64 Warning 1366 Incorrect string value: '\x80_' for column `test`.`t1`.`a` at row 64
SELECT COUNT(*) FROM t1; SELECT COUNT(*) FROM t1;
COUNT(*) COUNT(*)
44671 44671

View File

@ -1140,70 +1140,70 @@ update t1 set name='User defined range #2' where ujis >= 0x8FF5A1 and ujis <= 0x
update t1 set name='UNASSIGNED' where name=''; update t1 set name='UNASSIGNED' where name='';
update ignore t1 set ucs2=ujis, ujis2=ucs2; update ignore t1 set ucs2=ujis, ujis2=ucs2;
Warnings: Warnings:
Warning 1366 Incorrect string value: '\xA2\xAF' for column 'ucs2' at row 237 Warning 1366 Incorrect string value: '\xA2\xAF' for column `test`.`t1`.`ucs2` at row 237
Warning 1366 Incorrect string value: '\xA2\xB0' for column 'ucs2' at row 238 Warning 1366 Incorrect string value: '\xA2\xB0' for column `test`.`t1`.`ucs2` at row 238
Warning 1366 Incorrect string value: '\xA2\xB1' for column 'ucs2' at row 239 Warning 1366 Incorrect string value: '\xA2\xB1' for column `test`.`t1`.`ucs2` at row 239
Warning 1366 Incorrect string value: '\xA2\xB2' for column 'ucs2' at row 240 Warning 1366 Incorrect string value: '\xA2\xB2' for column `test`.`t1`.`ucs2` at row 240
Warning 1366 Incorrect string value: '\xA2\xB3' for column 'ucs2' at row 241 Warning 1366 Incorrect string value: '\xA2\xB3' for column `test`.`t1`.`ucs2` at row 241
Warning 1366 Incorrect string value: '\xA2\xB4' for column 'ucs2' at row 242 Warning 1366 Incorrect string value: '\xA2\xB4' for column `test`.`t1`.`ucs2` at row 242
Warning 1366 Incorrect string value: '\xA2\xB5' for column 'ucs2' at row 243 Warning 1366 Incorrect string value: '\xA2\xB5' for column `test`.`t1`.`ucs2` at row 243
Warning 1366 Incorrect string value: '\xA2\xB6' for column 'ucs2' at row 244 Warning 1366 Incorrect string value: '\xA2\xB6' for column `test`.`t1`.`ucs2` at row 244
Warning 1366 Incorrect string value: '\xA2\xB7' for column 'ucs2' at row 245 Warning 1366 Incorrect string value: '\xA2\xB7' for column `test`.`t1`.`ucs2` at row 245
Warning 1366 Incorrect string value: '\xA2\xB8' for column 'ucs2' at row 246 Warning 1366 Incorrect string value: '\xA2\xB8' for column `test`.`t1`.`ucs2` at row 246
Warning 1366 Incorrect string value: '\xA2\xB9' for column 'ucs2' at row 247 Warning 1366 Incorrect string value: '\xA2\xB9' for column `test`.`t1`.`ucs2` at row 247
Warning 1366 Incorrect string value: '\xA2\xC2' for column 'ucs2' at row 256 Warning 1366 Incorrect string value: '\xA2\xC2' for column `test`.`t1`.`ucs2` at row 256
Warning 1366 Incorrect string value: '\xA2\xC3' for column 'ucs2' at row 257 Warning 1366 Incorrect string value: '\xA2\xC3' for column `test`.`t1`.`ucs2` at row 257
Warning 1366 Incorrect string value: '\xA2\xC4' for column 'ucs2' at row 258 Warning 1366 Incorrect string value: '\xA2\xC4' for column `test`.`t1`.`ucs2` at row 258
Warning 1366 Incorrect string value: '\xA2\xC5' for column 'ucs2' at row 259 Warning 1366 Incorrect string value: '\xA2\xC5' for column `test`.`t1`.`ucs2` at row 259
Warning 1366 Incorrect string value: '\xA2\xC6' for column 'ucs2' at row 260 Warning 1366 Incorrect string value: '\xA2\xC6' for column `test`.`t1`.`ucs2` at row 260
Warning 1366 Incorrect string value: '\xA2\xC7' for column 'ucs2' at row 261 Warning 1366 Incorrect string value: '\xA2\xC7' for column `test`.`t1`.`ucs2` at row 261
Warning 1366 Incorrect string value: '\xA2\xC8' for column 'ucs2' at row 262 Warning 1366 Incorrect string value: '\xA2\xC8' for column `test`.`t1`.`ucs2` at row 262
Warning 1366 Incorrect string value: '\xA2\xC9' for column 'ucs2' at row 263 Warning 1366 Incorrect string value: '\xA2\xC9' for column `test`.`t1`.`ucs2` at row 263
Warning 1366 Incorrect string value: '\xA2\xD1' for column 'ucs2' at row 271 Warning 1366 Incorrect string value: '\xA2\xD1' for column `test`.`t1`.`ucs2` at row 271
Warning 1366 Incorrect string value: '\xA2\xD2' for column 'ucs2' at row 272 Warning 1366 Incorrect string value: '\xA2\xD2' for column `test`.`t1`.`ucs2` at row 272
Warning 1366 Incorrect string value: '\xA2\xD3' for column 'ucs2' at row 273 Warning 1366 Incorrect string value: '\xA2\xD3' for column `test`.`t1`.`ucs2` at row 273
Warning 1366 Incorrect string value: '\xA2\xD4' for column 'ucs2' at row 274 Warning 1366 Incorrect string value: '\xA2\xD4' for column `test`.`t1`.`ucs2` at row 274
Warning 1366 Incorrect string value: '\xA2\xD5' for column 'ucs2' at row 275 Warning 1366 Incorrect string value: '\xA2\xD5' for column `test`.`t1`.`ucs2` at row 275
Warning 1366 Incorrect string value: '\xA2\xD6' for column 'ucs2' at row 276 Warning 1366 Incorrect string value: '\xA2\xD6' for column `test`.`t1`.`ucs2` at row 276
Warning 1366 Incorrect string value: '\xA2\xD7' for column 'ucs2' at row 277 Warning 1366 Incorrect string value: '\xA2\xD7' for column `test`.`t1`.`ucs2` at row 277
Warning 1366 Incorrect string value: '\xA2\xD8' for column 'ucs2' at row 278 Warning 1366 Incorrect string value: '\xA2\xD8' for column `test`.`t1`.`ucs2` at row 278
Warning 1366 Incorrect string value: '\xA2\xD9' for column 'ucs2' at row 279 Warning 1366 Incorrect string value: '\xA2\xD9' for column `test`.`t1`.`ucs2` at row 279
Warning 1366 Incorrect string value: '\xA2\xDA' for column 'ucs2' at row 280 Warning 1366 Incorrect string value: '\xA2\xDA' for column `test`.`t1`.`ucs2` at row 280
Warning 1366 Incorrect string value: '\xA2\xDB' for column 'ucs2' at row 281 Warning 1366 Incorrect string value: '\xA2\xDB' for column `test`.`t1`.`ucs2` at row 281
Warning 1366 Incorrect string value: '\xA2\xEB' for column 'ucs2' at row 297 Warning 1366 Incorrect string value: '\xA2\xEB' for column `test`.`t1`.`ucs2` at row 297
Warning 1366 Incorrect string value: '\xA2\xEC' for column 'ucs2' at row 298 Warning 1366 Incorrect string value: '\xA2\xEC' for column `test`.`t1`.`ucs2` at row 298
Warning 1366 Incorrect string value: '\xA2\xED' for column 'ucs2' at row 299 Warning 1366 Incorrect string value: '\xA2\xED' for column `test`.`t1`.`ucs2` at row 299
Warning 1366 Incorrect string value: '\xA2\xEE' for column 'ucs2' at row 300 Warning 1366 Incorrect string value: '\xA2\xEE' for column `test`.`t1`.`ucs2` at row 300
Warning 1366 Incorrect string value: '\xA2\xEF' for column 'ucs2' at row 301 Warning 1366 Incorrect string value: '\xA2\xEF' for column `test`.`t1`.`ucs2` at row 301
Warning 1366 Incorrect string value: '\xA2\xF0' for column 'ucs2' at row 302 Warning 1366 Incorrect string value: '\xA2\xF0' for column `test`.`t1`.`ucs2` at row 302
Warning 1366 Incorrect string value: '\xA2\xF1' for column 'ucs2' at row 303 Warning 1366 Incorrect string value: '\xA2\xF1' for column `test`.`t1`.`ucs2` at row 303
Warning 1366 Incorrect string value: '\xA2\xFA' for column 'ucs2' at row 312 Warning 1366 Incorrect string value: '\xA2\xFA' for column `test`.`t1`.`ucs2` at row 312
Warning 1366 Incorrect string value: '\xA2\xFB' for column 'ucs2' at row 313 Warning 1366 Incorrect string value: '\xA2\xFB' for column `test`.`t1`.`ucs2` at row 313
Warning 1366 Incorrect string value: '\xA2\xFC' for column 'ucs2' at row 314 Warning 1366 Incorrect string value: '\xA2\xFC' for column `test`.`t1`.`ucs2` at row 314
Warning 1366 Incorrect string value: '\xA2\xFD' for column 'ucs2' at row 315 Warning 1366 Incorrect string value: '\xA2\xFD' for column `test`.`t1`.`ucs2` at row 315
Warning 1366 Incorrect string value: '\xA3\xA1' for column 'ucs2' at row 317 Warning 1366 Incorrect string value: '\xA3\xA1' for column `test`.`t1`.`ucs2` at row 317
Warning 1366 Incorrect string value: '\xA3\xA2' for column 'ucs2' at row 318 Warning 1366 Incorrect string value: '\xA3\xA2' for column `test`.`t1`.`ucs2` at row 318
Warning 1366 Incorrect string value: '\xA3\xA3' for column 'ucs2' at row 319 Warning 1366 Incorrect string value: '\xA3\xA3' for column `test`.`t1`.`ucs2` at row 319
Warning 1366 Incorrect string value: '\xA3\xA4' for column 'ucs2' at row 320 Warning 1366 Incorrect string value: '\xA3\xA4' for column `test`.`t1`.`ucs2` at row 320
Warning 1366 Incorrect string value: '\xA3\xA5' for column 'ucs2' at row 321 Warning 1366 Incorrect string value: '\xA3\xA5' for column `test`.`t1`.`ucs2` at row 321
Warning 1366 Incorrect string value: '\xA3\xA6' for column 'ucs2' at row 322 Warning 1366 Incorrect string value: '\xA3\xA6' for column `test`.`t1`.`ucs2` at row 322
Warning 1366 Incorrect string value: '\xA3\xA7' for column 'ucs2' at row 323 Warning 1366 Incorrect string value: '\xA3\xA7' for column `test`.`t1`.`ucs2` at row 323
Warning 1366 Incorrect string value: '\xA3\xA8' for column 'ucs2' at row 324 Warning 1366 Incorrect string value: '\xA3\xA8' for column `test`.`t1`.`ucs2` at row 324
Warning 1366 Incorrect string value: '\xA3\xA9' for column 'ucs2' at row 325 Warning 1366 Incorrect string value: '\xA3\xA9' for column `test`.`t1`.`ucs2` at row 325
Warning 1366 Incorrect string value: '\xA3\xAA' for column 'ucs2' at row 326 Warning 1366 Incorrect string value: '\xA3\xAA' for column `test`.`t1`.`ucs2` at row 326
Warning 1366 Incorrect string value: '\xA3\xAB' for column 'ucs2' at row 327 Warning 1366 Incorrect string value: '\xA3\xAB' for column `test`.`t1`.`ucs2` at row 327
Warning 1366 Incorrect string value: '\xA3\xAC' for column 'ucs2' at row 328 Warning 1366 Incorrect string value: '\xA3\xAC' for column `test`.`t1`.`ucs2` at row 328
Warning 1366 Incorrect string value: '\xA3\xAD' for column 'ucs2' at row 329 Warning 1366 Incorrect string value: '\xA3\xAD' for column `test`.`t1`.`ucs2` at row 329
Warning 1366 Incorrect string value: '\xA3\xAE' for column 'ucs2' at row 330 Warning 1366 Incorrect string value: '\xA3\xAE' for column `test`.`t1`.`ucs2` at row 330
Warning 1366 Incorrect string value: '\xA3\xAF' for column 'ucs2' at row 331 Warning 1366 Incorrect string value: '\xA3\xAF' for column `test`.`t1`.`ucs2` at row 331
Warning 1366 Incorrect string value: '\xA3\xBA' for column 'ucs2' at row 342 Warning 1366 Incorrect string value: '\xA3\xBA' for column `test`.`t1`.`ucs2` at row 342
Warning 1366 Incorrect string value: '\xA3\xBB' for column 'ucs2' at row 343 Warning 1366 Incorrect string value: '\xA3\xBB' for column `test`.`t1`.`ucs2` at row 343
Warning 1366 Incorrect string value: '\xA3\xBC' for column 'ucs2' at row 344 Warning 1366 Incorrect string value: '\xA3\xBC' for column `test`.`t1`.`ucs2` at row 344
Warning 1366 Incorrect string value: '\xA3\xBD' for column 'ucs2' at row 345 Warning 1366 Incorrect string value: '\xA3\xBD' for column `test`.`t1`.`ucs2` at row 345
Warning 1366 Incorrect string value: '\xA3\xBE' for column 'ucs2' at row 346 Warning 1366 Incorrect string value: '\xA3\xBE' for column `test`.`t1`.`ucs2` at row 346
Warning 1366 Incorrect string value: '\xA3\xBF' for column 'ucs2' at row 347 Warning 1366 Incorrect string value: '\xA3\xBF' for column `test`.`t1`.`ucs2` at row 347
Warning 1366 Incorrect string value: '\xA3\xC0' for column 'ucs2' at row 348 Warning 1366 Incorrect string value: '\xA3\xC0' for column `test`.`t1`.`ucs2` at row 348
Warning 1366 Incorrect string value: '\xA3\xDB' for column 'ucs2' at row 375 Warning 1366 Incorrect string value: '\xA3\xDB' for column `test`.`t1`.`ucs2` at row 375
Characters with safe Unicode round trip Characters with safe Unicode round trip
select hex(ujis), hex(ucs2), hex(ujis2), name from t1 where ujis=ujis2 order by ujis; select hex(ujis), hex(ucs2), hex(ujis2), name from t1 where ujis=ujis2 order by ujis;
hex(ujis) hex(ucs2) hex(ujis2) name hex(ujis) hex(ucs2) hex(ujis2) name
@ -19131,17 +19131,17 @@ insert into t1 (ucs2,name) values (0xFFE2,'U+FFE2 FULLWIDTH NOT SIGN');
insert into t1 (ucs2,name) values (0xFFE4,'U+FFE4 FULLWIDTH BROKEN BAR'); insert into t1 (ucs2,name) values (0xFFE4,'U+FFE4 FULLWIDTH BROKEN BAR');
update ignore t1 set ujis=ucs2; update ignore t1 set ujis=ucs2;
Warnings: Warnings:
Warning 1366 Incorrect string value: '\x00\xA5' for column 'ujis' at row 1 Warning 1366 Incorrect string value: '\x00\xA5' for column `test`.`t1`.`ujis` at row 1
Warning 1366 Incorrect string value: '\x20\x14' for column 'ujis' at row 2 Warning 1366 Incorrect string value: '\x20\x14' for column `test`.`t1`.`ujis` at row 2
Warning 1366 Incorrect string value: '\x20\x3E' for column 'ujis' at row 3 Warning 1366 Incorrect string value: '\x20\x3E' for column `test`.`t1`.`ujis` at row 3
Warning 1366 Incorrect string value: '\x22\x25' for column 'ujis' at row 4 Warning 1366 Incorrect string value: '\x22\x25' for column `test`.`t1`.`ujis` at row 4
Warning 1366 Incorrect string value: '\xFF\x0D' for column 'ujis' at row 5 Warning 1366 Incorrect string value: '\xFF\x0D' for column `test`.`t1`.`ujis` at row 5
Warning 1366 Incorrect string value: '\xFF\x3C' for column 'ujis' at row 6 Warning 1366 Incorrect string value: '\xFF\x3C' for column `test`.`t1`.`ujis` at row 6
Warning 1366 Incorrect string value: '\xFF\x5E' for column 'ujis' at row 7 Warning 1366 Incorrect string value: '\xFF\x5E' for column `test`.`t1`.`ujis` at row 7
Warning 1366 Incorrect string value: '\xFF\xE0' for column 'ujis' at row 8 Warning 1366 Incorrect string value: '\xFF\xE0' for column `test`.`t1`.`ujis` at row 8
Warning 1366 Incorrect string value: '\xFF\xE1' for column 'ujis' at row 9 Warning 1366 Incorrect string value: '\xFF\xE1' for column `test`.`t1`.`ujis` at row 9
Warning 1366 Incorrect string value: '\xFF\xE2' for column 'ujis' at row 10 Warning 1366 Incorrect string value: '\xFF\xE2' for column `test`.`t1`.`ujis` at row 10
Warning 1366 Incorrect string value: '\xFF\xE4' for column 'ujis' at row 11 Warning 1366 Incorrect string value: '\xFF\xE4' for column `test`.`t1`.`ujis` at row 11
select hex(ucs2),hex(ujis),name from t1 order by name; select hex(ucs2),hex(ujis),name from t1 order by name;
hex(ucs2) hex(ujis) name hex(ucs2) hex(ujis) name
00A5 3F U+00A5 YEN SIGN 00A5 3F U+00A5 YEN SIGN

View File

@ -1015,7 +1015,7 @@ insert into t1 values (0xdf84);
SET STATEMENT sql_mode = 'NO_ENGINE_SUBSTITUTION' FOR SET STATEMENT sql_mode = 'NO_ENGINE_SUBSTITUTION' FOR
alter table t1 modify column s1 varchar(50) character set utf16; alter table t1 modify column s1 varchar(50) character set utf16;
Warnings: Warnings:
Warning 1366 Incorrect string value: '\xDF\x84' for column 's1' at row 1 Warning 1366 Incorrect string value: '\xDF\x84' for column `test`.`t1`.`s1` at row 1
select hex(s1) from t1; select hex(s1) from t1;
hex(s1) hex(s1)
003F 003F
@ -1024,7 +1024,7 @@ create table t1 (s1 varchar(5) character set ucs2, s2 varchar(5) character set u
insert into t1 (s1) values (0xdf84); insert into t1 (s1) values (0xdf84);
update ignore t1 set s2 = s1; update ignore t1 set s2 = s1;
Warnings: Warnings:
Warning 1366 Incorrect string value: '\xDF\x84' for column 's2' at row 1 Warning 1366 Incorrect string value: '\xDF\x84' for column `test`.`t1`.`s2` at row 1
select hex(s2) from t1; select hex(s2) from t1;
hex(s2) hex(s2)
003F 003F

View File

@ -1124,7 +1124,7 @@ INSERT INTO t1 VALUES (0xDF84);
SET STATEMENT sql_mode = 'NO_ENGINE_SUBSTITUTION' FOR SET STATEMENT sql_mode = 'NO_ENGINE_SUBSTITUTION' FOR
ALTER TABLE t1 MODIFY column s1 VARCHAR(50) CHARACTER SET utf16le; ALTER TABLE t1 MODIFY column s1 VARCHAR(50) CHARACTER SET utf16le;
Warnings: Warnings:
Warning 1366 Incorrect string value: '\xDF\x84' for column 's1' at row 1 Warning 1366 Incorrect string value: '\xDF\x84' for column `test`.`t1`.`s1` at row 1
SELECT HEX(s1) FROM t1; SELECT HEX(s1) FROM t1;
HEX(s1) HEX(s1)
3F00 3F00
@ -1136,7 +1136,7 @@ CREATE TABLE t1 (s1 VARCHAR(5) CHARACTER SET ucs2, s2 VARCHAR(5) CHARACTER SET u
INSERT INTO t1 (s1) VALUES (0xdf84); INSERT INTO t1 (s1) VALUES (0xdf84);
UPDATE IGNORE t1 set s2 = s1; UPDATE IGNORE t1 set s2 = s1;
Warnings: Warnings:
Warning 1366 Incorrect string value: '\xDF\x84' for column 's2' at row 1 Warning 1366 Incorrect string value: '\xDF\x84' for column `test`.`t1`.`s2` at row 1
SELECT HEX(s2) FROM t1; SELECT HEX(s2) FROM t1;
HEX(s2) HEX(s2)
3F00 3F00

View File

@ -985,31 +985,31 @@ create table t1 (utf32 varchar(2) character set utf32);
Wrong character with pad Wrong character with pad
insert ignore into t1 values (0x110000); insert ignore into t1 values (0x110000);
Warnings: Warnings:
Warning 1366 Incorrect string value: '\x11\x00\x00' for column 'utf32' at row 1 Warning 1366 Incorrect string value: '\x11\x00\x00' for column `test`.`t1`.`utf32` at row 1
Wrong chsaracter without pad Wrong chsaracter without pad
insert ignore into t1 values (0x00110000); insert ignore into t1 values (0x00110000);
Warnings: Warnings:
Warning 1366 Incorrect string value: '\x00\x11\x00\x00' for column 'utf32' at row 1 Warning 1366 Incorrect string value: '\x00\x11\x00\x00' for column `test`.`t1`.`utf32` at row 1
Wrong character with pad followed by another wrong character Wrong character with pad followed by another wrong character
insert ignore into t1 values (0x11000000110000); insert ignore into t1 values (0x11000000110000);
Warnings: Warnings:
Warning 1366 Incorrect string value: '\x11\x00\x00\x00\x11\x00...' for column 'utf32' at row 1 Warning 1366 Incorrect string value: '\x11\x00\x00\x00\x11\x00...' for column `test`.`t1`.`utf32` at row 1
Good character with pad followed by bad character Good character with pad followed by bad character
insert ignore into t1 values (0x10000000110000); insert ignore into t1 values (0x10000000110000);
Warnings: Warnings:
Warning 1366 Incorrect string value: '\x00\x11\x00\x00' for column 'utf32' at row 1 Warning 1366 Incorrect string value: '\x00\x11\x00\x00' for column `test`.`t1`.`utf32` at row 1
Good character without pad followed by bad character Good character without pad followed by bad character
insert ignore into t1 values (0x0010000000110000); insert ignore into t1 values (0x0010000000110000);
Warnings: Warnings:
Warning 1366 Incorrect string value: '\x00\x11\x00\x00' for column 'utf32' at row 1 Warning 1366 Incorrect string value: '\x00\x11\x00\x00' for column `test`.`t1`.`utf32` at row 1
Wrong character with the second byte higher than 0x10 Wrong character with the second byte higher than 0x10
insert ignore into t1 values (0x00800037); insert ignore into t1 values (0x00800037);
Warnings: Warnings:
Warning 1366 Incorrect string value: '\x00\x80\x007' for column 'utf32' at row 1 Warning 1366 Incorrect string value: '\x00\x80\x007' for column `test`.`t1`.`utf32` at row 1
Wrong character with pad with the second byte higher than 0x10 Wrong character with pad with the second byte higher than 0x10
insert ignore into t1 values (0x00800037); insert ignore into t1 values (0x00800037);
Warnings: Warnings:
Warning 1366 Incorrect string value: '\x00\x80\x007' for column 'utf32' at row 1 Warning 1366 Incorrect string value: '\x00\x80\x007' for column `test`.`t1`.`utf32` at row 1
drop table t1; drop table t1;
select _utf32'a' collate utf32_general_ci = 0xfffd; select _utf32'a' collate utf32_general_ci = 0xfffd;
_utf32'a' collate utf32_general_ci = 0xfffd _utf32'a' collate utf32_general_ci = 0xfffd
@ -1561,12 +1561,12 @@ CREATE TABLE t1 (utf32 CHAR(5) CHARACTER SET utf32, latin1 CHAR(5) CHARACTER SET
INSERT INTO t1 (utf32) VALUES (0xc581); INSERT INTO t1 (utf32) VALUES (0xc581);
UPDATE IGNORE t1 SET latin1 = utf32; UPDATE IGNORE t1 SET latin1 = utf32;
Warnings: Warnings:
Warning 1366 Incorrect string value: '\x00\x00\xC5\x81' for column 'latin1' at row 1 Warning 1366 Incorrect string value: '\x00\x00\xC5\x81' for column `test`.`t1`.`latin1` at row 1
DELETE FROM t1; DELETE FROM t1;
INSERT INTO t1 (utf32) VALUES (0x100cc); INSERT INTO t1 (utf32) VALUES (0x100cc);
UPDATE IGNORE t1 SET latin1 = utf32; UPDATE IGNORE t1 SET latin1 = utf32;
Warnings: Warnings:
Warning 1366 Incorrect string value: '\x00\x01\x00\xCC' for column 'latin1' at row 1 Warning 1366 Incorrect string value: '\x00\x01\x00\xCC' for column `test`.`t1`.`latin1` at row 1
DROP TABLE t1; DROP TABLE t1;
# #
# Bug#55912 FORMAT with locale set fails for numbers < 1000 # Bug#55912 FORMAT with locale set fails for numbers < 1000

View File

@ -222,7 +222,7 @@ drop table t1;
create table t1 (s1 char(10) character set utf8); create table t1 (s1 char(10) character set utf8);
insert ignore into t1 values (0x41FF); insert ignore into t1 values (0x41FF);
Warnings: Warnings:
Warning 1366 Incorrect string value: '\xFF' for column 's1' at row 1 Warning 1366 Incorrect string value: '\xFF' for column `test`.`t1`.`s1` at row 1
select hex(s1) from t1; select hex(s1) from t1;
hex(s1) hex(s1)
413F 413F
@ -230,7 +230,7 @@ drop table t1;
create table t1 (s1 varchar(10) character set utf8); create table t1 (s1 varchar(10) character set utf8);
insert ignore into t1 values (0x41FF); insert ignore into t1 values (0x41FF);
Warnings: Warnings:
Warning 1366 Incorrect string value: '\xFF' for column 's1' at row 1 Warning 1366 Incorrect string value: '\xFF' for column `test`.`t1`.`s1` at row 1
select hex(s1) from t1; select hex(s1) from t1;
hex(s1) hex(s1)
413F 413F
@ -238,7 +238,7 @@ drop table t1;
create table t1 (s1 text character set utf8); create table t1 (s1 text character set utf8);
insert ignore into t1 values (0x41FF); insert ignore into t1 values (0x41FF);
Warnings: Warnings:
Warning 1366 Incorrect string value: '\xFF' for column 's1' at row 1 Warning 1366 Incorrect string value: '\xFF' for column `test`.`t1`.`s1` at row 1
select hex(s1) from t1; select hex(s1) from t1;
hex(s1) hex(s1)
413F 413F
@ -5456,13 +5456,13 @@ INSERT INTO t1 (ch) VALUES ('admin'),('admin1');
SELECT ch FROM t1 WHERE ch='admin𝌆'; SELECT ch FROM t1 WHERE ch='admin𝌆';
ch ch
Warnings: Warnings:
Warning 1366 Incorrect string value: '\xF0\x9D\x8C\x86' for column 'ch' at row 1 Warning 1366 Incorrect string value: '\xF0\x9D\x8C\x86' for column `test`.`t1`.`ch` at row 1
SELECT ch FROM t1 IGNORE KEY (ch) WHERE ch='admin𝌆'; SELECT ch FROM t1 IGNORE KEY (ch) WHERE ch='admin𝌆';
ch ch
SELECT ch FROM t1 FORCE KEY (ch) WHERE ch='admin𝌆'; SELECT ch FROM t1 FORCE KEY (ch) WHERE ch='admin𝌆';
ch ch
Warnings: Warnings:
Warning 1366 Incorrect string value: '\xF0\x9D\x8C\x86' for column 'ch' at row 1 Warning 1366 Incorrect string value: '\xF0\x9D\x8C\x86' for column `test`.`t1`.`ch` at row 1
DELETE FROM t1; DELETE FROM t1;
INSERT INTO t1 (ch) VALUES ('a'), ('a?'), ('a??'), ('a???'), ('a????'); INSERT INTO t1 (ch) VALUES ('a'), ('a?'), ('a??'), ('a???'), ('a????');
INSERT INTO t1 (ch) VALUES ('ab'),('a?b'),('a??b'),('a???b'),('a????b'); INSERT INTO t1 (ch) VALUES ('ab'),('a?b'),('a??b'),('a???b'),('a????b');
@ -5479,21 +5479,21 @@ SELECT ch FROM t1 FORCE KEY (ch) WHERE ch='a𝌆' ORDER BY ch;
id select_type table type possible_keys key key_len ref rows Extra id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE NULL NULL NULL NULL NULL NULL # Impossible WHERE noticed after reading const tables 1 SIMPLE NULL NULL NULL NULL NULL NULL # Impossible WHERE noticed after reading const tables
Warnings: Warnings:
Warning 1366 Incorrect string value: '\xF0\x9D\x8C\x86' for column 'ch' at row 1 Warning 1366 Incorrect string value: '\xF0\x9D\x8C\x86' for column `test`.`t1`.`ch` at row 1
SELECT ch FROM t1 FORCE KEY (ch) WHERE ch='a𝌆' ORDER BY ch; SELECT ch FROM t1 FORCE KEY (ch) WHERE ch='a𝌆' ORDER BY ch;
ch ch
Warnings: Warnings:
Warning 1366 Incorrect string value: '\xF0\x9D\x8C\x86' for column 'ch' at row 1 Warning 1366 Incorrect string value: '\xF0\x9D\x8C\x86' for column `test`.`t1`.`ch` at row 1
EXPLAIN EXPLAIN
SELECT ch FROM t1 FORCE KEY (ch) WHERE ch='a𝌆b' ORDER BY ch; SELECT ch FROM t1 FORCE KEY (ch) WHERE ch='a𝌆b' ORDER BY ch;
id select_type table type possible_keys key key_len ref rows Extra id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE NULL NULL NULL NULL NULL NULL # Impossible WHERE noticed after reading const tables 1 SIMPLE NULL NULL NULL NULL NULL NULL # Impossible WHERE noticed after reading const tables
Warnings: Warnings:
Warning 1366 Incorrect string value: '\xF0\x9D\x8C\x86b' for column 'ch' at row 1 Warning 1366 Incorrect string value: '\xF0\x9D\x8C\x86b' for column `test`.`t1`.`ch` at row 1
SELECT ch FROM t1 FORCE KEY (ch) WHERE ch='a𝌆b' ORDER BY ch; SELECT ch FROM t1 FORCE KEY (ch) WHERE ch='a𝌆b' ORDER BY ch;
ch ch
Warnings: Warnings:
Warning 1366 Incorrect string value: '\xF0\x9D\x8C\x86b' for column 'ch' at row 1 Warning 1366 Incorrect string value: '\xF0\x9D\x8C\x86b' for column `test`.`t1`.`ch` at row 1
SELECT ch FROM t1 IGNORE KEY (ch) WHERE ch<'a𝌆' ORDER BY ch; SELECT ch FROM t1 IGNORE KEY (ch) WHERE ch<'a𝌆' ORDER BY ch;
ch ch
a a
@ -5537,7 +5537,7 @@ SELECT ch FROM t1 FORCE KEY (ch) WHERE ch<'a𝌆' ORDER BY ch;
id select_type table type possible_keys key key_len ref rows Extra id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE t1 index ch ch 183 NULL # Using where; Using index 1 SIMPLE t1 index ch ch 183 NULL # Using where; Using index
Warnings: Warnings:
Warning 1366 Incorrect string value: '\xF0\x9D\x8C\x86' for column 'ch' at row 1 Warning 1366 Incorrect string value: '\xF0\x9D\x8C\x86' for column `test`.`t1`.`ch` at row 1
SELECT ch FROM t1 FORCE KEY (ch) WHERE ch<'a𝌆' ORDER BY ch; SELECT ch FROM t1 FORCE KEY (ch) WHERE ch<'a𝌆' ORDER BY ch;
ch ch
a a
@ -5558,13 +5558,13 @@ az
Warnings: Warnings:
Warning 1366 Incorrect string value: '\xF0\x9D\x8C\x86' for column 'ch' at row 1 Warning 1366 Incorrect string value: '\xF0\x9D\x8C\x86' for column `test`.`t1`.`ch` at row 1
EXPLAIN EXPLAIN
SELECT ch FROM t1 FORCE KEY (ch) WHERE ch<'a𝌆b' ORDER BY ch; SELECT ch FROM t1 FORCE KEY (ch) WHERE ch<'a𝌆b' ORDER BY ch;
id select_type table type possible_keys key key_len ref rows Extra id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE t1 index ch ch 183 NULL # Using where; Using index 1 SIMPLE t1 index ch ch 183 NULL # Using where; Using index
Warnings: Warnings:
Warning 1366 Incorrect string value: '\xF0\x9D\x8C\x86b' for column 'ch' at row 1 Warning 1366 Incorrect string value: '\xF0\x9D\x8C\x86b' for column `test`.`t1`.`ch` at row 1
SELECT ch FROM t1 FORCE KEY (ch) WHERE ch<'a𝌆b' ORDER BY ch; SELECT ch FROM t1 FORCE KEY (ch) WHERE ch<'a𝌆b' ORDER BY ch;
ch ch
a a
@ -5585,7 +5585,7 @@ az
Warnings: Warnings:
Warning 1366 Incorrect string value: '\xF0\x9D\x8C\x86b' for column 'ch' at row 1 Warning 1366 Incorrect string value: '\xF0\x9D\x8C\x86b' for column `test`.`t1`.`ch` at row 1
SELECT ch FROM t1 IGNORE KEY (ch) WHERE ch>'a𝌆' ORDER BY ch; SELECT ch FROM t1 IGNORE KEY (ch) WHERE ch>'a𝌆' ORDER BY ch;
ch ch
z z
@ -5597,23 +5597,23 @@ SELECT ch FROM t1 FORCE KEY (ch) WHERE ch>'a𝌆' ORDER BY ch;
id select_type table type possible_keys key key_len ref rows Extra id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE t1 index ch ch 183 NULL # Using where; Using index 1 SIMPLE t1 index ch ch 183 NULL # Using where; Using index
Warnings: Warnings:
Warning 1366 Incorrect string value: '\xF0\x9D\x8C\x86' for column 'ch' at row 1 Warning 1366 Incorrect string value: '\xF0\x9D\x8C\x86' for column `test`.`t1`.`ch` at row 1
SELECT ch FROM t1 FORCE KEY (ch) WHERE ch>'a𝌆' ORDER BY ch; SELECT ch FROM t1 FORCE KEY (ch) WHERE ch>'a𝌆' ORDER BY ch;
ch ch
z z
Warnings: Warnings:
Warning 1366 Incorrect string value: '\xF0\x9D\x8C\x86' for column 'ch' at row 1 Warning 1366 Incorrect string value: '\xF0\x9D\x8C\x86' for column `test`.`t1`.`ch` at row 1
EXPLAIN EXPLAIN
SELECT ch FROM t1 FORCE KEY (ch) WHERE ch>'a𝌆b' ORDER BY ch; SELECT ch FROM t1 FORCE KEY (ch) WHERE ch>'a𝌆b' ORDER BY ch;
id select_type table type possible_keys key key_len ref rows Extra id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE t1 index ch ch 183 NULL # Using where; Using index 1 SIMPLE t1 index ch ch 183 NULL # Using where; Using index
Warnings: Warnings:
Warning 1366 Incorrect string value: '\xF0\x9D\x8C\x86b' for column 'ch' at row 1 Warning 1366 Incorrect string value: '\xF0\x9D\x8C\x86b' for column `test`.`t1`.`ch` at row 1
SELECT ch FROM t1 FORCE KEY (ch) WHERE ch>'a𝌆b' ORDER BY ch; SELECT ch FROM t1 FORCE KEY (ch) WHERE ch>'a𝌆b' ORDER BY ch;
ch ch
z z
Warnings: Warnings:
Warning 1366 Incorrect string value: '\xF0\x9D\x8C\x86b' for column 'ch' at row 1 Warning 1366 Incorrect string value: '\xF0\x9D\x8C\x86b' for column `test`.`t1`.`ch` at row 1
ALTER TABLE t1 DROP KEY ch; ALTER TABLE t1 DROP KEY ch;
# 0xD18F would be a good 2-byte character, 0xD1 is an incomplete sequence # 0xD18F would be a good 2-byte character, 0xD1 is an incomplete sequence
SET @query=CONCAT('SELECT ch FROM t1 WHERE ch=''a', 0xD1,''''); SET @query=CONCAT('SELECT ch FROM t1 WHERE ch=''a', 0xD1,'''');
@ -5700,13 +5700,13 @@ INSERT INTO t1 (ch) VALUES ('admin'),('admin1');
SELECT ch FROM t1 WHERE ch='admin𝌆'; SELECT ch FROM t1 WHERE ch='admin𝌆';
ch ch
Warnings: Warnings:
Warning 1366 Incorrect string value: '\xF0\x9D\x8C\x86' for column 'ch' at row 1 Warning 1366 Incorrect string value: '\xF0\x9D\x8C\x86' for column `test`.`t1`.`ch` at row 1
SELECT ch FROM t1 IGNORE KEY (ch) WHERE ch='admin𝌆'; SELECT ch FROM t1 IGNORE KEY (ch) WHERE ch='admin𝌆';
ch ch
SELECT ch FROM t1 FORCE KEY (ch) WHERE ch='admin𝌆'; SELECT ch FROM t1 FORCE KEY (ch) WHERE ch='admin𝌆';
ch ch
Warnings: Warnings:
Warning 1366 Incorrect string value: '\xF0\x9D\x8C\x86' for column 'ch' at row 1 Warning 1366 Incorrect string value: '\xF0\x9D\x8C\x86' for column `test`.`t1`.`ch` at row 1
DELETE FROM t1; DELETE FROM t1;
INSERT INTO t1 (ch) VALUES ('a'), ('a?'), ('a??'), ('a???'), ('a????'); INSERT INTO t1 (ch) VALUES ('a'), ('a?'), ('a??'), ('a???'), ('a????');
INSERT INTO t1 (ch) VALUES ('ab'),('a?b'),('a??b'),('a???b'),('a????b'); INSERT INTO t1 (ch) VALUES ('ab'),('a?b'),('a??b'),('a???b'),('a????b');
@ -5723,21 +5723,21 @@ SELECT ch FROM t1 FORCE KEY (ch) WHERE ch='a𝌆' ORDER BY ch;
id select_type table type possible_keys key key_len ref rows Extra id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE NULL NULL NULL NULL NULL NULL # Impossible WHERE noticed after reading const tables 1 SIMPLE NULL NULL NULL NULL NULL NULL # Impossible WHERE noticed after reading const tables
Warnings: Warnings:
Warning 1366 Incorrect string value: '\xF0\x9D\x8C\x86' for column 'ch' at row 1 Warning 1366 Incorrect string value: '\xF0\x9D\x8C\x86' for column `test`.`t1`.`ch` at row 1
SELECT ch FROM t1 FORCE KEY (ch) WHERE ch='a𝌆' ORDER BY ch; SELECT ch FROM t1 FORCE KEY (ch) WHERE ch='a𝌆' ORDER BY ch;
ch ch
Warnings: Warnings:
Warning 1366 Incorrect string value: '\xF0\x9D\x8C\x86' for column 'ch' at row 1 Warning 1366 Incorrect string value: '\xF0\x9D\x8C\x86' for column `test`.`t1`.`ch` at row 1
EXPLAIN EXPLAIN
SELECT ch FROM t1 FORCE KEY (ch) WHERE ch='a𝌆b' ORDER BY ch; SELECT ch FROM t1 FORCE KEY (ch) WHERE ch='a𝌆b' ORDER BY ch;
id select_type table type possible_keys key key_len ref rows Extra id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE NULL NULL NULL NULL NULL NULL # Impossible WHERE noticed after reading const tables 1 SIMPLE NULL NULL NULL NULL NULL NULL # Impossible WHERE noticed after reading const tables
Warnings: Warnings:
Warning 1366 Incorrect string value: '\xF0\x9D\x8C\x86b' for column 'ch' at row 1 Warning 1366 Incorrect string value: '\xF0\x9D\x8C\x86b' for column `test`.`t1`.`ch` at row 1
SELECT ch FROM t1 FORCE KEY (ch) WHERE ch='a𝌆b' ORDER BY ch; SELECT ch FROM t1 FORCE KEY (ch) WHERE ch='a𝌆b' ORDER BY ch;
ch ch
Warnings: Warnings:
Warning 1366 Incorrect string value: '\xF0\x9D\x8C\x86b' for column 'ch' at row 1 Warning 1366 Incorrect string value: '\xF0\x9D\x8C\x86b' for column `test`.`t1`.`ch` at row 1
SELECT ch FROM t1 IGNORE KEY (ch) WHERE ch<'a𝌆' ORDER BY ch; SELECT ch FROM t1 IGNORE KEY (ch) WHERE ch<'a𝌆' ORDER BY ch;
ch ch
a a
@ -5781,7 +5781,7 @@ SELECT ch FROM t1 FORCE KEY (ch) WHERE ch<'a𝌆' ORDER BY ch;
id select_type table type possible_keys key key_len ref rows Extra id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE t1 index ch ch 183 NULL # Using where; Using index 1 SIMPLE t1 index ch ch 183 NULL # Using where; Using index
Warnings: Warnings:
Warning 1366 Incorrect string value: '\xF0\x9D\x8C\x86' for column 'ch' at row 1 Warning 1366 Incorrect string value: '\xF0\x9D\x8C\x86' for column `test`.`t1`.`ch` at row 1
SELECT ch FROM t1 FORCE KEY (ch) WHERE ch<'a𝌆' ORDER BY ch; SELECT ch FROM t1 FORCE KEY (ch) WHERE ch<'a𝌆' ORDER BY ch;
ch ch
a a
@ -5802,13 +5802,13 @@ az
Warnings: Warnings:
Warning 1366 Incorrect string value: '\xF0\x9D\x8C\x86' for column 'ch' at row 1 Warning 1366 Incorrect string value: '\xF0\x9D\x8C\x86' for column `test`.`t1`.`ch` at row 1
EXPLAIN EXPLAIN
SELECT ch FROM t1 FORCE KEY (ch) WHERE ch<'a𝌆b' ORDER BY ch; SELECT ch FROM t1 FORCE KEY (ch) WHERE ch<'a𝌆b' ORDER BY ch;
id select_type table type possible_keys key key_len ref rows Extra id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE t1 index ch ch 183 NULL # Using where; Using index 1 SIMPLE t1 index ch ch 183 NULL # Using where; Using index
Warnings: Warnings:
Warning 1366 Incorrect string value: '\xF0\x9D\x8C\x86b' for column 'ch' at row 1 Warning 1366 Incorrect string value: '\xF0\x9D\x8C\x86b' for column `test`.`t1`.`ch` at row 1
SELECT ch FROM t1 FORCE KEY (ch) WHERE ch<'a𝌆b' ORDER BY ch; SELECT ch FROM t1 FORCE KEY (ch) WHERE ch<'a𝌆b' ORDER BY ch;
ch ch
a a
@ -5829,7 +5829,7 @@ az
Warnings: Warnings:
Warning 1366 Incorrect string value: '\xF0\x9D\x8C\x86b' for column 'ch' at row 1 Warning 1366 Incorrect string value: '\xF0\x9D\x8C\x86b' for column `test`.`t1`.`ch` at row 1
SELECT ch FROM t1 IGNORE KEY (ch) WHERE ch>'a𝌆' ORDER BY ch; SELECT ch FROM t1 IGNORE KEY (ch) WHERE ch>'a𝌆' ORDER BY ch;
ch ch
z z
@ -5841,23 +5841,23 @@ SELECT ch FROM t1 FORCE KEY (ch) WHERE ch>'a𝌆' ORDER BY ch;
id select_type table type possible_keys key key_len ref rows Extra id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE t1 index ch ch 183 NULL # Using where; Using index 1 SIMPLE t1 index ch ch 183 NULL # Using where; Using index
Warnings: Warnings:
Warning 1366 Incorrect string value: '\xF0\x9D\x8C\x86' for column 'ch' at row 1 Warning 1366 Incorrect string value: '\xF0\x9D\x8C\x86' for column `test`.`t1`.`ch` at row 1
SELECT ch FROM t1 FORCE KEY (ch) WHERE ch>'a𝌆' ORDER BY ch; SELECT ch FROM t1 FORCE KEY (ch) WHERE ch>'a𝌆' ORDER BY ch;
ch ch
z z
Warnings: Warnings:
Warning 1366 Incorrect string value: '\xF0\x9D\x8C\x86' for column 'ch' at row 1 Warning 1366 Incorrect string value: '\xF0\x9D\x8C\x86' for column `test`.`t1`.`ch` at row 1
EXPLAIN EXPLAIN
SELECT ch FROM t1 FORCE KEY (ch) WHERE ch>'a𝌆b' ORDER BY ch; SELECT ch FROM t1 FORCE KEY (ch) WHERE ch>'a𝌆b' ORDER BY ch;
id select_type table type possible_keys key key_len ref rows Extra id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE t1 index ch ch 183 NULL # Using where; Using index 1 SIMPLE t1 index ch ch 183 NULL # Using where; Using index
Warnings: Warnings:
Warning 1366 Incorrect string value: '\xF0\x9D\x8C\x86b' for column 'ch' at row 1 Warning 1366 Incorrect string value: '\xF0\x9D\x8C\x86b' for column `test`.`t1`.`ch` at row 1
SELECT ch FROM t1 FORCE KEY (ch) WHERE ch>'a𝌆b' ORDER BY ch; SELECT ch FROM t1 FORCE KEY (ch) WHERE ch>'a𝌆b' ORDER BY ch;
ch ch
z z
Warnings: Warnings:
Warning 1366 Incorrect string value: '\xF0\x9D\x8C\x86b' for column 'ch' at row 1 Warning 1366 Incorrect string value: '\xF0\x9D\x8C\x86b' for column `test`.`t1`.`ch` at row 1
ALTER TABLE t1 DROP KEY ch; ALTER TABLE t1 DROP KEY ch;
# 0xD18F would be a good 2-byte character, 0xD1 is an incomplete sequence # 0xD18F would be a good 2-byte character, 0xD1 is an incomplete sequence
SET @query=CONCAT('SELECT ch FROM t1 WHERE ch=''a', 0xD1,''''); SET @query=CONCAT('SELECT ch FROM t1 WHERE ch=''a', 0xD1,'''');
@ -5944,13 +5944,13 @@ INSERT INTO t1 (ch) VALUES ('admin'),('admin1');
SELECT ch FROM t1 WHERE ch='admin𝌆'; SELECT ch FROM t1 WHERE ch='admin𝌆';
ch ch
Warnings: Warnings:
Warning 1366 Incorrect string value: '\xF0\x9D\x8C\x86' for column 'ch' at row 1 Warning 1366 Incorrect string value: '\xF0\x9D\x8C\x86' for column `test`.`t1`.`ch` at row 1
SELECT ch FROM t1 IGNORE KEY (ch) WHERE ch='admin𝌆'; SELECT ch FROM t1 IGNORE KEY (ch) WHERE ch='admin𝌆';
ch ch
SELECT ch FROM t1 FORCE KEY (ch) WHERE ch='admin𝌆'; SELECT ch FROM t1 FORCE KEY (ch) WHERE ch='admin𝌆';
ch ch
Warnings: Warnings:
Warning 1366 Incorrect string value: '\xF0\x9D\x8C\x86' for column 'ch' at row 1 Warning 1366 Incorrect string value: '\xF0\x9D\x8C\x86' for column `test`.`t1`.`ch` at row 1
DELETE FROM t1; DELETE FROM t1;
INSERT INTO t1 (ch) VALUES ('a'), ('a?'), ('a??'), ('a???'), ('a????'); INSERT INTO t1 (ch) VALUES ('a'), ('a?'), ('a??'), ('a???'), ('a????');
INSERT INTO t1 (ch) VALUES ('ab'),('a?b'),('a??b'),('a???b'),('a????b'); INSERT INTO t1 (ch) VALUES ('ab'),('a?b'),('a??b'),('a???b'),('a????b');
@ -5967,21 +5967,21 @@ SELECT ch FROM t1 FORCE KEY (ch) WHERE ch='a𝌆' ORDER BY ch;
id select_type table type possible_keys key key_len ref rows Extra id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE NULL NULL NULL NULL NULL NULL # Impossible WHERE noticed after reading const tables 1 SIMPLE NULL NULL NULL NULL NULL NULL # Impossible WHERE noticed after reading const tables
Warnings: Warnings:
Warning 1366 Incorrect string value: '\xF0\x9D\x8C\x86' for column 'ch' at row 1 Warning 1366 Incorrect string value: '\xF0\x9D\x8C\x86' for column `test`.`t1`.`ch` at row 1
SELECT ch FROM t1 FORCE KEY (ch) WHERE ch='a𝌆' ORDER BY ch; SELECT ch FROM t1 FORCE KEY (ch) WHERE ch='a𝌆' ORDER BY ch;
ch ch
Warnings: Warnings:
Warning 1366 Incorrect string value: '\xF0\x9D\x8C\x86' for column 'ch' at row 1 Warning 1366 Incorrect string value: '\xF0\x9D\x8C\x86' for column `test`.`t1`.`ch` at row 1
EXPLAIN EXPLAIN
SELECT ch FROM t1 FORCE KEY (ch) WHERE ch='a𝌆b' ORDER BY ch; SELECT ch FROM t1 FORCE KEY (ch) WHERE ch='a𝌆b' ORDER BY ch;
id select_type table type possible_keys key key_len ref rows Extra id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE NULL NULL NULL NULL NULL NULL # Impossible WHERE noticed after reading const tables 1 SIMPLE NULL NULL NULL NULL NULL NULL # Impossible WHERE noticed after reading const tables
Warnings: Warnings:
Warning 1366 Incorrect string value: '\xF0\x9D\x8C\x86b' for column 'ch' at row 1 Warning 1366 Incorrect string value: '\xF0\x9D\x8C\x86b' for column `test`.`t1`.`ch` at row 1
SELECT ch FROM t1 FORCE KEY (ch) WHERE ch='a𝌆b' ORDER BY ch; SELECT ch FROM t1 FORCE KEY (ch) WHERE ch='a𝌆b' ORDER BY ch;
ch ch
Warnings: Warnings:
Warning 1366 Incorrect string value: '\xF0\x9D\x8C\x86b' for column 'ch' at row 1 Warning 1366 Incorrect string value: '\xF0\x9D\x8C\x86b' for column `test`.`t1`.`ch` at row 1
SELECT ch FROM t1 IGNORE KEY (ch) WHERE ch<'a𝌆' ORDER BY ch; SELECT ch FROM t1 IGNORE KEY (ch) WHERE ch<'a𝌆' ORDER BY ch;
ch ch
a a
@ -10611,11 +10611,11 @@ DROP TABLE t1;
CREATE TABLE t1 (a TEXT CHARACTER SET utf8); CREATE TABLE t1 (a TEXT CHARACTER SET utf8);
LOAD DATA INFILE '../../std_data/loaddata/mdev9823.utf8mb4.txt' IGNORE INTO TABLE t1 CHARACTER SET utf8 IGNORE 4 LINES; LOAD DATA INFILE '../../std_data/loaddata/mdev9823.utf8mb4.txt' IGNORE INTO TABLE t1 CHARACTER SET utf8 IGNORE 4 LINES;
Warnings: Warnings:
Warning 1366 Incorrect string value: '\xD0' for column 'a' at row 1 Warning 1366 Incorrect string value: '\xD0' for column `test`.`t1`.`a` at row 1
Warning 1366 Incorrect string value: '\xE1\x80' for column 'a' at row 3 Warning 1366 Incorrect string value: '\xE1\x80' for column `test`.`t1`.`a` at row 3
Warning 1366 Incorrect string value: '\xF0\x9F\x98' for column 'a' at row 5 Warning 1366 Incorrect string value: '\xF0\x9F\x98' for column `test`.`t1`.`a` at row 5
Warning 1366 Incorrect string value: '\xF0\x9F\x98\x8E' for column 'a' at row 7 Warning 1366 Incorrect string value: '\xF0\x9F\x98\x8E' for column `test`.`t1`.`a` at row 7
Warning 1366 Incorrect string value: '\xF0\x9F\x98' for column 'a' at row 8 Warning 1366 Incorrect string value: '\xF0\x9F\x98' for column `test`.`t1`.`a` at row 8
SELECT HEX(a) FROM t1; SELECT HEX(a) FROM t1;
HEX(a) HEX(a)
3F 3F
@ -10633,7 +10633,7 @@ DROP TABLE t1;
CREATE TABLE t1 (a TEXT CHARACTER SET utf8); CREATE TABLE t1 (a TEXT CHARACTER SET utf8);
LOAD XML INFILE '../../std_data/loaddata/mdev9874.xml' IGNORE INTO TABLE t1 CHARACTER SET utf8 ROWS IDENTIFIED BY '<row>'; LOAD XML INFILE '../../std_data/loaddata/mdev9874.xml' IGNORE INTO TABLE t1 CHARACTER SET utf8 ROWS IDENTIFIED BY '<row>';
Warnings: Warnings:
Warning 1366 Incorrect string value: '\xD0' for column 'a' at row 1 Warning 1366 Incorrect string value: '\xD0' for column `test`.`t1`.`a` at row 1
SELECT HEX(a) FROM t1; SELECT HEX(a) FROM t1;
HEX(a) HEX(a)
613F 613F

View File

@ -222,7 +222,7 @@ drop table t1;
create table t1 (s1 char(10) character set utf8mb4); create table t1 (s1 char(10) character set utf8mb4);
insert ignore into t1 values (0x41FF); insert ignore into t1 values (0x41FF);
Warnings: Warnings:
Warning 1366 Incorrect string value: '\xFF' for column 's1' at row 1 Warning 1366 Incorrect string value: '\xFF' for column `test`.`t1`.`s1` at row 1
select hex(s1) from t1; select hex(s1) from t1;
hex(s1) hex(s1)
413F 413F
@ -230,7 +230,7 @@ drop table t1;
create table t1 (s1 varchar(10) character set utf8mb4); create table t1 (s1 varchar(10) character set utf8mb4);
insert ignore into t1 values (0x41FF); insert ignore into t1 values (0x41FF);
Warnings: Warnings:
Warning 1366 Incorrect string value: '\xFF' for column 's1' at row 1 Warning 1366 Incorrect string value: '\xFF' for column `test`.`t1`.`s1` at row 1
select hex(s1) from t1; select hex(s1) from t1;
hex(s1) hex(s1)
413F 413F
@ -238,7 +238,7 @@ drop table t1;
create table t1 (s1 text character set utf8mb4); create table t1 (s1 text character set utf8mb4);
insert ignore into t1 values (0x41FF); insert ignore into t1 values (0x41FF);
Warnings: Warnings:
Warning 1366 Incorrect string value: '\xFF' for column 's1' at row 1 Warning 1366 Incorrect string value: '\xFF' for column `test`.`t1`.`s1` at row 1
select hex(s1) from t1; select hex(s1) from t1;
hex(s1) hex(s1)
413F 413F
@ -2328,7 +2328,7 @@ insert into t1 values (0xF0908080);
insert into t1 values (0xF0BFBFBF); insert into t1 values (0xF0BFBFBF);
insert ignore into t1 values (0xF08F8080); insert ignore into t1 values (0xF08F8080);
Warnings: Warnings:
Warning 1366 Incorrect string value: '\xF0\x8F\x80\x80' for column 'utf8mb4' at row 1 Warning 1366 Incorrect string value: '\xF0\x8F\x80\x80' for column `test`.`t1`.`utf8mb4` at row 1
select hex(utf8mb4) from t1 order by binary utf8mb4; select hex(utf8mb4) from t1 order by binary utf8mb4;
hex(utf8mb4) hex(utf8mb4)
3F 3F
@ -2348,7 +2348,7 @@ insert into t1 values (0xF4808080);
insert into t1 values (0xF48F8080); insert into t1 values (0xF48F8080);
insert ignore into t1 values (0xF4908080); insert ignore into t1 values (0xF4908080);
Warnings: Warnings:
Warning 1366 Incorrect string value: '\xF4\x90\x80\x80' for column 'utf8mb4' at row 1 Warning 1366 Incorrect string value: '\xF4\x90\x80\x80' for column `test`.`t1`.`utf8mb4` at row 1
select hex(utf8mb4) from t1 order by binary utf8mb4; select hex(utf8mb4) from t1 order by binary utf8mb4;
hex(utf8mb4) hex(utf8mb4)
3F 3F
@ -2442,7 +2442,7 @@ u_decimal hex(utf8mb4_encoding)
119070 F09D849EF09D859EF09D859EF09D8480F09D859FF09D859FF09D859FF09D85A0F09D85A0F09D8480 119070 F09D849EF09D859EF09D859EF09D8480F09D859FF09D859FF09D859FF09D85A0F09D85A0F09D8480
INSERT IGNORE INTO t1 VALUES (1114111, x'f5808080'); INSERT IGNORE INTO t1 VALUES (1114111, x'f5808080');
Warnings: Warnings:
Warning 1366 Incorrect string value: '\xF5\x80\x80\x80' for column 'utf8mb4_encoding' at row 1 Warning 1366 Incorrect string value: '\xF5\x80\x80\x80' for column `test`.`t1`.`utf8mb4_encoding` at row 1
SELECT character_maximum_length, character_octet_length FROM information_schema.columns WHERE SELECT character_maximum_length, character_octet_length FROM information_schema.columns WHERE
table_name= 't1' AND column_name= 'utf8mb4_encoding'; table_name= 't1' AND column_name= 'utf8mb4_encoding';
character_maximum_length character_octet_length character_maximum_length character_octet_length
@ -2456,14 +2456,14 @@ INSERT INTO t2 VALUES (42856, x'ea9da8');
INSERT INTO t2 VALUES (65131, x'efb9ab'); INSERT INTO t2 VALUES (65131, x'efb9ab');
INSERT IGNORE INTO t2 VALUES (1114111, x'f48fbfbf'); INSERT IGNORE INTO t2 VALUES (1114111, x'f48fbfbf');
Warnings: Warnings:
Warning 1366 Incorrect string value: '\xF4\x8F\xBF\xBF' for column 'utf8mb3_encoding' at row 1 Warning 1366 Incorrect string value: '\xF4\x8F\xBF\xBF' for column `test`.`t2`.`utf8mb3_encoding` at row 1
SELECT character_maximum_length, character_octet_length FROM information_schema.columns WHERE SELECT character_maximum_length, character_octet_length FROM information_schema.columns WHERE
table_name= 't2' AND column_name= 'utf8mb3_encoding'; table_name= 't2' AND column_name= 'utf8mb3_encoding';
character_maximum_length character_octet_length character_maximum_length character_octet_length
10 30 10 30
UPDATE IGNORE t2 SET utf8mb3_encoding= x'f48fbfbd' where u_decimal= 42856; UPDATE IGNORE t2 SET utf8mb3_encoding= x'f48fbfbd' where u_decimal= 42856;
Warnings: Warnings:
Warning 1366 Incorrect string value: '\xF4\x8F\xBF\xBD' for column 'utf8mb3_encoding' at row 1 Warning 1366 Incorrect string value: '\xF4\x8F\xBF\xBD' for column `test`.`t2`.`utf8mb3_encoding` at row 1
UPDATE t2 SET utf8mb3_encoding= _utf8mb4 x'ea9da8' where u_decimal= 42856; UPDATE t2 SET utf8mb3_encoding= _utf8mb4 x'ea9da8' where u_decimal= 42856;
SELECT HEX(CONCAT(utf8mb4_encoding, _utf8 x'ea9da8')) FROM t1; SELECT HEX(CONCAT(utf8mb4_encoding, _utf8 x'ea9da8')) FROM t1;
HEX(CONCAT(utf8mb4_encoding, _utf8 x'ea9da8')) HEX(CONCAT(utf8mb4_encoding, _utf8 x'ea9da8'))
@ -2524,17 +2524,17 @@ count(*)
SET STATEMENT sql_mode = 'NO_ENGINE_SUBSTITUTION' FOR SET STATEMENT sql_mode = 'NO_ENGINE_SUBSTITUTION' FOR
ALTER TABLE t1 CONVERT TO CHARACTER SET utf8; ALTER TABLE t1 CONVERT TO CHARACTER SET utf8;
Warnings: Warnings:
Warning 1366 Incorrect string value: '\xF0\x9D\x84\x80' for column 'utf8mb4_encoding' at row 1 Warning 1366 Incorrect string value: '\xF0\x9D\x84\x80' for column `test`.`t1`.`utf8mb4_encoding` at row 1
Warning 1366 Incorrect string value: '\xF0\x9D\x84\x9E' for column 'utf8mb4_encoding' at row 2 Warning 1366 Incorrect string value: '\xF0\x9D\x84\x9E' for column `test`.`t1`.`utf8mb4_encoding` at row 2
Warning 1366 Incorrect string value: '\xF0\x9D\x85\x9E' for column 'utf8mb4_encoding' at row 3 Warning 1366 Incorrect string value: '\xF0\x9D\x85\x9E' for column `test`.`t1`.`utf8mb4_encoding` at row 3
Warning 1366 Incorrect string value: '\xF0\x9D\x87\x8F' for column 'utf8mb4_encoding' at row 4 Warning 1366 Incorrect string value: '\xF0\x9D\x87\x8F' for column `test`.`t1`.`utf8mb4_encoding` at row 4
Warning 1366 Incorrect string value: '\xF0\x9D\x9C\x9F' for column 'utf8mb4_encoding' at row 5 Warning 1366 Incorrect string value: '\xF0\x9D\x9C\x9F' for column `test`.`t1`.`utf8mb4_encoding` at row 5
Warning 1366 Incorrect string value: '\xF0\x9D\x9E\x9F' for column 'utf8mb4_encoding' at row 6 Warning 1366 Incorrect string value: '\xF0\x9D\x9E\x9F' for column `test`.`t1`.`utf8mb4_encoding` at row 6
Warning 1366 Incorrect string value: '\xF4\x8F\xBF\xBF' for column 'utf8mb4_encoding' at row 7 Warning 1366 Incorrect string value: '\xF4\x8F\xBF\xBF' for column `test`.`t1`.`utf8mb4_encoding` at row 7
Warning 1366 Incorrect string value: '\xF3\xA0\x87\xAF' for column 'utf8mb4_encoding' at row 8 Warning 1366 Incorrect string value: '\xF3\xA0\x87\xAF' for column `test`.`t1`.`utf8mb4_encoding` at row 8
Warning 1366 Incorrect string value: '\xF0\x9D\x84\x9E\xF0\x9D...' for column 'utf8mb4_encoding' at row 9 Warning 1366 Incorrect string value: '\xF0\x9D\x84\x9E\xF0\x9D...' for column `test`.`t1`.`utf8mb4_encoding` at row 9
Warning 1366 Incorrect string value: '\xF0\x9D\x84\x9E\xF0\x9D...' for column 'utf8mb4_encoding' at row 10 Warning 1366 Incorrect string value: '\xF0\x9D\x84\x9E\xF0\x9D...' for column `test`.`t1`.`utf8mb4_encoding` at row 10
Warning 1366 Incorrect string value: '\xF0\x9D\x84\x9E\xF0\x9D...' for column 'utf8mb4_encoding' at row 11 Warning 1366 Incorrect string value: '\xF0\x9D\x84\x9E\xF0\x9D...' for column `test`.`t1`.`utf8mb4_encoding` at row 11
SHOW CREATE TABLE t1; SHOW CREATE TABLE t1;
Table Create Table Table Create Table
t1 CREATE TABLE `t1` ( t1 CREATE TABLE `t1` (
@ -3427,8 +3427,8 @@ b VARCHAR(32) CHARACTER SET utf8
); );
INSERT IGNORE INTO t1 SELECT 'a 😁 b', 'a 😁 b'; INSERT IGNORE INTO t1 SELECT 'a 😁 b', 'a 😁 b';
Warnings: Warnings:
Warning 1366 Incorrect string value: '\xF0\x9F\x98\x81 b' for column 'a' at row 1 Warning 1366 Incorrect string value: '\xF0\x9F\x98\x81 b' for column `test`.`t1`.`a` at row 1
Warning 1366 Incorrect string value: '\xF0\x9F\x98\x81 b' for column 'b' at row 1 Warning 1366 Incorrect string value: '\xF0\x9F\x98\x81 b' for column `test`.`t1`.`b` at row 1
SELECT * FROM t1; SELECT * FROM t1;
a b a b
a ???? b a ???? b a ???? b a ???? b
@ -3447,7 +3447,7 @@ b VARCHAR(32) CHARACTER SET utf8
); );
INSERT IGNORE INTO t1 SELECT 'a 😁 b', 'a 😁 b'; INSERT IGNORE INTO t1 SELECT 'a 😁 b', 'a 😁 b';
Warnings: Warnings:
Warning 1366 Incorrect string value: '\xF0\x9F\x98\x81 b' for column 'b' at row 1 Warning 1366 Incorrect string value: '\xF0\x9F\x98\x81 b' for column `test`.`t1`.`b` at row 1
SELECT * FROM t1; SELECT * FROM t1;
a b a b
a 😁 b a ? b a 😁 b a ? b
@ -3539,10 +3539,10 @@ DROP FUNCTION f1;
CREATE TABLE t1 (a TEXT CHARACTER SET utf8mb4); CREATE TABLE t1 (a TEXT CHARACTER SET utf8mb4);
LOAD DATA INFILE '../../std_data/loaddata/mdev9823.utf8mb4.txt' IGNORE INTO TABLE t1 CHARACTER SET utf8mb4 IGNORE 4 LINES; LOAD DATA INFILE '../../std_data/loaddata/mdev9823.utf8mb4.txt' IGNORE INTO TABLE t1 CHARACTER SET utf8mb4 IGNORE 4 LINES;
Warnings: Warnings:
Warning 1366 Incorrect string value: '\xD0' for column 'a' at row 1 Warning 1366 Incorrect string value: '\xD0' for column `test`.`t1`.`a` at row 1
Warning 1366 Incorrect string value: '\xE1\x80' for column 'a' at row 3 Warning 1366 Incorrect string value: '\xE1\x80' for column `test`.`t1`.`a` at row 3
Warning 1366 Incorrect string value: '\xF0\x9F\x98' for column 'a' at row 5 Warning 1366 Incorrect string value: '\xF0\x9F\x98' for column `test`.`t1`.`a` at row 5
Warning 1366 Incorrect string value: '\xF0\x9F\x98' for column 'a' at row 8 Warning 1366 Incorrect string value: '\xF0\x9F\x98' for column `test`.`t1`.`a` at row 8
SELECT HEX(a) FROM t1; SELECT HEX(a) FROM t1;
HEX(a) HEX(a)
3F 3F

View File

@ -222,7 +222,7 @@ drop table t1;
create table t1 (s1 char(10) character set utf8mb4) engine heap; create table t1 (s1 char(10) character set utf8mb4) engine heap;
insert ignore into t1 values (0x41FF); insert ignore into t1 values (0x41FF);
Warnings: Warnings:
Warning 1366 Incorrect string value: '\xFF' for column 's1' at row 1 Warning 1366 Incorrect string value: '\xFF' for column `test`.`t1`.`s1` at row 1
select hex(s1) from t1; select hex(s1) from t1;
hex(s1) hex(s1)
413F 413F
@ -230,7 +230,7 @@ drop table t1;
create table t1 (s1 varchar(10) character set utf8mb4) engine heap; create table t1 (s1 varchar(10) character set utf8mb4) engine heap;
insert ignore into t1 values (0x41FF); insert ignore into t1 values (0x41FF);
Warnings: Warnings:
Warning 1366 Incorrect string value: '\xFF' for column 's1' at row 1 Warning 1366 Incorrect string value: '\xFF' for column `test`.`t1`.`s1` at row 1
select hex(s1) from t1; select hex(s1) from t1;
hex(s1) hex(s1)
413F 413F
@ -2160,7 +2160,7 @@ insert into t1 values (0xF0908080);
insert into t1 values (0xF0BFBFBF); insert into t1 values (0xF0BFBFBF);
insert ignore into t1 values (0xF08F8080); insert ignore into t1 values (0xF08F8080);
Warnings: Warnings:
Warning 1366 Incorrect string value: '\xF0\x8F\x80\x80' for column 'utf8mb4' at row 1 Warning 1366 Incorrect string value: '\xF0\x8F\x80\x80' for column `test`.`t1`.`utf8mb4` at row 1
select hex(utf8mb4) from t1; select hex(utf8mb4) from t1;
hex(utf8mb4) hex(utf8mb4)
3F 3F
@ -2180,7 +2180,7 @@ insert into t1 values (0xF4808080);
insert into t1 values (0xF48F8080); insert into t1 values (0xF48F8080);
insert ignore into t1 values (0xF4908080); insert ignore into t1 values (0xF4908080);
Warnings: Warnings:
Warning 1366 Incorrect string value: '\xF4\x90\x80\x80' for column 'utf8mb4' at row 1 Warning 1366 Incorrect string value: '\xF4\x90\x80\x80' for column `test`.`t1`.`utf8mb4` at row 1
select hex(utf8mb4) from t1; select hex(utf8mb4) from t1;
hex(utf8mb4) hex(utf8mb4)
3F 3F
@ -2255,7 +2255,7 @@ u_decimal hex(utf8mb4_encoding)
917999 F3A087AF 917999 F3A087AF
INSERT IGNORE INTO t1 VALUES (1114111, x'f5808080'); INSERT IGNORE INTO t1 VALUES (1114111, x'f5808080');
Warnings: Warnings:
Warning 1366 Incorrect string value: '\xF5\x80\x80\x80' for column 'utf8mb4_encoding' at row 1 Warning 1366 Incorrect string value: '\xF5\x80\x80\x80' for column `test`.`t1`.`utf8mb4_encoding` at row 1
SELECT character_maximum_length, character_octet_length FROM information_schema.columns WHERE SELECT character_maximum_length, character_octet_length FROM information_schema.columns WHERE
table_name= 't1' AND column_name= 'utf8mb4_encoding'; table_name= 't1' AND column_name= 'utf8mb4_encoding';
character_maximum_length character_octet_length character_maximum_length character_octet_length
@ -2269,14 +2269,14 @@ INSERT INTO t2 VALUES (42856, x'ea9da8');
INSERT INTO t2 VALUES (65131, x'efb9ab'); INSERT INTO t2 VALUES (65131, x'efb9ab');
INSERT IGNORE INTO t2 VALUES (1114111, x'f48fbfbf'); INSERT IGNORE INTO t2 VALUES (1114111, x'f48fbfbf');
Warnings: Warnings:
Warning 1366 Incorrect string value: '\xF4\x8F\xBF\xBF' for column 'utf8mb3_encoding' at row 1 Warning 1366 Incorrect string value: '\xF4\x8F\xBF\xBF' for column `test`.`t2`.`utf8mb3_encoding` at row 1
SELECT character_maximum_length, character_octet_length FROM information_schema.columns WHERE SELECT character_maximum_length, character_octet_length FROM information_schema.columns WHERE
table_name= 't2' AND column_name= 'utf8mb3_encoding'; table_name= 't2' AND column_name= 'utf8mb3_encoding';
character_maximum_length character_octet_length character_maximum_length character_octet_length
10 30 10 30
UPDATE IGNORE t2 SET utf8mb3_encoding= x'f48fbfbd' where u_decimal= 42856; UPDATE IGNORE t2 SET utf8mb3_encoding= x'f48fbfbd' where u_decimal= 42856;
Warnings: Warnings:
Warning 1366 Incorrect string value: '\xF4\x8F\xBF\xBD' for column 'utf8mb3_encoding' at row 1 Warning 1366 Incorrect string value: '\xF4\x8F\xBF\xBD' for column `test`.`t2`.`utf8mb3_encoding` at row 1
UPDATE t2 SET utf8mb3_encoding= _utf8mb4 x'ea9da8' where u_decimal= 42856; UPDATE t2 SET utf8mb3_encoding= _utf8mb4 x'ea9da8' where u_decimal= 42856;
SELECT HEX(CONCAT(utf8mb4_encoding, _utf8 x'ea9da8')) FROM t1; SELECT HEX(CONCAT(utf8mb4_encoding, _utf8 x'ea9da8')) FROM t1;
HEX(CONCAT(utf8mb4_encoding, _utf8 x'ea9da8')) HEX(CONCAT(utf8mb4_encoding, _utf8 x'ea9da8'))

View File

@ -222,7 +222,7 @@ drop table t1;
create table t1 (s1 char(10) character set utf8mb4) engine InnoDB; create table t1 (s1 char(10) character set utf8mb4) engine InnoDB;
insert ignore into t1 values (0x41FF); insert ignore into t1 values (0x41FF);
Warnings: Warnings:
Warning 1366 Incorrect string value: '\xFF' for column 's1' at row 1 Warning 1366 Incorrect string value: '\xFF' for column `test`.`t1`.`s1` at row 1
select hex(s1) from t1; select hex(s1) from t1;
hex(s1) hex(s1)
413F 413F
@ -230,7 +230,7 @@ drop table t1;
create table t1 (s1 varchar(10) character set utf8mb4) engine InnoDB; create table t1 (s1 varchar(10) character set utf8mb4) engine InnoDB;
insert ignore into t1 values (0x41FF); insert ignore into t1 values (0x41FF);
Warnings: Warnings:
Warning 1366 Incorrect string value: '\xFF' for column 's1' at row 1 Warning 1366 Incorrect string value: '\xFF' for column `test`.`t1`.`s1` at row 1
select hex(s1) from t1; select hex(s1) from t1;
hex(s1) hex(s1)
413F 413F
@ -238,7 +238,7 @@ drop table t1;
create table t1 (s1 text character set utf8mb4) engine InnoDB; create table t1 (s1 text character set utf8mb4) engine InnoDB;
insert ignore into t1 values (0x41FF); insert ignore into t1 values (0x41FF);
Warnings: Warnings:
Warning 1366 Incorrect string value: '\xFF' for column 's1' at row 1 Warning 1366 Incorrect string value: '\xFF' for column `test`.`t1`.`s1` at row 1
select hex(s1) from t1; select hex(s1) from t1;
hex(s1) hex(s1)
413F 413F
@ -2288,7 +2288,7 @@ insert into t1 values (0xF0908080);
insert into t1 values (0xF0BFBFBF); insert into t1 values (0xF0BFBFBF);
insert ignore into t1 values (0xF08F8080); insert ignore into t1 values (0xF08F8080);
Warnings: Warnings:
Warning 1366 Incorrect string value: '\xF0\x8F\x80\x80' for column 'utf8mb4' at row 1 Warning 1366 Incorrect string value: '\xF0\x8F\x80\x80' for column `test`.`t1`.`utf8mb4` at row 1
select hex(utf8mb4) from t1; select hex(utf8mb4) from t1;
hex(utf8mb4) hex(utf8mb4)
3F 3F
@ -2308,7 +2308,7 @@ insert into t1 values (0xF4808080);
insert into t1 values (0xF48F8080); insert into t1 values (0xF48F8080);
insert ignore into t1 values (0xF4908080); insert ignore into t1 values (0xF4908080);
Warnings: Warnings:
Warning 1366 Incorrect string value: '\xF4\x90\x80\x80' for column 'utf8mb4' at row 1 Warning 1366 Incorrect string value: '\xF4\x90\x80\x80' for column `test`.`t1`.`utf8mb4` at row 1
select hex(utf8mb4) from t1; select hex(utf8mb4) from t1;
hex(utf8mb4) hex(utf8mb4)
3F 3F
@ -2402,7 +2402,7 @@ u_decimal hex(utf8mb4_encoding)
917999 F3A087AF 917999 F3A087AF
INSERT IGNORE INTO t1 VALUES (1114111, x'f5808080'); INSERT IGNORE INTO t1 VALUES (1114111, x'f5808080');
Warnings: Warnings:
Warning 1366 Incorrect string value: '\xF5\x80\x80\x80' for column 'utf8mb4_encoding' at row 1 Warning 1366 Incorrect string value: '\xF5\x80\x80\x80' for column `test`.`t1`.`utf8mb4_encoding` at row 1
SELECT character_maximum_length, character_octet_length FROM information_schema.columns WHERE SELECT character_maximum_length, character_octet_length FROM information_schema.columns WHERE
table_name= 't1' AND column_name= 'utf8mb4_encoding'; table_name= 't1' AND column_name= 'utf8mb4_encoding';
character_maximum_length character_octet_length character_maximum_length character_octet_length
@ -2416,14 +2416,14 @@ INSERT INTO t2 VALUES (42856, x'ea9da8');
INSERT INTO t2 VALUES (65131, x'efb9ab'); INSERT INTO t2 VALUES (65131, x'efb9ab');
INSERT IGNORE INTO t2 VALUES (1114111, x'f48fbfbf'); INSERT IGNORE INTO t2 VALUES (1114111, x'f48fbfbf');
Warnings: Warnings:
Warning 1366 Incorrect string value: '\xF4\x8F\xBF\xBF' for column 'utf8mb3_encoding' at row 1 Warning 1366 Incorrect string value: '\xF4\x8F\xBF\xBF' for column `test`.`t2`.`utf8mb3_encoding` at row 1
SELECT character_maximum_length, character_octet_length FROM information_schema.columns WHERE SELECT character_maximum_length, character_octet_length FROM information_schema.columns WHERE
table_name= 't2' AND column_name= 'utf8mb3_encoding'; table_name= 't2' AND column_name= 'utf8mb3_encoding';
character_maximum_length character_octet_length character_maximum_length character_octet_length
10 30 10 30
UPDATE IGNORE t2 SET utf8mb3_encoding= x'f48fbfbd' where u_decimal= 42856; UPDATE IGNORE t2 SET utf8mb3_encoding= x'f48fbfbd' where u_decimal= 42856;
Warnings: Warnings:
Warning 1366 Incorrect string value: '\xF4\x8F\xBF\xBD' for column 'utf8mb3_encoding' at row 1 Warning 1366 Incorrect string value: '\xF4\x8F\xBF\xBD' for column `test`.`t2`.`utf8mb3_encoding` at row 1
UPDATE t2 SET utf8mb3_encoding= _utf8mb4 x'ea9da8' where u_decimal= 42856; UPDATE t2 SET utf8mb3_encoding= _utf8mb4 x'ea9da8' where u_decimal= 42856;
SELECT HEX(CONCAT(utf8mb4_encoding, _utf8 x'ea9da8')) FROM t1; SELECT HEX(CONCAT(utf8mb4_encoding, _utf8 x'ea9da8')) FROM t1;
HEX(CONCAT(utf8mb4_encoding, _utf8 x'ea9da8')) HEX(CONCAT(utf8mb4_encoding, _utf8 x'ea9da8'))

View File

@ -222,7 +222,7 @@ drop table t1;
create table t1 (s1 char(10) character set utf8mb4) engine MyISAM; create table t1 (s1 char(10) character set utf8mb4) engine MyISAM;
insert ignore into t1 values (0x41FF); insert ignore into t1 values (0x41FF);
Warnings: Warnings:
Warning 1366 Incorrect string value: '\xFF' for column 's1' at row 1 Warning 1366 Incorrect string value: '\xFF' for column `test`.`t1`.`s1` at row 1
select hex(s1) from t1; select hex(s1) from t1;
hex(s1) hex(s1)
413F 413F
@ -230,7 +230,7 @@ drop table t1;
create table t1 (s1 varchar(10) character set utf8mb4) engine MyISAM; create table t1 (s1 varchar(10) character set utf8mb4) engine MyISAM;
insert ignore into t1 values (0x41FF); insert ignore into t1 values (0x41FF);
Warnings: Warnings:
Warning 1366 Incorrect string value: '\xFF' for column 's1' at row 1 Warning 1366 Incorrect string value: '\xFF' for column `test`.`t1`.`s1` at row 1
select hex(s1) from t1; select hex(s1) from t1;
hex(s1) hex(s1)
413F 413F
@ -238,7 +238,7 @@ drop table t1;
create table t1 (s1 text character set utf8mb4) engine MyISAM; create table t1 (s1 text character set utf8mb4) engine MyISAM;
insert ignore into t1 values (0x41FF); insert ignore into t1 values (0x41FF);
Warnings: Warnings:
Warning 1366 Incorrect string value: '\xFF' for column 's1' at row 1 Warning 1366 Incorrect string value: '\xFF' for column `test`.`t1`.`s1` at row 1
select hex(s1) from t1; select hex(s1) from t1;
hex(s1) hex(s1)
413F 413F
@ -2288,7 +2288,7 @@ insert into t1 values (0xF0908080);
insert into t1 values (0xF0BFBFBF); insert into t1 values (0xF0BFBFBF);
insert ignore into t1 values (0xF08F8080); insert ignore into t1 values (0xF08F8080);
Warnings: Warnings:
Warning 1366 Incorrect string value: '\xF0\x8F\x80\x80' for column 'utf8mb4' at row 1 Warning 1366 Incorrect string value: '\xF0\x8F\x80\x80' for column `test`.`t1`.`utf8mb4` at row 1
select hex(utf8mb4) from t1; select hex(utf8mb4) from t1;
hex(utf8mb4) hex(utf8mb4)
3F 3F
@ -2308,7 +2308,7 @@ insert into t1 values (0xF4808080);
insert into t1 values (0xF48F8080); insert into t1 values (0xF48F8080);
insert ignore into t1 values (0xF4908080); insert ignore into t1 values (0xF4908080);
Warnings: Warnings:
Warning 1366 Incorrect string value: '\xF4\x90\x80\x80' for column 'utf8mb4' at row 1 Warning 1366 Incorrect string value: '\xF4\x90\x80\x80' for column `test`.`t1`.`utf8mb4` at row 1
select hex(utf8mb4) from t1; select hex(utf8mb4) from t1;
hex(utf8mb4) hex(utf8mb4)
3F 3F
@ -2402,7 +2402,7 @@ u_decimal hex(utf8mb4_encoding)
917999 F3A087AF 917999 F3A087AF
INSERT IGNORE INTO t1 VALUES (1114111, x'f5808080'); INSERT IGNORE INTO t1 VALUES (1114111, x'f5808080');
Warnings: Warnings:
Warning 1366 Incorrect string value: '\xF5\x80\x80\x80' for column 'utf8mb4_encoding' at row 1 Warning 1366 Incorrect string value: '\xF5\x80\x80\x80' for column `test`.`t1`.`utf8mb4_encoding` at row 1
SELECT character_maximum_length, character_octet_length FROM information_schema.columns WHERE SELECT character_maximum_length, character_octet_length FROM information_schema.columns WHERE
table_name= 't1' AND column_name= 'utf8mb4_encoding'; table_name= 't1' AND column_name= 'utf8mb4_encoding';
character_maximum_length character_octet_length character_maximum_length character_octet_length
@ -2416,14 +2416,14 @@ INSERT INTO t2 VALUES (42856, x'ea9da8');
INSERT INTO t2 VALUES (65131, x'efb9ab'); INSERT INTO t2 VALUES (65131, x'efb9ab');
INSERT IGNORE INTO t2 VALUES (1114111, x'f48fbfbf'); INSERT IGNORE INTO t2 VALUES (1114111, x'f48fbfbf');
Warnings: Warnings:
Warning 1366 Incorrect string value: '\xF4\x8F\xBF\xBF' for column 'utf8mb3_encoding' at row 1 Warning 1366 Incorrect string value: '\xF4\x8F\xBF\xBF' for column `test`.`t2`.`utf8mb3_encoding` at row 1
SELECT character_maximum_length, character_octet_length FROM information_schema.columns WHERE SELECT character_maximum_length, character_octet_length FROM information_schema.columns WHERE
table_name= 't2' AND column_name= 'utf8mb3_encoding'; table_name= 't2' AND column_name= 'utf8mb3_encoding';
character_maximum_length character_octet_length character_maximum_length character_octet_length
10 30 10 30
UPDATE IGNORE t2 SET utf8mb3_encoding= x'f48fbfbd' where u_decimal= 42856; UPDATE IGNORE t2 SET utf8mb3_encoding= x'f48fbfbd' where u_decimal= 42856;
Warnings: Warnings:
Warning 1366 Incorrect string value: '\xF4\x8F\xBF\xBD' for column 'utf8mb3_encoding' at row 1 Warning 1366 Incorrect string value: '\xF4\x8F\xBF\xBD' for column `test`.`t2`.`utf8mb3_encoding` at row 1
UPDATE t2 SET utf8mb3_encoding= _utf8mb4 x'ea9da8' where u_decimal= 42856; UPDATE t2 SET utf8mb3_encoding= _utf8mb4 x'ea9da8' where u_decimal= 42856;
SELECT HEX(CONCAT(utf8mb4_encoding, _utf8 x'ea9da8')) FROM t1; SELECT HEX(CONCAT(utf8mb4_encoding, _utf8 x'ea9da8')) FROM t1;
HEX(CONCAT(utf8mb4_encoding, _utf8 x'ea9da8')) HEX(CONCAT(utf8mb4_encoding, _utf8 x'ea9da8'))

View File

@ -284,9 +284,9 @@ CREATE TABLE t2 (
); );
SET SQL_MODE='NO_ZERO_DATE,STRICT_ALL_TABLES,NO_ZERO_IN_DATE'; SET SQL_MODE='NO_ZERO_DATE,STRICT_ALL_TABLES,NO_ZERO_IN_DATE';
INSERT DELAYED INTO t2 VALUES (0,'0000-00-00'); INSERT DELAYED INTO t2 VALUES (0,'0000-00-00');
ERROR 22007: Incorrect date value: '0000-00-00' for column 'f1' at row 1 ERROR 22007: Incorrect date value: '0000-00-00' for column `test`.`t2`.`f1` at row 1
INSERT DELAYED INTO t2 VALUES (0,'2007-00-00'); INSERT DELAYED INTO t2 VALUES (0,'2007-00-00');
ERROR 22007: Incorrect date value: '2007-00-00' for column 'f1' at row 1 ERROR 22007: Incorrect date value: '2007-00-00' for column `test`.`t2`.`f1` at row 1
DROP TABLE t1,t2; DROP TABLE t1,t2;
set @old_delayed_updates = @@global.low_priority_updates; set @old_delayed_updates = @@global.low_priority_updates;
set global low_priority_updates = 1; set global low_priority_updates = 1;

View File

@ -96,7 +96,7 @@ select release_lock('ee_16407_2');
insert into events_test.events_smode_test values('ee_16407_2','1980-19-02'); insert into events_test.events_smode_test values('ee_16407_2','1980-19-02');
end| end|
insert into events_test.events_smode_test values ('test','1980-19-02')| insert into events_test.events_smode_test values ('test','1980-19-02')|
ERROR 22007: Incorrect date value: '1980-19-02' for column 'a' at row 1 ERROR 22007: Incorrect date value: '1980-19-02' for column `events_test`.`events_smode_test`.`a` at row 1
"This is ok" "This is ok"
create event ee_16407_3 on schedule every 60 second do create event ee_16407_3 on schedule every 60 second do
begin begin

View File

@ -382,10 +382,10 @@ aus Osnabr
SET STATEMENT sql_mode = 'NO_ENGINE_SUBSTITUTION' FOR SET STATEMENT sql_mode = 'NO_ENGINE_SUBSTITUTION' FOR
alter table t1 modify t varchar(200) collate latin1_german2_ci not null; alter table t1 modify t varchar(200) collate latin1_german2_ci not null;
Warnings: Warnings:
Warning 1366 Incorrect string value: '\xD0\xAD\xD1\x82\xD0\xBE...' for column 't' at row 3 Warning 1366 Incorrect string value: '\xD0\xAD\xD1\x82\xD0\xBE...' for column `test`.`t1`.`t` at row 3
Warning 1366 Incorrect string value: '\xD0\x9E\xD1\x82\xD0\xBB...' for column 't' at row 4 Warning 1366 Incorrect string value: '\xD0\x9E\xD1\x82\xD0\xBB...' for column `test`.`t1`.`t` at row 4
Warning 1366 Incorrect string value: '\xD0\x9D\xD0\xB5 \xD0...' for column 't' at row 5 Warning 1366 Incorrect string value: '\xD0\x9D\xD0\xB5 \xD0...' for column `test`.`t1`.`t` at row 5
Warning 1366 Incorrect string value: '\xD0\xB8 \xD0\xB1\xD1...' for column 't' at row 6 Warning 1366 Incorrect string value: '\xD0\xB8 \xD0\xB1\xD1...' for column `test`.`t1`.`t` at row 6
SELECT t, collation(t) FROM t1 WHERE MATCH t AGAINST ('Osnabrück'); SELECT t, collation(t) FROM t1 WHERE MATCH t AGAINST ('Osnabrück');
t collation(t) t collation(t)
aus Osnabrück latin1_german2_ci aus Osnabrück latin1_german2_ci

View File

@ -172,8 +172,8 @@ INTERVAL( 9, 1, DATE_ADD( pk, INTERVAL pk MINUTE_SECOND ), 9, 8, 3, 5, 2, 1 )
8 8
8 8
Warnings: Warnings:
Warning 1292 Incorrect datetime value: '10' for column 'pk' at row 1 Warning 1292 Incorrect datetime value: '10' for column `test`.`t1`.`pk` at row 1
Warning 1292 Incorrect datetime value: '11' for column 'pk' at row 2 Warning 1292 Incorrect datetime value: '11' for column `test`.`t1`.`pk` at row 2
DROP TABLE t1; DROP TABLE t1;
# #
# End of 5.3 tests # End of 5.3 tests

View File

@ -1689,7 +1689,7 @@ NULL
# #
create table t1 (pt point); create table t1 (pt point);
insert into t1 values(Geomfromtext('POLYGON((1 1, 2 2, 2 1, 1 1))')); insert into t1 values(Geomfromtext('POLYGON((1 1, 2 2, 2 1, 1 1))'));
ERROR 22007: Incorrect POINT value: 'POLYGON' for column 'pt' at row 1 ERROR 22007: Incorrect POINT value: 'POLYGON' for column `test`.`t1`.`pt` at row 1
drop table t1; drop table t1;
SELECT st_astext(ST_Buffer(ST_PolygonFromText('POLYGON((3 5, 2 4, 2 5, 3 5))'), -100)); SELECT st_astext(ST_Buffer(ST_PolygonFromText('POLYGON((3 5, 2 4, 2 5, 3 5))'), -100));
st_astext(ST_Buffer(ST_PolygonFromText('POLYGON((3 5, 2 4, 2 5, 3 5))'), -100)) st_astext(ST_Buffer(ST_PolygonFromText('POLYGON((3 5, 2 4, 2 5, 3 5))'), -100))

View File

@ -851,7 +851,7 @@ DROP TABLE t1;
create table t1 (a int,b char(5),primary key (a), key (b(1))); create table t1 (a int,b char(5),primary key (a), key (b(1)));
insert ignore into t1 values ('a','b'); insert ignore into t1 values ('a','b');
Warnings: Warnings:
Warning 1366 Incorrect integer value: 'a' for column 'a' at row 1 Warning 1366 Incorrect integer value: 'a' for column `test`.`t1`.`a` at row 1
select 1 from t1 where a and b >= 'aa'; select 1 from t1 where a and b >= 'aa';
1 1
drop table t1; drop table t1;

View File

@ -92,14 +92,14 @@ create table t1(number int auto_increment primary key, original_value varchar(50
set @value= "aa"; set @value= "aa";
insert ignore into t1 values(null,@value,@value,@value,@value,@value,@value,@value,@value,@value); insert ignore into t1 values(null,@value,@value,@value,@value,@value,@value,@value,@value,@value);
Warnings: Warnings:
Warning 1366 Incorrect double value: 'aa' for column 'f_double' at row 1 Warning 1366 Incorrect double value: 'aa' for column `test`.`t1`.`f_double` at row 1
Warning 1366 Incorrect double value: 'aa' for column 'f_float' at row 1 Warning 1366 Incorrect double value: 'aa' for column `test`.`t1`.`f_float` at row 1
Warning 1366 Incorrect double value: 'aa' for column 'f_double_7_2' at row 1 Warning 1366 Incorrect double value: 'aa' for column `test`.`t1`.`f_double_7_2` at row 1
Warning 1366 Incorrect double value: 'aa' for column 'f_float_4_3' at row 1 Warning 1366 Incorrect double value: 'aa' for column `test`.`t1`.`f_float_4_3` at row 1
Warning 1366 Incorrect double value: 'aa' for column 'f_double_u' at row 1 Warning 1366 Incorrect double value: 'aa' for column `test`.`t1`.`f_double_u` at row 1
Warning 1366 Incorrect double value: 'aa' for column 'f_float_u' at row 1 Warning 1366 Incorrect double value: 'aa' for column `test`.`t1`.`f_float_u` at row 1
Warning 1366 Incorrect double value: 'aa' for column 'f_double_15_1_u' at row 1 Warning 1366 Incorrect double value: 'aa' for column `test`.`t1`.`f_double_15_1_u` at row 1
Warning 1366 Incorrect double value: 'aa' for column 'f_float_3_1_u' at row 1 Warning 1366 Incorrect double value: 'aa' for column `test`.`t1`.`f_float_3_1_u` at row 1
select * from t1 where number =last_insert_id(); select * from t1 where number =last_insert_id();
number 1 number 1
original_value aa original_value aa
@ -136,14 +136,14 @@ f_float_3_1_u 1.0
set @value= "aa1"; set @value= "aa1";
insert ignore into t1 values(null,@value,@value,@value,@value,@value,@value,@value,@value,@value); insert ignore into t1 values(null,@value,@value,@value,@value,@value,@value,@value,@value,@value);
Warnings: Warnings:
Warning 1366 Incorrect double value: 'aa1' for column 'f_double' at row 1 Warning 1366 Incorrect double value: 'aa1' for column `test`.`t1`.`f_double` at row 1
Warning 1366 Incorrect double value: 'aa1' for column 'f_float' at row 1 Warning 1366 Incorrect double value: 'aa1' for column `test`.`t1`.`f_float` at row 1
Warning 1366 Incorrect double value: 'aa1' for column 'f_double_7_2' at row 1 Warning 1366 Incorrect double value: 'aa1' for column `test`.`t1`.`f_double_7_2` at row 1
Warning 1366 Incorrect double value: 'aa1' for column 'f_float_4_3' at row 1 Warning 1366 Incorrect double value: 'aa1' for column `test`.`t1`.`f_float_4_3` at row 1
Warning 1366 Incorrect double value: 'aa1' for column 'f_double_u' at row 1 Warning 1366 Incorrect double value: 'aa1' for column `test`.`t1`.`f_double_u` at row 1
Warning 1366 Incorrect double value: 'aa1' for column 'f_float_u' at row 1 Warning 1366 Incorrect double value: 'aa1' for column `test`.`t1`.`f_float_u` at row 1
Warning 1366 Incorrect double value: 'aa1' for column 'f_double_15_1_u' at row 1 Warning 1366 Incorrect double value: 'aa1' for column `test`.`t1`.`f_double_15_1_u` at row 1
Warning 1366 Incorrect double value: 'aa1' for column 'f_float_3_1_u' at row 1 Warning 1366 Incorrect double value: 'aa1' for column `test`.`t1`.`f_float_3_1_u` at row 1
select * from t1 where number =last_insert_id(); select * from t1 where number =last_insert_id();
number 3 number 3
original_value aa1 original_value aa1

View File

@ -45,10 +45,10 @@ load data infile '../../std_data/loaddata3.dat' into table t1 fields terminated
Warnings: Warnings:
Note 1265 Data truncated for column 'a' at row 1 Note 1265 Data truncated for column 'a' at row 1
Note 1265 Data truncated for column 'a' at row 2 Note 1265 Data truncated for column 'a' at row 2
Warning 1366 Incorrect integer value: 'error ' for column 'a' at row 3 Warning 1366 Incorrect integer value: 'error ' for column `test`.`t1`.`a` at row 3
Warning 1262 Row 3 was truncated; it contained more data than there were input columns Warning 1262 Row 3 was truncated; it contained more data than there were input columns
Note 1265 Data truncated for column 'a' at row 4 Note 1265 Data truncated for column 'a' at row 4
Warning 1366 Incorrect integer value: 'wrong end ' for column 'a' at row 5 Warning 1366 Incorrect integer value: 'wrong end ' for column `test`.`t1`.`a` at row 5
Warning 1262 Row 5 was truncated; it contained more data than there were input columns Warning 1262 Row 5 was truncated; it contained more data than there were input columns
select * from t1; select * from t1;
a b a b
@ -64,7 +64,7 @@ Note 1265 Data truncated for column 'a' at row 1
Note 1265 Data truncated for column 'a' at row 2 Note 1265 Data truncated for column 'a' at row 2
Note 1265 Data truncated for column 'a' at row 3 Note 1265 Data truncated for column 'a' at row 3
Warning 1366 Incorrect integer value: ' Warning 1366 Incorrect integer value: '
' for column 'a' at row 4 ' for column `test`.`t1`.`a` at row 4
Warning 1261 Row 4 doesn't contain data for all columns Warning 1261 Row 4 doesn't contain data for all columns
select * from t1; select * from t1;
a b a b

View File

@ -849,7 +849,7 @@ DROP TABLE t1;
create table t1 (a int,b char(5),primary key (a), key (b(1))); create table t1 (a int,b char(5),primary key (a), key (b(1)));
insert ignore into t1 values ('a','b'); insert ignore into t1 values ('a','b');
Warnings: Warnings:
Warning 1366 Incorrect integer value: 'a' for column 'a' at row 1 Warning 1366 Incorrect integer value: 'a' for column `test`.`t1`.`a` at row 1
select 1 from t1 where a and b >= 'aa'; select 1 from t1 where a and b >= 'aa';
1 1
drop table t1; drop table t1;

View File

@ -206,7 +206,7 @@ a b c
# latin1 charset (INTO OUTFILE warning is expected): # latin1 charset (INTO OUTFILE warning is expected):
SELECT * INTO OUTFILE 'MYSQLTEST_VARDIR/tmp/t1.txt' CHARACTER SET latin1 FROM t1; SELECT * INTO OUTFILE 'MYSQLTEST_VARDIR/tmp/t1.txt' CHARACTER SET latin1 FROM t1;
Warnings: Warnings:
Warning 1366 Incorrect string value: '\xE1\xE2\xF7' for column 'b' at row 1 Warning 1366 Data truncated for column 'b' at row 1
################################################## ##################################################
1 ABC-??? DEF-ÂÃÄ 1 ABC-??? DEF-ÂÃÄ
2 \N \N 2 \N \N
@ -221,7 +221,7 @@ a b c
# KOI8-R charset (INTO OUTFILE warning is expected): # KOI8-R charset (INTO OUTFILE warning is expected):
SELECT * INTO OUTFILE 'MYSQLTEST_VARDIR/tmp/t1.txt' CHARACTER SET koi8r FROM t1; SELECT * INTO OUTFILE 'MYSQLTEST_VARDIR/tmp/t1.txt' CHARACTER SET koi8r FROM t1;
Warnings: Warnings:
Warning 1366 Incorrect string value: '\xC2\xC3\xC4' for column 'c' at row 1 Warning 1366 Data truncated for column 'c' at row 1
################################################## ##################################################
1 ABC-áâ÷ DEF-??? 1 ABC-áâ÷ DEF-???
2 \N \N 2 \N \N

View File

@ -912,7 +912,7 @@ CREATE ALGORITHM = MERGE VIEW v AS SELECT a, b FROM t1 STRAIGHT_JOIN t2 WHERE b
INSERT INTO t1 VALUES (1),(2); INSERT INTO t1 VALUES (1),(2);
INSERT IGNORE INTO t2 VALUES (2,2),('three',3),(4,4); INSERT IGNORE INTO t2 VALUES (2,2),('three',3),(4,4);
Warnings: Warnings:
Warning 1366 Incorrect integer value: 'three' for column 'b' at row 2 Warning 1366 Incorrect integer value: 'three' for column `test`.`t2`.`b` at row 2
UPDATE v SET a = NULL; UPDATE v SET a = NULL;
Warnings: Warnings:
Warning 1292 Truncated incorrect DOUBLE value: 'foo' Warning 1292 Truncated incorrect DOUBLE value: 'foo'

View File

@ -39,7 +39,7 @@ utf8mb4_string xxx😎yyy
Warnings: Warnings:
Level Warning Level Warning
Code 1366 Code 1366
Message Incorrect string value: '\xF0\x9F\x98\x8Eyy...' for column 'INFO' at row 1 Message Incorrect string value: '\xF0\x9F\x98\x8Eyy...' for column `information_schema`.`(temporary)`.`INFO` at row 1
# #
# End of 10.1 tests # End of 10.1 tests
# #

View File

@ -5141,13 +5141,13 @@ DECLARE a DATETIME;
CALL p1(a); CALL p1(a);
END; END;
$$ $$
ERROR 22007: Incorrect datetime value: '10' for column 'a' at row 1 ERROR 22007: Incorrect datetime value: '10' for column ``.``.`a` at row 1
BEGIN NOT ATOMIC BEGIN NOT ATOMIC
DECLARE a DATETIME; DECLARE a DATETIME;
EXECUTE IMMEDIATE 'CALL p1(?)' USING a; EXECUTE IMMEDIATE 'CALL p1(?)' USING a;
END; END;
$$ $$
ERROR 22007: Incorrect datetime value: '10' for column 'a' at row 1 ERROR 22007: Incorrect datetime value: '10' for column ``.``.`a` at row 1
BEGIN NOT ATOMIC BEGIN NOT ATOMIC
DECLARE a DATETIME; DECLARE a DATETIME;
PREPARE stmt FROM 'CALL p1(?)'; PREPARE stmt FROM 'CALL p1(?)';
@ -5155,7 +5155,7 @@ EXECUTE stmt USING a;
DEALLOCATE PREPARE stmt; DEALLOCATE PREPARE stmt;
END; END;
$$ $$
ERROR 22007: Incorrect datetime value: '10' for column 'a' at row 1 ERROR 22007: Incorrect datetime value: '10' for column ``.``.`a` at row 1
DROP PROCEDURE p1; DROP PROCEDURE p1;
# #
# MDEV-14603 signal 11 with short stacktrace # MDEV-14603 signal 11 with short stacktrace

View File

@ -2077,22 +2077,22 @@ SELECT * FROM t1 WHERE fd='😁';
id select_type table type possible_keys key key_len ref rows Extra id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables 1 SIMPLE NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
Warnings: Warnings:
Warning 1366 Incorrect string value: '\xF0\x9F\x98\x81' for column 'fd' at row 1 Warning 1366 Incorrect string value: '\xF0\x9F\x98\x81' for column `test`.`t1`.`fd` at row 1
SELECT * FROM t1 WHERE fd='😁'; SELECT * FROM t1 WHERE fd='😁';
id fd id fd
Warnings: Warnings:
Warning 1366 Incorrect string value: '\xF0\x9F\x98\x81' for column 'fd' at row 1 Warning 1366 Incorrect string value: '\xF0\x9F\x98\x81' for column `test`.`t1`.`fd` at row 1
# The following must not use range access: # The following must not use range access:
explain select count(*) from t1 where fd <'😁'; explain select count(*) from t1 where fd <'😁';
id select_type table type possible_keys key key_len ref rows Extra id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE t1 index ix_fd ix_fd 63 NULL # Using where; Using index 1 SIMPLE t1 index ix_fd ix_fd 63 NULL # Using where; Using index
Warnings: Warnings:
Warning 1366 Incorrect string value: '\xF0\x9F\x98\x81' for column 'fd' at row 1 Warning 1366 Incorrect string value: '\xF0\x9F\x98\x81' for column `test`.`t1`.`fd` at row 1
select count(*) from t1 where fd <'😁'; select count(*) from t1 where fd <'😁';
count(*) count(*)
40960 40960
Warnings: Warnings:
Warning 1366 Incorrect string value: '\xF0\x9F\x98\x81' for column 'fd' at row 1 Warning 1366 Incorrect string value: '\xF0\x9F\x98\x81' for column `test`.`t1`.`fd` at row 1
select count(*) from t1 ignore index (ix_fd) where fd <'😁'; select count(*) from t1 ignore index (ix_fd) where fd <'😁';
count(*) count(*)
40960 40960
@ -2314,7 +2314,7 @@ EXPLAIN SELECT * FROM t1 WHERE a<=>'😎';
id select_type table type possible_keys key key_len ref rows Extra id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables 1 SIMPLE NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
Warnings: Warnings:
Warning 1366 Incorrect string value: '\xF0\x9F\x98\x8E' for column 'a' at row 1 Warning 1366 Incorrect string value: '\xF0\x9F\x98\x8E' for column `test`.`t1`.`a` at row 1
DROP TABLE t1; DROP TABLE t1;
# #
# MDEV-10185: Assertion `tree1->keys[key_no] && tree2->keys[key_no]' failed in # MDEV-10185: Assertion `tree1->keys[key_no] && tree2->keys[key_no]' failed in

View File

@ -2079,22 +2079,22 @@ SELECT * FROM t1 WHERE fd='😁';
id select_type table type possible_keys key key_len ref rows Extra id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables 1 SIMPLE NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
Warnings: Warnings:
Warning 1366 Incorrect string value: '\xF0\x9F\x98\x81' for column 'fd' at row 1 Warning 1366 Incorrect string value: '\xF0\x9F\x98\x81' for column `test`.`t1`.`fd` at row 1
SELECT * FROM t1 WHERE fd='😁'; SELECT * FROM t1 WHERE fd='😁';
id fd id fd
Warnings: Warnings:
Warning 1366 Incorrect string value: '\xF0\x9F\x98\x81' for column 'fd' at row 1 Warning 1366 Incorrect string value: '\xF0\x9F\x98\x81' for column `test`.`t1`.`fd` at row 1
# The following must not use range access: # The following must not use range access:
explain select count(*) from t1 where fd <'😁'; explain select count(*) from t1 where fd <'😁';
id select_type table type possible_keys key key_len ref rows Extra id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE t1 index ix_fd ix_fd 63 NULL # Using where; Using index 1 SIMPLE t1 index ix_fd ix_fd 63 NULL # Using where; Using index
Warnings: Warnings:
Warning 1366 Incorrect string value: '\xF0\x9F\x98\x81' for column 'fd' at row 1 Warning 1366 Incorrect string value: '\xF0\x9F\x98\x81' for column `test`.`t1`.`fd` at row 1
select count(*) from t1 where fd <'😁'; select count(*) from t1 where fd <'😁';
count(*) count(*)
40960 40960
Warnings: Warnings:
Warning 1366 Incorrect string value: '\xF0\x9F\x98\x81' for column 'fd' at row 1 Warning 1366 Incorrect string value: '\xF0\x9F\x98\x81' for column `test`.`t1`.`fd` at row 1
select count(*) from t1 ignore index (ix_fd) where fd <'😁'; select count(*) from t1 ignore index (ix_fd) where fd <'😁';
count(*) count(*)
40960 40960
@ -2316,7 +2316,7 @@ EXPLAIN SELECT * FROM t1 WHERE a<=>'😎';
id select_type table type possible_keys key key_len ref rows Extra id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables 1 SIMPLE NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
Warnings: Warnings:
Warning 1366 Incorrect string value: '\xF0\x9F\x98\x8E' for column 'a' at row 1 Warning 1366 Incorrect string value: '\xF0\x9F\x98\x8E' for column `test`.`t1`.`a` at row 1
DROP TABLE t1; DROP TABLE t1;
# #
# MDEV-10185: Assertion `tree1->keys[key_no] && tree2->keys[key_no]' failed in # MDEV-10185: Assertion `tree1->keys[key_no] && tree2->keys[key_no]' failed in

View File

@ -2784,7 +2784,7 @@ END|
CALL p1()| CALL p1()|
Warnings: Warnings:
Warning 1366 Incorrect integer value: 'string' for column 'var1' at row 1 Warning 1366 Incorrect integer value: 'string' for column ``.``.`var1` at row 1
SET sql_mode = DEFAULT; SET sql_mode = DEFAULT;
CREATE PROCEDURE p2() CREATE PROCEDURE p2()

View File

@ -140,7 +140,7 @@ SELECT sp_vars_check_ret3();
sp_vars_check_ret3() sp_vars_check_ret3()
0 0
Warnings: Warnings:
Warning 1366 Incorrect integer value: 'Hello, world' for column 'sp_vars_check_ret3()' at row 1 Warning 1366 Incorrect integer value: 'Hello, world' for column ``.``.`sp_vars_check_ret3()` at row 1
SELECT sp_vars_check_ret4(); SELECT sp_vars_check_ret4();
sp_vars_check_ret4() sp_vars_check_ret4()
154.12 154.12
@ -195,7 +195,7 @@ SELECT sp_vars_check_ret3();
sp_vars_check_ret3() sp_vars_check_ret3()
0 0
Warnings: Warnings:
Warning 1366 Incorrect integer value: 'Hello, world' for column 'sp_vars_check_ret3()' at row 1 Warning 1366 Incorrect integer value: 'Hello, world' for column ``.``.`sp_vars_check_ret3()` at row 1
SELECT sp_vars_check_ret4(); SELECT sp_vars_check_ret4();
sp_vars_check_ret4() sp_vars_check_ret4()
154.12 154.12
@ -314,7 +314,7 @@ ERROR 22003: Out of range value for column 'sp_vars_check_ret1()' at row 1
SELECT sp_vars_check_ret2(); SELECT sp_vars_check_ret2();
ERROR 22003: Out of range value for column 'sp_vars_check_ret2()' at row 1 ERROR 22003: Out of range value for column 'sp_vars_check_ret2()' at row 1
SELECT sp_vars_check_ret3(); SELECT sp_vars_check_ret3();
ERROR 22007: Incorrect integer value: 'Hello, world' for column 'sp_vars_check_ret3()' at row 1 ERROR 22007: Incorrect integer value: 'Hello, world' for column ``.``.`sp_vars_check_ret3()` at row 1
SELECT sp_vars_check_ret4(); SELECT sp_vars_check_ret4();
sp_vars_check_ret4() sp_vars_check_ret4()
154.12 154.12
@ -897,7 +897,7 @@ sp_var
@user_var @user_var
0 0
Warnings: Warnings:
Warning 1366 Incorrect integer value: 'Hello, world!' for column 'sp_var' at row 1 Warning 1366 Incorrect integer value: 'Hello, world!' for column ``.``.`sp_var` at row 1
DROP PROCEDURE p1; DROP PROCEDURE p1;
DROP TABLE t1; DROP TABLE t1;

View File

@ -4613,7 +4613,7 @@ call bug15231_3()|
Result Result
Missed it (correct) Missed it (correct)
Level Code Message Level Code Message
Warning 1366 Incorrect decimal value: 'zap' for column 'x' at row 1 Warning 1366 Incorrect decimal value: 'zap' for column ``.``.`x` at row 1
Result Result
Caught it (correct) Caught it (correct)
call bug15231_5()| call bug15231_5()|
@ -6476,7 +6476,7 @@ DROP TABLE t1;
CALL p2('text'); CALL p2('text');
Warnings: Warnings:
Warning 1366 Incorrect integer value: 'text' for column 'v' at row 1 Warning 1366 Incorrect integer value: 'text' for column ``.``.`v` at row 1
SHOW CREATE TABLE t1; SHOW CREATE TABLE t1;
Table Create Table Table Create Table
t1 CREATE TABLE `t1` ( t1 CREATE TABLE `t1` (
@ -8396,6 +8396,6 @@ FETCH c INTO a;
CLOSE c; CLOSE c;
END; END;
$$ $$
ERROR 22007: Incorrect integer value: 'y' for column 'a' at row 1 ERROR 22007: Incorrect integer value: 'y' for column ``.``.`a` at row 1
DROP TABLE t1; DROP TABLE t1;
SET sql_mode=DEFAULT; SET sql_mode=DEFAULT;

View File

@ -8,43 +8,43 @@ CREATE TABLE t1 (col1 date);
INSERT INTO t1 VALUES('2004-01-01'),('2004-02-29'); INSERT INTO t1 VALUES('2004-01-01'),('2004-02-29');
INSERT INTO t1 VALUES('0000-10-31'); INSERT INTO t1 VALUES('0000-10-31');
INSERT INTO t1 VALUES('2004-0-31'); INSERT INTO t1 VALUES('2004-0-31');
ERROR 22007: Incorrect date value: '2004-0-31' for column 'col1' at row 1 ERROR 22007: Incorrect date value: '2004-0-31' for column `test`.`t1`.`col1` at row 1
INSERT INTO t1 VALUES('2004-01-02'),('2004-0-31'); INSERT INTO t1 VALUES('2004-01-02'),('2004-0-31');
ERROR 22007: Incorrect date value: '2004-0-31' for column 'col1' at row 2 ERROR 22007: Incorrect date value: '2004-0-31' for column `test`.`t1`.`col1` at row 2
INSERT INTO t1 VALUES('2004-10-0'); INSERT INTO t1 VALUES('2004-10-0');
ERROR 22007: Incorrect date value: '2004-10-0' for column 'col1' at row 1 ERROR 22007: Incorrect date value: '2004-10-0' for column `test`.`t1`.`col1` at row 1
INSERT INTO t1 VALUES('2004-09-31'); INSERT INTO t1 VALUES('2004-09-31');
ERROR 22007: Incorrect date value: '2004-09-31' for column 'col1' at row 1 ERROR 22007: Incorrect date value: '2004-09-31' for column `test`.`t1`.`col1` at row 1
INSERT INTO t1 VALUES('2004-10-32'); INSERT INTO t1 VALUES('2004-10-32');
ERROR 22007: Incorrect date value: '2004-10-32' for column 'col1' at row 1 ERROR 22007: Incorrect date value: '2004-10-32' for column `test`.`t1`.`col1` at row 1
INSERT INTO t1 VALUES('2003-02-29'); INSERT INTO t1 VALUES('2003-02-29');
ERROR 22007: Incorrect date value: '2003-02-29' for column 'col1' at row 1 ERROR 22007: Incorrect date value: '2003-02-29' for column `test`.`t1`.`col1` at row 1
INSERT INTO t1 VALUES('2004-13-15'); INSERT INTO t1 VALUES('2004-13-15');
ERROR 22007: Incorrect date value: '2004-13-15' for column 'col1' at row 1 ERROR 22007: Incorrect date value: '2004-13-15' for column `test`.`t1`.`col1` at row 1
INSERT INTO t1 VALUES('0000-00-00'); INSERT INTO t1 VALUES('0000-00-00');
ERROR 22007: Incorrect date value: '0000-00-00' for column 'col1' at row 1 ERROR 22007: Incorrect date value: '0000-00-00' for column `test`.`t1`.`col1` at row 1
INSERT INTO t1 VALUES ('59'); INSERT INTO t1 VALUES ('59');
ERROR 22007: Incorrect date value: '59' for column 'col1' at row 1 ERROR 22007: Incorrect date value: '59' for column `test`.`t1`.`col1` at row 1
set @@sql_mode='STRICT_ALL_TABLES'; set @@sql_mode='STRICT_ALL_TABLES';
INSERT INTO t1 VALUES('2004-01-03'),('2004-0-31'); INSERT INTO t1 VALUES('2004-01-03'),('2004-0-31');
set @@sql_mode='STRICT_ALL_TABLES,NO_ZERO_IN_DATE'; set @@sql_mode='STRICT_ALL_TABLES,NO_ZERO_IN_DATE';
INSERT INTO t1 VALUES('2004-0-30'); INSERT INTO t1 VALUES('2004-0-30');
ERROR 22007: Incorrect date value: '2004-0-30' for column 'col1' at row 1 ERROR 22007: Incorrect date value: '2004-0-30' for column `test`.`t1`.`col1` at row 1
INSERT INTO t1 VALUES('2004-01-04'),('2004-0-31'),('2004-01-05'); INSERT INTO t1 VALUES('2004-01-04'),('2004-0-31'),('2004-01-05');
ERROR 22007: Incorrect date value: '2004-0-31' for column 'col1' at row 2 ERROR 22007: Incorrect date value: '2004-0-31' for column `test`.`t1`.`col1` at row 2
INSERT INTO t1 VALUES('0000-00-00'); INSERT INTO t1 VALUES('0000-00-00');
INSERT IGNORE INTO t1 VALUES('2004-0-29'); INSERT IGNORE INTO t1 VALUES('2004-0-29');
Warnings: Warnings:
Warning 1265 Data truncated for column 'col1' at row 1 Warning 1265 Data truncated for column 'col1' at row 1
set @@sql_mode='STRICT_ALL_TABLES,NO_ZERO_DATE'; set @@sql_mode='STRICT_ALL_TABLES,NO_ZERO_DATE';
INSERT INTO t1 VALUES('0000-00-00'); INSERT INTO t1 VALUES('0000-00-00');
ERROR 22007: Incorrect date value: '0000-00-00' for column 'col1' at row 1 ERROR 22007: Incorrect date value: '0000-00-00' for column `test`.`t1`.`col1` at row 1
INSERT IGNORE INTO t1 VALUES('0000-00-00'); INSERT IGNORE INTO t1 VALUES('0000-00-00');
Warnings: Warnings:
Warning 1264 Out of range value for column 'col1' at row 1 Warning 1264 Out of range value for column 'col1' at row 1
INSERT INTO t1 VALUES ('2004-0-30'); INSERT INTO t1 VALUES ('2004-0-30');
INSERT INTO t1 VALUES ('2004-2-30'); INSERT INTO t1 VALUES ('2004-2-30');
ERROR 22007: Incorrect date value: '2004-2-30' for column 'col1' at row 1 ERROR 22007: Incorrect date value: '2004-2-30' for column `test`.`t1`.`col1` at row 1
set @@sql_mode='STRICT_ALL_TABLES,ALLOW_INVALID_DATES'; set @@sql_mode='STRICT_ALL_TABLES,ALLOW_INVALID_DATES';
INSERT INTO t1 VALUES ('2004-2-30'); INSERT INTO t1 VALUES ('2004-2-30');
set @@sql_mode='ansi,traditional'; set @@sql_mode='ansi,traditional';
@ -73,7 +73,7 @@ drop table t1;
set @@sql_mode='strict_trans_tables'; set @@sql_mode='strict_trans_tables';
CREATE TABLE t1 (col1 date) engine=myisam; CREATE TABLE t1 (col1 date) engine=myisam;
INSERT INTO t1 VALUES('2004-13-31'),('2004-1-1'); INSERT INTO t1 VALUES('2004-13-31'),('2004-1-1');
ERROR 22007: Incorrect date value: '2004-13-31' for column 'col1' at row 1 ERROR 22007: Incorrect date value: '2004-13-31' for column `test`.`t1`.`col1` at row 1
INSERT INTO t1 VALUES ('2004-1-2'), ('2004-13-31'),('2004-1-3'); INSERT INTO t1 VALUES ('2004-1-2'), ('2004-13-31'),('2004-1-3');
Warnings: Warnings:
Warning 1265 Data truncated for column 'col1' at row 2 Warning 1265 Data truncated for column 'col1' at row 2
@ -81,7 +81,7 @@ INSERT IGNORE INTO t1 VALUES('2004-13-31'),('2004-1-4');
Warnings: Warnings:
Warning 1265 Data truncated for column 'col1' at row 1 Warning 1265 Data truncated for column 'col1' at row 1
INSERT INTO t1 VALUES ('2003-02-29'); INSERT INTO t1 VALUES ('2003-02-29');
ERROR 22007: Incorrect date value: '2003-02-29' for column 'col1' at row 1 ERROR 22007: Incorrect date value: '2003-02-29' for column `test`.`t1`.`col1` at row 1
INSERT ignore INTO t1 VALUES('2003-02-30'); INSERT ignore INTO t1 VALUES('2003-02-30');
Warnings: Warnings:
Warning 1265 Data truncated for column 'col1' at row 1 Warning 1265 Data truncated for column 'col1' at row 1
@ -100,14 +100,14 @@ drop table t1;
set @@sql_mode='strict_trans_tables'; set @@sql_mode='strict_trans_tables';
CREATE TABLE t1 (col1 date) engine=innodb; CREATE TABLE t1 (col1 date) engine=innodb;
INSERT INTO t1 VALUES('2004-13-31'),('2004-1-1'); INSERT INTO t1 VALUES('2004-13-31'),('2004-1-1');
ERROR 22007: Incorrect date value: '2004-13-31' for column 'col1' at row 1 ERROR 22007: Incorrect date value: '2004-13-31' for column `test`.`t1`.`col1` at row 1
INSERT INTO t1 VALUES ('2004-1-2'), ('2004-13-31'),('2004-1-3'); INSERT INTO t1 VALUES ('2004-1-2'), ('2004-13-31'),('2004-1-3');
ERROR 22007: Incorrect date value: '2004-13-31' for column 'col1' at row 2 ERROR 22007: Incorrect date value: '2004-13-31' for column `test`.`t1`.`col1` at row 2
INSERT IGNORE INTO t1 VALUES('2004-13-31'),('2004-1-4'); INSERT IGNORE INTO t1 VALUES('2004-13-31'),('2004-1-4');
Warnings: Warnings:
Warning 1265 Data truncated for column 'col1' at row 1 Warning 1265 Data truncated for column 'col1' at row 1
INSERT INTO t1 VALUES ('2003-02-29'); INSERT INTO t1 VALUES ('2003-02-29');
ERROR 22007: Incorrect date value: '2003-02-29' for column 'col1' at row 1 ERROR 22007: Incorrect date value: '2003-02-29' for column `test`.`t1`.`col1` at row 1
INSERT ignore INTO t1 VALUES('2003-02-30'); INSERT ignore INTO t1 VALUES('2003-02-30');
Warnings: Warnings:
Warning 1265 Data truncated for column 'col1' at row 1 Warning 1265 Data truncated for column 'col1' at row 1
@ -125,21 +125,21 @@ CREATE TABLE t1 (col1 datetime);
INSERT INTO t1 VALUES('2004-10-31 15:30:00'),('2004-02-29 15:30:00'); INSERT INTO t1 VALUES('2004-10-31 15:30:00'),('2004-02-29 15:30:00');
INSERT INTO t1 VALUES('0000-10-31 15:30:00'); INSERT INTO t1 VALUES('0000-10-31 15:30:00');
INSERT INTO t1 VALUES('2004-0-31 15:30:00'); INSERT INTO t1 VALUES('2004-0-31 15:30:00');
ERROR 22007: Incorrect datetime value: '2004-0-31 15:30:00' for column 'col1' at row 1 ERROR 22007: Incorrect datetime value: '2004-0-31 15:30:00' for column `test`.`t1`.`col1` at row 1
INSERT INTO t1 VALUES('2004-10-0 15:30:00'); INSERT INTO t1 VALUES('2004-10-0 15:30:00');
ERROR 22007: Incorrect datetime value: '2004-10-0 15:30:00' for column 'col1' at row 1 ERROR 22007: Incorrect datetime value: '2004-10-0 15:30:00' for column `test`.`t1`.`col1` at row 1
INSERT INTO t1 VALUES('2004-09-31 15:30:00'); INSERT INTO t1 VALUES('2004-09-31 15:30:00');
ERROR 22007: Incorrect datetime value: '2004-09-31 15:30:00' for column 'col1' at row 1 ERROR 22007: Incorrect datetime value: '2004-09-31 15:30:00' for column `test`.`t1`.`col1` at row 1
INSERT INTO t1 VALUES('2004-10-32 15:30:00'); INSERT INTO t1 VALUES('2004-10-32 15:30:00');
ERROR 22007: Incorrect datetime value: '2004-10-32 15:30:00' for column 'col1' at row 1 ERROR 22007: Incorrect datetime value: '2004-10-32 15:30:00' for column `test`.`t1`.`col1` at row 1
INSERT INTO t1 VALUES('2003-02-29 15:30:00'); INSERT INTO t1 VALUES('2003-02-29 15:30:00');
ERROR 22007: Incorrect datetime value: '2003-02-29 15:30:00' for column 'col1' at row 1 ERROR 22007: Incorrect datetime value: '2003-02-29 15:30:00' for column `test`.`t1`.`col1` at row 1
INSERT INTO t1 VALUES('2004-13-15 15:30:00'); INSERT INTO t1 VALUES('2004-13-15 15:30:00');
ERROR 22007: Incorrect datetime value: '2004-13-15 15:30:00' for column 'col1' at row 1 ERROR 22007: Incorrect datetime value: '2004-13-15 15:30:00' for column `test`.`t1`.`col1` at row 1
INSERT INTO t1 VALUES('0000-00-00 15:30:00'); INSERT INTO t1 VALUES('0000-00-00 15:30:00');
ERROR 22007: Incorrect datetime value: '0000-00-00 15:30:00' for column 'col1' at row 1 ERROR 22007: Incorrect datetime value: '0000-00-00 15:30:00' for column `test`.`t1`.`col1` at row 1
INSERT INTO t1 VALUES ('59'); INSERT INTO t1 VALUES ('59');
ERROR 22007: Incorrect datetime value: '59' for column 'col1' at row 1 ERROR 22007: Incorrect datetime value: '59' for column `test`.`t1`.`col1` at row 1
select * from t1; select * from t1;
col1 col1
2004-10-31 15:30:00 2004-10-31 15:30:00
@ -149,49 +149,49 @@ drop table t1;
CREATE TABLE t1 (col1 timestamp); CREATE TABLE t1 (col1 timestamp);
INSERT INTO t1 VALUES('2004-10-31 15:30:00'),('2004-02-29 15:30:00'); INSERT INTO t1 VALUES('2004-10-31 15:30:00'),('2004-02-29 15:30:00');
INSERT INTO t1 VALUES('0000-10-31 15:30:00'); INSERT INTO t1 VALUES('0000-10-31 15:30:00');
ERROR 22007: Incorrect datetime value: '0000-10-31 15:30:00' for column 'col1' at row 1 ERROR 22007: Incorrect datetime value: '0000-10-31 15:30:00' for column `test`.`t1`.`col1` at row 1
INSERT INTO t1 VALUES('2004-0-31 15:30:00'); INSERT INTO t1 VALUES('2004-0-31 15:30:00');
ERROR 22007: Incorrect datetime value: '2004-0-31 15:30:00' for column 'col1' at row 1 ERROR 22007: Incorrect datetime value: '2004-0-31 15:30:00' for column `test`.`t1`.`col1` at row 1
INSERT INTO t1 VALUES('2004-10-0 15:30:00'); INSERT INTO t1 VALUES('2004-10-0 15:30:00');
ERROR 22007: Incorrect datetime value: '2004-10-0 15:30:00' for column 'col1' at row 1 ERROR 22007: Incorrect datetime value: '2004-10-0 15:30:00' for column `test`.`t1`.`col1` at row 1
INSERT INTO t1 VALUES('2004-09-31 15:30:00'); INSERT INTO t1 VALUES('2004-09-31 15:30:00');
ERROR 22007: Incorrect datetime value: '2004-09-31 15:30:00' for column 'col1' at row 1 ERROR 22007: Incorrect datetime value: '2004-09-31 15:30:00' for column `test`.`t1`.`col1` at row 1
INSERT INTO t1 VALUES('2004-10-32 15:30:00'); INSERT INTO t1 VALUES('2004-10-32 15:30:00');
ERROR 22007: Incorrect datetime value: '2004-10-32 15:30:00' for column 'col1' at row 1 ERROR 22007: Incorrect datetime value: '2004-10-32 15:30:00' for column `test`.`t1`.`col1` at row 1
INSERT INTO t1 VALUES('2003-02-29 15:30:00'); INSERT INTO t1 VALUES('2003-02-29 15:30:00');
ERROR 22007: Incorrect datetime value: '2003-02-29 15:30:00' for column 'col1' at row 1 ERROR 22007: Incorrect datetime value: '2003-02-29 15:30:00' for column `test`.`t1`.`col1` at row 1
INSERT INTO t1 VALUES('2004-13-15 15:30:00'); INSERT INTO t1 VALUES('2004-13-15 15:30:00');
ERROR 22007: Incorrect datetime value: '2004-13-15 15:30:00' for column 'col1' at row 1 ERROR 22007: Incorrect datetime value: '2004-13-15 15:30:00' for column `test`.`t1`.`col1` at row 1
INSERT INTO t1 VALUES('2004-02-29 25:30:00'); INSERT INTO t1 VALUES('2004-02-29 25:30:00');
ERROR 22007: Incorrect datetime value: '2004-02-29 25:30:00' for column 'col1' at row 1 ERROR 22007: Incorrect datetime value: '2004-02-29 25:30:00' for column `test`.`t1`.`col1` at row 1
INSERT INTO t1 VALUES('2004-02-29 15:65:00'); INSERT INTO t1 VALUES('2004-02-29 15:65:00');
ERROR 22007: Incorrect datetime value: '2004-02-29 15:65:00' for column 'col1' at row 1 ERROR 22007: Incorrect datetime value: '2004-02-29 15:65:00' for column `test`.`t1`.`col1` at row 1
INSERT INTO t1 VALUES('2004-02-29 15:31:61'); INSERT INTO t1 VALUES('2004-02-29 15:31:61');
ERROR 22007: Incorrect datetime value: '2004-02-29 15:31:61' for column 'col1' at row 1 ERROR 22007: Incorrect datetime value: '2004-02-29 15:31:61' for column `test`.`t1`.`col1` at row 1
INSERT INTO t1 VALUES('0000-00-00 15:30:00'); INSERT INTO t1 VALUES('0000-00-00 15:30:00');
ERROR 22007: Incorrect datetime value: '0000-00-00 15:30:00' for column 'col1' at row 1 ERROR 22007: Incorrect datetime value: '0000-00-00 15:30:00' for column `test`.`t1`.`col1` at row 1
INSERT INTO t1 VALUES('0000-00-00 00:00:00'); INSERT INTO t1 VALUES('0000-00-00 00:00:00');
ERROR 22007: Incorrect datetime value: '0000-00-00 00:00:00' for column 'col1' at row 1 ERROR 22007: Incorrect datetime value: '0000-00-00 00:00:00' for column `test`.`t1`.`col1` at row 1
INSERT IGNORE INTO t1 VALUES('0000-00-00 00:00:00'); INSERT IGNORE INTO t1 VALUES('0000-00-00 00:00:00');
Warnings: Warnings:
Warning 1265 Data truncated for column 'col1' at row 1 Warning 1265 Data truncated for column 'col1' at row 1
INSERT INTO t1 VALUES ('59'); INSERT INTO t1 VALUES ('59');
ERROR 22007: Incorrect datetime value: '59' for column 'col1' at row 1 ERROR 22007: Incorrect datetime value: '59' for column `test`.`t1`.`col1` at row 1
set @@sql_mode='STRICT_ALL_TABLES,ALLOW_INVALID_DATES'; set @@sql_mode='STRICT_ALL_TABLES,ALLOW_INVALID_DATES';
INSERT INTO t1 VALUES('2004-0-31 15:30:00'); INSERT INTO t1 VALUES('2004-0-31 15:30:00');
ERROR 22007: Incorrect datetime value: '2004-0-31 15:30:00' for column 'col1' at row 1 ERROR 22007: Incorrect datetime value: '2004-0-31 15:30:00' for column `test`.`t1`.`col1` at row 1
INSERT INTO t1 VALUES('2004-10-0 15:30:00'); INSERT INTO t1 VALUES('2004-10-0 15:30:00');
ERROR 22007: Incorrect datetime value: '2004-10-0 15:30:00' for column 'col1' at row 1 ERROR 22007: Incorrect datetime value: '2004-10-0 15:30:00' for column `test`.`t1`.`col1` at row 1
INSERT INTO t1 VALUES('2004-10-32 15:30:00'); INSERT INTO t1 VALUES('2004-10-32 15:30:00');
ERROR 22007: Incorrect datetime value: '2004-10-32 15:30:00' for column 'col1' at row 1 ERROR 22007: Incorrect datetime value: '2004-10-32 15:30:00' for column `test`.`t1`.`col1` at row 1
INSERT INTO t1 VALUES('2004-02-30 15:30:04'); INSERT INTO t1 VALUES('2004-02-30 15:30:04');
ERROR 22007: Incorrect datetime value: '2004-02-30 15:30:04' for column 'col1' at row 1 ERROR 22007: Incorrect datetime value: '2004-02-30 15:30:04' for column `test`.`t1`.`col1` at row 1
INSERT INTO t1 VALUES('0000-00-00 00:00:00'); INSERT INTO t1 VALUES('0000-00-00 00:00:00');
set @@sql_mode='STRICT_ALL_TABLES,NO_ZERO_IN_DATE'; set @@sql_mode='STRICT_ALL_TABLES,NO_ZERO_IN_DATE';
INSERT INTO t1 VALUES('0000-00-00 00:00:00'); INSERT INTO t1 VALUES('0000-00-00 00:00:00');
set @@sql_mode='STRICT_ALL_TABLES,NO_ZERO_DATE'; set @@sql_mode='STRICT_ALL_TABLES,NO_ZERO_DATE';
INSERT INTO t1 VALUES('0000-00-00 00:00:00'); INSERT INTO t1 VALUES('0000-00-00 00:00:00');
ERROR 22007: Incorrect datetime value: '0000-00-00 00:00:00' for column 'col1' at row 1 ERROR 22007: Incorrect datetime value: '0000-00-00 00:00:00' for column `test`.`t1`.`col1` at row 1
set @@sql_mode='ansi,traditional'; set @@sql_mode='ansi,traditional';
SELECT * FROM t1; SELECT * FROM t1;
col1 col1
@ -214,11 +214,11 @@ ERROR HY000: Incorrect datetime value: '31.0.2004 15.30' for function str_to_dat
INSERT INTO t1 (col1) VALUES(STR_TO_DATE('0.10.2004 15.30','%d.%m.%Y %H.%i')); INSERT INTO t1 (col1) VALUES(STR_TO_DATE('0.10.2004 15.30','%d.%m.%Y %H.%i'));
ERROR HY000: Incorrect datetime value: '0.10.2004 15.30' for function str_to_date ERROR HY000: Incorrect datetime value: '0.10.2004 15.30' for function str_to_date
INSERT INTO t1 (col1) VALUES(STR_TO_DATE('31.9.2004 15.30','%d.%m.%Y %H.%i')); INSERT INTO t1 (col1) VALUES(STR_TO_DATE('31.9.2004 15.30','%d.%m.%Y %H.%i'));
ERROR 22007: Incorrect date value: '2004-09-31 15:30:00' for column 'col1' at row 1 ERROR 22007: Incorrect date value: '2004-09-31 15:30:00' for column `test`.`t1`.`col1` at row 1
INSERT INTO t1 (col1) VALUES(STR_TO_DATE('32.10.2004 15.30','%d.%m.%Y %H.%i')); INSERT INTO t1 (col1) VALUES(STR_TO_DATE('32.10.2004 15.30','%d.%m.%Y %H.%i'));
ERROR HY000: Incorrect datetime value: '32.10.2004 15.30' for function str_to_date ERROR HY000: Incorrect datetime value: '32.10.2004 15.30' for function str_to_date
INSERT INTO t1 (col1) VALUES(STR_TO_DATE('29.02.2003 15.30','%d.%m.%Y %H.%i')); INSERT INTO t1 (col1) VALUES(STR_TO_DATE('29.02.2003 15.30','%d.%m.%Y %H.%i'));
ERROR 22007: Incorrect date value: '2003-02-29 15:30:00' for column 'col1' at row 1 ERROR 22007: Incorrect date value: '2003-02-29 15:30:00' for column `test`.`t1`.`col1` at row 1
INSERT INTO t1 (col1) VALUES(STR_TO_DATE('15.13.2004 15.30','%d.%m.%Y %H.%i')); INSERT INTO t1 (col1) VALUES(STR_TO_DATE('15.13.2004 15.30','%d.%m.%Y %H.%i'));
ERROR HY000: Incorrect datetime value: '15.13.2004 15.30' for function str_to_date ERROR HY000: Incorrect datetime value: '15.13.2004 15.30' for function str_to_date
INSERT INTO t1 (col1) VALUES(STR_TO_DATE('00.00.0000','%d.%m.%Y')); INSERT INTO t1 (col1) VALUES(STR_TO_DATE('00.00.0000','%d.%m.%Y'));
@ -228,27 +228,27 @@ ERROR HY000: Incorrect datetime value: '31.0.2004 15.30' for function str_to_dat
INSERT INTO t1 (col2) VALUES(STR_TO_DATE('0.10.2004 15.30','%d.%m.%Y %H.%i')); INSERT INTO t1 (col2) VALUES(STR_TO_DATE('0.10.2004 15.30','%d.%m.%Y %H.%i'));
ERROR HY000: Incorrect datetime value: '0.10.2004 15.30' for function str_to_date ERROR HY000: Incorrect datetime value: '0.10.2004 15.30' for function str_to_date
INSERT INTO t1 (col2) VALUES(STR_TO_DATE('31.9.2004 15.30','%d.%m.%Y %H.%i')); INSERT INTO t1 (col2) VALUES(STR_TO_DATE('31.9.2004 15.30','%d.%m.%Y %H.%i'));
ERROR 22007: Incorrect datetime value: '2004-09-31 15:30:00' for column 'col2' at row 1 ERROR 22007: Incorrect datetime value: '2004-09-31 15:30:00' for column `test`.`t1`.`col2` at row 1
INSERT INTO t1 (col2) VALUES(STR_TO_DATE('32.10.2004 15.30','%d.%m.%Y %H.%i')); INSERT INTO t1 (col2) VALUES(STR_TO_DATE('32.10.2004 15.30','%d.%m.%Y %H.%i'));
ERROR HY000: Incorrect datetime value: '32.10.2004 15.30' for function str_to_date ERROR HY000: Incorrect datetime value: '32.10.2004 15.30' for function str_to_date
INSERT INTO t1 (col2) VALUES(STR_TO_DATE('29.02.2003 15.30','%d.%m.%Y %H.%i')); INSERT INTO t1 (col2) VALUES(STR_TO_DATE('29.02.2003 15.30','%d.%m.%Y %H.%i'));
ERROR 22007: Incorrect datetime value: '2003-02-29 15:30:00' for column 'col2' at row 1 ERROR 22007: Incorrect datetime value: '2003-02-29 15:30:00' for column `test`.`t1`.`col2` at row 1
INSERT INTO t1 (col2) VALUES(STR_TO_DATE('15.13.2004 15.30','%d.%m.%Y %H.%i')); INSERT INTO t1 (col2) VALUES(STR_TO_DATE('15.13.2004 15.30','%d.%m.%Y %H.%i'));
ERROR HY000: Incorrect datetime value: '15.13.2004 15.30' for function str_to_date ERROR HY000: Incorrect datetime value: '15.13.2004 15.30' for function str_to_date
INSERT INTO t1 (col2) VALUES(STR_TO_DATE('00.00.0000','%d.%m.%Y')); INSERT INTO t1 (col2) VALUES(STR_TO_DATE('00.00.0000','%d.%m.%Y'));
ERROR HY000: Incorrect datetime value: '00.00.0000' for function str_to_date ERROR HY000: Incorrect datetime value: '00.00.0000' for function str_to_date
INSERT INTO t1 (col3) VALUES(STR_TO_DATE('31.10.0000 15.30','%d.%m.%Y %H.%i')); INSERT INTO t1 (col3) VALUES(STR_TO_DATE('31.10.0000 15.30','%d.%m.%Y %H.%i'));
ERROR 22007: Incorrect datetime value: '0000-10-31 15:30:00' for column 'col3' at row 1 ERROR 22007: Incorrect datetime value: '0000-10-31 15:30:00' for column `test`.`t1`.`col3` at row 1
INSERT INTO t1 (col3) VALUES(STR_TO_DATE('31.0.2004 15.30','%d.%m.%Y %H.%i')); INSERT INTO t1 (col3) VALUES(STR_TO_DATE('31.0.2004 15.30','%d.%m.%Y %H.%i'));
ERROR HY000: Incorrect datetime value: '31.0.2004 15.30' for function str_to_date ERROR HY000: Incorrect datetime value: '31.0.2004 15.30' for function str_to_date
INSERT INTO t1 (col3) VALUES(STR_TO_DATE('0.10.2004 15.30','%d.%m.%Y %H.%i')); INSERT INTO t1 (col3) VALUES(STR_TO_DATE('0.10.2004 15.30','%d.%m.%Y %H.%i'));
ERROR HY000: Incorrect datetime value: '0.10.2004 15.30' for function str_to_date ERROR HY000: Incorrect datetime value: '0.10.2004 15.30' for function str_to_date
INSERT INTO t1 (col3) VALUES(STR_TO_DATE('31.9.2004 15.30','%d.%m.%Y %H.%i')); INSERT INTO t1 (col3) VALUES(STR_TO_DATE('31.9.2004 15.30','%d.%m.%Y %H.%i'));
ERROR 22007: Incorrect datetime value: '2004-09-31 15:30:00' for column 'col3' at row 1 ERROR 22007: Incorrect datetime value: '2004-09-31 15:30:00' for column `test`.`t1`.`col3` at row 1
INSERT INTO t1 (col3) VALUES(STR_TO_DATE('32.10.2004 15.30','%d.%m.%Y %H.%i')); INSERT INTO t1 (col3) VALUES(STR_TO_DATE('32.10.2004 15.30','%d.%m.%Y %H.%i'));
ERROR HY000: Incorrect datetime value: '32.10.2004 15.30' for function str_to_date ERROR HY000: Incorrect datetime value: '32.10.2004 15.30' for function str_to_date
INSERT INTO t1 (col3) VALUES(STR_TO_DATE('29.02.2003 15.30','%d.%m.%Y %H.%i')); INSERT INTO t1 (col3) VALUES(STR_TO_DATE('29.02.2003 15.30','%d.%m.%Y %H.%i'));
ERROR 22007: Incorrect datetime value: '2003-02-29 15:30:00' for column 'col3' at row 1 ERROR 22007: Incorrect datetime value: '2003-02-29 15:30:00' for column `test`.`t1`.`col3` at row 1
INSERT INTO t1 (col3) VALUES(STR_TO_DATE('15.13.2004 15.30','%d.%m.%Y %H.%i')); INSERT INTO t1 (col3) VALUES(STR_TO_DATE('15.13.2004 15.30','%d.%m.%Y %H.%i'));
ERROR HY000: Incorrect datetime value: '15.13.2004 15.30' for function str_to_date ERROR HY000: Incorrect datetime value: '15.13.2004 15.30' for function str_to_date
INSERT INTO t1 (col3) VALUES(STR_TO_DATE('00.00.0000','%d.%m.%Y')); INSERT INTO t1 (col3) VALUES(STR_TO_DATE('00.00.0000','%d.%m.%Y'));
@ -273,7 +273,7 @@ ERROR 22007: Incorrect datetime value: '2004-0-10 15:30'
INSERT INTO t1 (col2) VALUES(CAST('0000-00-00' AS DATETIME)); INSERT INTO t1 (col2) VALUES(CAST('0000-00-00' AS DATETIME));
ERROR 22007: Incorrect datetime value: '0000-00-00' ERROR 22007: Incorrect datetime value: '0000-00-00'
INSERT INTO t1 (col3) VALUES(CAST('0000-10-31 15:30' AS DATETIME)); INSERT INTO t1 (col3) VALUES(CAST('0000-10-31 15:30' AS DATETIME));
ERROR 22007: Incorrect datetime value: '0000-10-31 15:30:00' for column 'col3' at row 1 ERROR 22007: Incorrect datetime value: '0000-10-31 15:30:00' for column `test`.`t1`.`col3` at row 1
INSERT INTO t1 (col3) VALUES(CAST('2004-10-0 15:30' AS DATETIME)); INSERT INTO t1 (col3) VALUES(CAST('2004-10-0 15:30' AS DATETIME));
ERROR 22007: Incorrect datetime value: '2004-10-0 15:30' ERROR 22007: Incorrect datetime value: '2004-10-0 15:30'
INSERT INTO t1 (col3) VALUES(CAST('2004-0-10 15:30' AS DATETIME)); INSERT INTO t1 (col3) VALUES(CAST('2004-0-10 15:30' AS DATETIME));
@ -291,7 +291,7 @@ ERROR 22007: Incorrect datetime value: '2004-10-0'
INSERT INTO t1 (col1) VALUES(CONVERT('2004-0-10' , DATE)); INSERT INTO t1 (col1) VALUES(CONVERT('2004-0-10' , DATE));
ERROR 22007: Incorrect datetime value: '2004-0-10' ERROR 22007: Incorrect datetime value: '2004-0-10'
INSERT INTO t1 (col1) VALUES('2004-0-10'); INSERT INTO t1 (col1) VALUES('2004-0-10');
ERROR 22007: Incorrect date value: '2004-0-10' for column 'col1' at row 1 ERROR 22007: Incorrect date value: '2004-0-10' for column `test`.`t1`.`col1` at row 1
INSERT INTO t1 (col1) VALUES(CONVERT('0000-00-00',DATE)); INSERT INTO t1 (col1) VALUES(CONVERT('0000-00-00',DATE));
ERROR 22007: Incorrect datetime value: '0000-00-00' ERROR 22007: Incorrect datetime value: '0000-00-00'
INSERT INTO t1 (col2) VALUES(CONVERT('0000-10-31 15:30',DATETIME)); INSERT INTO t1 (col2) VALUES(CONVERT('0000-10-31 15:30',DATETIME));
@ -302,7 +302,7 @@ ERROR 22007: Incorrect datetime value: '2004-0-10 15:30'
INSERT INTO t1 (col2) VALUES(CONVERT('0000-00-00',DATETIME)); INSERT INTO t1 (col2) VALUES(CONVERT('0000-00-00',DATETIME));
ERROR 22007: Incorrect datetime value: '0000-00-00' ERROR 22007: Incorrect datetime value: '0000-00-00'
INSERT INTO t1 (col3) VALUES(CONVERT('0000-10-31 15:30',DATETIME)); INSERT INTO t1 (col3) VALUES(CONVERT('0000-10-31 15:30',DATETIME));
ERROR 22007: Incorrect datetime value: '0000-10-31 15:30:00' for column 'col3' at row 1 ERROR 22007: Incorrect datetime value: '0000-10-31 15:30:00' for column `test`.`t1`.`col3` at row 1
INSERT INTO t1 (col3) VALUES(CONVERT('2004-10-0 15:30',DATETIME)); INSERT INTO t1 (col3) VALUES(CONVERT('2004-10-0 15:30',DATETIME));
ERROR 22007: Incorrect datetime value: '2004-10-0 15:30' ERROR 22007: Incorrect datetime value: '2004-10-0 15:30'
INSERT INTO t1 (col3) VALUES(CONVERT('2004-0-10 15:30',DATETIME)); INSERT INTO t1 (col3) VALUES(CONVERT('2004-0-10 15:30',DATETIME));
@ -366,9 +366,9 @@ Warnings:
Warning 1365 Division by 0 Warning 1365 Division by 0
Warning 1365 Division by 0 Warning 1365 Division by 0
INSERT INTO t1 (col1) VALUES (''); INSERT INTO t1 (col1) VALUES ('');
ERROR 22007: Incorrect integer value: '' for column 'col1' at row 1 ERROR 22007: Incorrect integer value: '' for column `test`.`t1`.`col1` at row 1
INSERT INTO t1 (col1) VALUES ('a59b'); INSERT INTO t1 (col1) VALUES ('a59b');
ERROR 22007: Incorrect integer value: 'a59b' for column 'col1' at row 1 ERROR 22007: Incorrect integer value: 'a59b' for column `test`.`t1`.`col1` at row 1
INSERT INTO t1 (col1) VALUES ('1a'); INSERT INTO t1 (col1) VALUES ('1a');
ERROR 01000: Data truncated for column 'col1' at row 1 ERROR 01000: Data truncated for column 'col1' at row 1
INSERT IGNORE INTO t1 (col1) VALUES ('2a'); INSERT IGNORE INTO t1 (col1) VALUES ('2a');
@ -449,9 +449,9 @@ ERROR 22012: Division by 0
UPDATE t1 SET col1= MOD(col1,0) WHERE col1 > 0; UPDATE t1 SET col1= MOD(col1,0) WHERE col1 > 0;
ERROR 22012: Division by 0 ERROR 22012: Division by 0
INSERT INTO t1 (col1) VALUES (''); INSERT INTO t1 (col1) VALUES ('');
ERROR 22007: Incorrect integer value: '' for column 'col1' at row 1 ERROR 22007: Incorrect integer value: '' for column `test`.`t1`.`col1` at row 1
INSERT INTO t1 (col1) VALUES ('a59b'); INSERT INTO t1 (col1) VALUES ('a59b');
ERROR 22007: Incorrect integer value: 'a59b' for column 'col1' at row 1 ERROR 22007: Incorrect integer value: 'a59b' for column `test`.`t1`.`col1` at row 1
INSERT INTO t1 (col1) VALUES ('1a'); INSERT INTO t1 (col1) VALUES ('1a');
ERROR 01000: Data truncated for column 'col1' at row 1 ERROR 01000: Data truncated for column 'col1' at row 1
INSERT IGNORE INTO t1 (col1) VALUES ('2a'); INSERT IGNORE INTO t1 (col1) VALUES ('2a');
@ -533,9 +533,9 @@ ERROR 22012: Division by 0
UPDATE t1 SET col1= MOD(col1,0) WHERE col1 > 0; UPDATE t1 SET col1= MOD(col1,0) WHERE col1 > 0;
ERROR 22012: Division by 0 ERROR 22012: Division by 0
INSERT INTO t1 (col1) VALUES (''); INSERT INTO t1 (col1) VALUES ('');
ERROR 22007: Incorrect integer value: '' for column 'col1' at row 1 ERROR 22007: Incorrect integer value: '' for column `test`.`t1`.`col1` at row 1
INSERT INTO t1 (col1) VALUES ('a59b'); INSERT INTO t1 (col1) VALUES ('a59b');
ERROR 22007: Incorrect integer value: 'a59b' for column 'col1' at row 1 ERROR 22007: Incorrect integer value: 'a59b' for column `test`.`t1`.`col1` at row 1
INSERT INTO t1 (col1) VALUES ('1a'); INSERT INTO t1 (col1) VALUES ('1a');
ERROR 01000: Data truncated for column 'col1' at row 1 ERROR 01000: Data truncated for column 'col1' at row 1
INSERT IGNORE INTO t1 (col1) VALUES ('2a'); INSERT IGNORE INTO t1 (col1) VALUES ('2a');
@ -617,9 +617,9 @@ ERROR 22012: Division by 0
UPDATE t1 SET col1= MOD(col1,0) WHERE col1 > 0; UPDATE t1 SET col1= MOD(col1,0) WHERE col1 > 0;
ERROR 22012: Division by 0 ERROR 22012: Division by 0
INSERT INTO t1 (col1) VALUES (''); INSERT INTO t1 (col1) VALUES ('');
ERROR 22007: Incorrect integer value: '' for column 'col1' at row 1 ERROR 22007: Incorrect integer value: '' for column `test`.`t1`.`col1` at row 1
INSERT INTO t1 (col1) VALUES ('a59b'); INSERT INTO t1 (col1) VALUES ('a59b');
ERROR 22007: Incorrect integer value: 'a59b' for column 'col1' at row 1 ERROR 22007: Incorrect integer value: 'a59b' for column `test`.`t1`.`col1` at row 1
INSERT INTO t1 (col1) VALUES ('1a'); INSERT INTO t1 (col1) VALUES ('1a');
ERROR 01000: Data truncated for column 'col1' at row 1 ERROR 01000: Data truncated for column 'col1' at row 1
INSERT IGNORE INTO t1 (col1) VALUES ('2a'); INSERT IGNORE INTO t1 (col1) VALUES ('2a');
@ -699,9 +699,9 @@ ERROR 22012: Division by 0
UPDATE t1 SET col1= MOD(col1,0) WHERE col1 > 0; UPDATE t1 SET col1= MOD(col1,0) WHERE col1 > 0;
ERROR 22012: Division by 0 ERROR 22012: Division by 0
INSERT INTO t1 (col1) VALUES (''); INSERT INTO t1 (col1) VALUES ('');
ERROR 22007: Incorrect integer value: '' for column 'col1' at row 1 ERROR 22007: Incorrect integer value: '' for column `test`.`t1`.`col1` at row 1
INSERT INTO t1 (col1) VALUES ('a59b'); INSERT INTO t1 (col1) VALUES ('a59b');
ERROR 22007: Incorrect integer value: 'a59b' for column 'col1' at row 1 ERROR 22007: Incorrect integer value: 'a59b' for column `test`.`t1`.`col1` at row 1
INSERT INTO t1 (col1) VALUES ('1a'); INSERT INTO t1 (col1) VALUES ('1a');
ERROR 01000: Data truncated for column 'col1' at row 1 ERROR 01000: Data truncated for column 'col1' at row 1
INSERT IGNORE INTO t1 (col1) VALUES ('2a'); INSERT IGNORE INTO t1 (col1) VALUES ('2a');
@ -786,9 +786,9 @@ ERROR 22012: Division by 0
UPDATE t1 SET col1= MOD(col1,0) WHERE col1 > 0; UPDATE t1 SET col1= MOD(col1,0) WHERE col1 > 0;
ERROR 22012: Division by 0 ERROR 22012: Division by 0
INSERT INTO t1 (col1) VALUES (''); INSERT INTO t1 (col1) VALUES ('');
ERROR 22007: Incorrect decimal value: '' for column 'col1' at row 1 ERROR 22007: Incorrect decimal value: '' for column `test`.`t1`.`col1` at row 1
INSERT INTO t1 (col1) VALUES ('a59b'); INSERT INTO t1 (col1) VALUES ('a59b');
ERROR 22007: Incorrect decimal value: 'a59b' for column 'col1' at row 1 ERROR 22007: Incorrect decimal value: 'a59b' for column `test`.`t1`.`col1` at row 1
INSERT INTO t1 (col1) VALUES ('1a'); INSERT INTO t1 (col1) VALUES ('1a');
ERROR 01000: Data truncated for column 'col1' at row 1 ERROR 01000: Data truncated for column 'col1' at row 1
INSERT IGNORE INTO t1 (col1) VALUES ('2a'); INSERT IGNORE INTO t1 (col1) VALUES ('2a');
@ -853,9 +853,9 @@ ERROR 22012: Division by 0
UPDATE t1 SET col2= MOD(col2,0) WHERE col2 > 0; UPDATE t1 SET col2= MOD(col2,0) WHERE col2 > 0;
ERROR 22012: Division by 0 ERROR 22012: Division by 0
INSERT INTO t1 (col1) VALUES (''); INSERT INTO t1 (col1) VALUES ('');
ERROR 22007: Incorrect double value: '' for column 'col1' at row 1 ERROR 22007: Incorrect double value: '' for column `test`.`t1`.`col1` at row 1
INSERT INTO t1 (col1) VALUES ('a59b'); INSERT INTO t1 (col1) VALUES ('a59b');
ERROR 22007: Incorrect double value: 'a59b' for column 'col1' at row 1 ERROR 22007: Incorrect double value: 'a59b' for column `test`.`t1`.`col1` at row 1
INSERT INTO t1 (col1) VALUES ('1a'); INSERT INTO t1 (col1) VALUES ('1a');
ERROR 01000: Data truncated for column 'col1' at row 1 ERROR 01000: Data truncated for column 'col1' at row 1
INSERT IGNORE INTO t1 (col1) VALUES ('2a'); INSERT IGNORE INTO t1 (col1) VALUES ('2a');
@ -903,9 +903,9 @@ ERROR 22012: Division by 0
UPDATE t1 SET col2= MOD(col2,0) WHERE col2 > 0; UPDATE t1 SET col2= MOD(col2,0) WHERE col2 > 0;
ERROR 22012: Division by 0 ERROR 22012: Division by 0
INSERT INTO t1 (col1) VALUES (''); INSERT INTO t1 (col1) VALUES ('');
ERROR 22007: Incorrect double value: '' for column 'col1' at row 1 ERROR 22007: Incorrect double value: '' for column `test`.`t1`.`col1` at row 1
INSERT INTO t1 (col1) VALUES ('a59b'); INSERT INTO t1 (col1) VALUES ('a59b');
ERROR 22007: Incorrect double value: 'a59b' for column 'col1' at row 1 ERROR 22007: Incorrect double value: 'a59b' for column `test`.`t1`.`col1` at row 1
INSERT INTO t1 (col1) VALUES ('1a'); INSERT INTO t1 (col1) VALUES ('1a');
ERROR 01000: Data truncated for column 'col1' at row 1 ERROR 01000: Data truncated for column 'col1' at row 1
INSERT IGNORE INTO t1 (col1) VALUES ('2a'); INSERT IGNORE INTO t1 (col1) VALUES ('2a');
@ -1135,9 +1135,9 @@ NULL 10
drop table t1; drop table t1;
create table t1 (col1 date, col2 datetime, col3 timestamp); create table t1 (col1 date, col2 datetime, col3 timestamp);
insert into t1 values (0,0,0); insert into t1 values (0,0,0);
ERROR 22007: Incorrect date value: '0' for column 'col1' at row 1 ERROR 22007: Incorrect date value: '0' for column `test`.`t1`.`col1` at row 1
insert into t1 values (0.0,0.0,0.0); insert into t1 values (0.0,0.0,0.0);
ERROR 22007: Incorrect date value: '0.0' for column 'col1' at row 1 ERROR 22007: Incorrect date value: '0.0' for column `test`.`t1`.`col1` at row 1
insert into t1 (col1) values (convert('0000-00-00',date)); insert into t1 (col1) values (convert('0000-00-00',date));
ERROR 22007: Incorrect datetime value: '0000-00-00' ERROR 22007: Incorrect datetime value: '0000-00-00'
insert into t1 (col1) values (cast('0000-00-00' as date)); insert into t1 (col1) values (cast('0000-00-00' as date));
@ -1160,7 +1160,7 @@ insert ignore into t1 values ('0000-00-00');
Warnings: Warnings:
Warning 1264 Out of range value for column 'col1' at row 1 Warning 1264 Out of range value for column 'col1' at row 1
insert into t1 select * from t1; insert into t1 select * from t1;
ERROR 22007: Incorrect date value: '0000-00-00' for column 'col1' at row 1 ERROR 22007: Incorrect date value: '0000-00-00' for column `test`.`t1`.`col1` at row 1
insert ignore into t1 values ('0000-00-00'); insert ignore into t1 values ('0000-00-00');
Warnings: Warnings:
Warning 1264 Out of range value for column 'col1' at row 1 Warning 1264 Out of range value for column 'col1' at row 1
@ -1168,15 +1168,15 @@ insert ignore into t1 (col1) values (cast('0000-00-00' as date));
Warnings: Warnings:
Warning 1292 Incorrect datetime value: '0000-00-00' Warning 1292 Incorrect datetime value: '0000-00-00'
insert into t1 select * from t1; insert into t1 select * from t1;
ERROR 22007: Incorrect date value: '0000-00-00' for column 'col1' at row 1 ERROR 22007: Incorrect date value: '0000-00-00' for column ``.`(temporary)`.`col1` at row 1
alter table t1 modify col1 datetime; alter table t1 modify col1 datetime;
ERROR 22007: Incorrect datetime value: '0000-00-00' for column 'col1' at row 1 ERROR 22007: Incorrect datetime value: '0000-00-00' for column `test`.`t1`.`col1` at row 1
alter ignore table t1 modify col1 datetime; alter ignore table t1 modify col1 datetime;
Warnings: Warnings:
Warning 1264 Out of range value for column 'col1' at row 1 Warning 1264 Out of range value for column 'col1' at row 1
Warning 1264 Out of range value for column 'col1' at row 2 Warning 1264 Out of range value for column 'col1' at row 2
insert into t1 select * from t1; insert into t1 select * from t1;
ERROR 22007: Incorrect datetime value: '0000-00-00 00:00:00' for column 'col1' at row 1 ERROR 22007: Incorrect datetime value: '0000-00-00 00:00:00' for column ``.`(temporary)`.`col1` at row 1
select * from t1; select * from t1;
col1 col1
0000-00-00 00:00:00 0000-00-00 00:00:00
@ -1256,12 +1256,12 @@ drop table t1;
set @@sql_mode='traditional'; set @@sql_mode='traditional';
create table t1 (d date); create table t1 (d date);
insert into t1 values ('2000-10-00'); insert into t1 values ('2000-10-00');
ERROR 22007: Incorrect date value: '2000-10-00' for column 'd' at row 1 ERROR 22007: Incorrect date value: '2000-10-00' for column `test`.`t1`.`d` at row 1
insert into t1 values (1000); insert into t1 values (1000);
ERROR 22007: Incorrect date value: '1000' for column 'd' at row 1 ERROR 22007: Incorrect date value: '1000' for column `test`.`t1`.`d` at row 1
insert into t1 values ('2000-10-01'); insert into t1 values ('2000-10-01');
update t1 set d = 1100; update t1 set d = 1100;
ERROR 22007: Incorrect date value: '1100' for column 'd' at row 1 ERROR 22007: Incorrect date value: '1100' for column `test`.`t1`.`d` at row 1
select * from t1; select * from t1;
d d
2000-10-01 2000-10-01
@ -1457,34 +1457,34 @@ col5 mediumint, col6 mediumint unsigned,
col7 int, col8 int unsigned, col7 int, col8 int unsigned,
col9 bigint, col10 bigint unsigned); col9 bigint, col10 bigint unsigned);
insert into t1(col1) values('-'); insert into t1(col1) values('-');
ERROR 22007: Incorrect integer value: '-' for column 'col1' at row 1 ERROR 22007: Incorrect integer value: '-' for column `test`.`t1`.`col1` at row 1
insert into t1(col2) values('+'); insert into t1(col2) values('+');
ERROR 22007: Incorrect integer value: '+' for column 'col2' at row 1 ERROR 22007: Incorrect integer value: '+' for column `test`.`t1`.`col2` at row 1
insert into t1(col3) values('-'); insert into t1(col3) values('-');
ERROR 22007: Incorrect integer value: '-' for column 'col3' at row 1 ERROR 22007: Incorrect integer value: '-' for column `test`.`t1`.`col3` at row 1
insert into t1(col4) values('+'); insert into t1(col4) values('+');
ERROR 22007: Incorrect integer value: '+' for column 'col4' at row 1 ERROR 22007: Incorrect integer value: '+' for column `test`.`t1`.`col4` at row 1
insert into t1(col5) values('-'); insert into t1(col5) values('-');
ERROR 22007: Incorrect integer value: '-' for column 'col5' at row 1 ERROR 22007: Incorrect integer value: '-' for column `test`.`t1`.`col5` at row 1
insert into t1(col6) values('+'); insert into t1(col6) values('+');
ERROR 22007: Incorrect integer value: '+' for column 'col6' at row 1 ERROR 22007: Incorrect integer value: '+' for column `test`.`t1`.`col6` at row 1
insert into t1(col7) values('-'); insert into t1(col7) values('-');
ERROR 22007: Incorrect integer value: '-' for column 'col7' at row 1 ERROR 22007: Incorrect integer value: '-' for column `test`.`t1`.`col7` at row 1
insert into t1(col8) values('+'); insert into t1(col8) values('+');
ERROR 22007: Incorrect integer value: '+' for column 'col8' at row 1 ERROR 22007: Incorrect integer value: '+' for column `test`.`t1`.`col8` at row 1
insert into t1(col9) values('-'); insert into t1(col9) values('-');
ERROR 22007: Incorrect integer value: '-' for column 'col9' at row 1 ERROR 22007: Incorrect integer value: '-' for column `test`.`t1`.`col9` at row 1
insert into t1(col10) values('+'); insert into t1(col10) values('+');
ERROR 22007: Incorrect integer value: '+' for column 'col10' at row 1 ERROR 22007: Incorrect integer value: '+' for column `test`.`t1`.`col10` at row 1
drop table t1; drop table t1;
set sql_mode='traditional'; set sql_mode='traditional';
create table t1(a year); create table t1(a year);
insert into t1 values ('-'); insert into t1 values ('-');
ERROR 22007: Incorrect integer value: '-' for column 'a' at row 1 ERROR 22007: Incorrect integer value: '-' for column `test`.`t1`.`a` at row 1
insert into t1 values ('+'); insert into t1 values ('+');
ERROR 22007: Incorrect integer value: '+' for column 'a' at row 1 ERROR 22007: Incorrect integer value: '+' for column `test`.`t1`.`a` at row 1
insert into t1 values (''); insert into t1 values ('');
ERROR 22007: Incorrect integer value: '' for column 'a' at row 1 ERROR 22007: Incorrect integer value: '' for column `test`.`t1`.`a` at row 1
insert into t1 values ('2000a'); insert into t1 values ('2000a');
ERROR 01000: Data truncated for column 'a' at row 1 ERROR 01000: Data truncated for column 'a' at row 1
insert into t1 values ('2E3x'); insert into t1 values ('2E3x');

View File

@ -1667,8 +1667,8 @@ DROP TABLE t1,t2,t3,t4,t5;
CREATE TABLE t2 (a int); CREATE TABLE t2 (a int);
INSERT IGNORE INTO t2 VALUES ('a'),('a'); INSERT IGNORE INTO t2 VALUES ('a'),('a');
Warnings: Warnings:
Warning 1366 Incorrect integer value: 'a' for column 'a' at row 1 Warning 1366 Incorrect integer value: 'a' for column `test`.`t2`.`a` at row 1
Warning 1366 Incorrect integer value: 'a' for column 'a' at row 2 Warning 1366 Incorrect integer value: 'a' for column `test`.`t2`.`a` at row 2
CREATE TABLE t4 (a varchar(1)); CREATE TABLE t4 (a varchar(1));
INSERT INTO t4 VALUES ('m'),('o'); INSERT INTO t4 VALUES ('m'),('o');
CREATE TABLE t3 (a varchar(1) , b varchar(1) ) ; CREATE TABLE t3 (a varchar(1) , b varchar(1) ) ;

View File

@ -1704,8 +1704,8 @@ DROP TABLE t1,t2,t3,t4,t5;
CREATE TABLE t2 (a int); CREATE TABLE t2 (a int);
INSERT IGNORE INTO t2 VALUES ('a'),('a'); INSERT IGNORE INTO t2 VALUES ('a'),('a');
Warnings: Warnings:
Warning 1366 Incorrect integer value: 'a' for column 'a' at row 1 Warning 1366 Incorrect integer value: 'a' for column `test`.`t2`.`a` at row 1
Warning 1366 Incorrect integer value: 'a' for column 'a' at row 2 Warning 1366 Incorrect integer value: 'a' for column `test`.`t2`.`a` at row 2
CREATE TABLE t4 (a varchar(1)); CREATE TABLE t4 (a varchar(1));
INSERT INTO t4 VALUES ('m'),('o'); INSERT INTO t4 VALUES ('m'),('o');
CREATE TABLE t3 (a varchar(1) , b varchar(1) ) ; CREATE TABLE t3 (a varchar(1) , b varchar(1) ) ;

View File

@ -622,7 +622,7 @@ drop table t1;
set sql_mode="traditional"; set sql_mode="traditional";
create table t1 (a date); create table t1 (a date);
insert into t1 values ('2004-01-00'); insert into t1 values ('2004-01-00');
ERROR 22007: Incorrect date value: '2004-01-00' for column 'a' at row 1 ERROR 22007: Incorrect date value: '2004-01-00' for column `test`.`t1`.`a` at row 1
set sql_mode=""; set sql_mode="";
create trigger t1_bi before insert on t1 for each row set new.a = '2004-01-00'; create trigger t1_bi before insert on t1 for each row set new.a = '2004-01-00';
set sql_mode="traditional"; set sql_mode="traditional";

View File

@ -108,7 +108,7 @@ DROP TABLE t1, t2, t3;
CREATE TABLE t1 (y YEAR); CREATE TABLE t1 (y YEAR);
INSERT IGNORE INTO t1 VALUES ('abc'); INSERT IGNORE INTO t1 VALUES ('abc');
Warnings: Warnings:
Warning 1366 Incorrect integer value: 'abc' for column 'y' at row 1 Warning 1366 Incorrect integer value: 'abc' for column `test`.`t1`.`y` at row 1
SELECT * FROM t1; SELECT * FROM t1;
y y
0000 0000
@ -221,7 +221,7 @@ a
0000-00-00 0000-00-00
0000-00-00 0000-00-00
INSERT INTO t1 VALUES ('0000-00-00'); INSERT INTO t1 VALUES ('0000-00-00');
ERROR 22007: Incorrect date value: '0000-00-00' for column 'a' at row 1 ERROR 22007: Incorrect date value: '0000-00-00' for column `test`.`t1`.`a` at row 1
SET SQL_MODE=DEFAULT; SET SQL_MODE=DEFAULT;
DROP TABLE t1,t2; DROP TABLE t1,t2;
CREATE TABLE t1 (a DATE); CREATE TABLE t1 (a DATE);
@ -250,7 +250,7 @@ a
1000-00-00 1000-00-00
1000-00-00 1000-00-00
INSERT INTO t1 VALUES ('1000-00-00'); INSERT INTO t1 VALUES ('1000-00-00');
ERROR 22007: Incorrect date value: '1000-00-00' for column 'a' at row 1 ERROR 22007: Incorrect date value: '1000-00-00' for column `test`.`t1`.`a` at row 1
SET SQL_MODE=DEFAULT; SET SQL_MODE=DEFAULT;
DROP TABLE t1,t2; DROP TABLE t1,t2;
CREATE TABLE t1 SELECT curdate() AS f1; CREATE TABLE t1 SELECT curdate() AS f1;
@ -495,7 +495,7 @@ SET sql_mode=DEFAULT;
CREATE TABLE t1 (a DATE DEFAULT '0000-00-00'); CREATE TABLE t1 (a DATE DEFAULT '0000-00-00');
SET sql_mode=TRADITIONAL; SET sql_mode=TRADITIONAL;
INSERT INTO t1 VALUES ('0000-00-00'); INSERT INTO t1 VALUES ('0000-00-00');
ERROR 22007: Incorrect date value: '0000-00-00' for column 'a' at row 1 ERROR 22007: Incorrect date value: '0000-00-00' for column `test`.`t1`.`a` at row 1
INSERT INTO t1 VALUES (); INSERT INTO t1 VALUES ();
ERROR 22007: Incorrect default value '0000-00-00' for column 'a' ERROR 22007: Incorrect default value '0000-00-00' for column 'a'
INSERT INTO t1 VALUES (DEFAULT); INSERT INTO t1 VALUES (DEFAULT);
@ -536,7 +536,7 @@ CREATE TABLE t1 (a DATE);;
INSERT INTO t1 VALUES (0); INSERT INTO t1 VALUES (0);
SET sql_mode='TRADITIONAL'; SET sql_mode='TRADITIONAL';
CREATE TABLE t2 AS SELECT * FROM t1; CREATE TABLE t2 AS SELECT * FROM t1;
ERROR 22007: Incorrect date value: '0000-00-00' for column 'a' at row 1 ERROR 22007: Incorrect date value: '0000-00-00' for column `test`.`t2`.`a` at row 1
DROP TABLE t1; DROP TABLE t1;
# #
# End of MDEV-8373 Zero date can be inserted in strict no-zero mode through CREATE TABLE AS SELECT timestamp_field # End of MDEV-8373 Zero date can be inserted in strict no-zero mode through CREATE TABLE AS SELECT timestamp_field
@ -810,9 +810,9 @@ DATE(a) DATE(b) DATE(c)
NULL NULL NULL NULL NULL NULL
2001-01-01 2001-01-01 2001-01-01 2001-01-01 2001-01-01 2001-01-01
Warnings: Warnings:
Warning 1292 Incorrect datetime value: '1' for column 'a' at row 1 Warning 1292 Incorrect datetime value: '1' for column `test`.`t1`.`a` at row 1
Warning 1292 Incorrect datetime value: '1' for column 'b' at row 1 Warning 1292 Incorrect datetime value: '1' for column `test`.`t1`.`b` at row 1
Warning 1292 Incorrect datetime value: '1' for column 'c' at row 1 Warning 1292 Incorrect datetime value: '1' for column `test`.`t1`.`c` at row 1
SELECT DATE(COALESCE(a)), DATE(COALESCE(b)), DATE(COALESCE(c)) FROM t1; SELECT DATE(COALESCE(a)), DATE(COALESCE(b)), DATE(COALESCE(c)) FROM t1;
DATE(COALESCE(a)) DATE(COALESCE(b)) DATE(COALESCE(c)) DATE(COALESCE(a)) DATE(COALESCE(b)) DATE(COALESCE(c))
NULL NULL NULL NULL NULL NULL
@ -830,9 +830,9 @@ DATE(a) DATE(b) DATE(c)
NULL NULL NULL NULL NULL NULL
2001-01-01 2001-01-01 2001-01-01 2001-01-01 2001-01-01 2001-01-01
Warnings: Warnings:
Warning 1292 Incorrect datetime value: '1' for column 'a' at row 1 Warning 1292 Incorrect datetime value: '1' for column `test`.`t1`.`a` at row 1
Warning 1292 Incorrect datetime value: '1' for column 'b' at row 1 Warning 1292 Incorrect datetime value: '1' for column `test`.`t1`.`b` at row 1
Warning 1292 Incorrect datetime value: '1' for column 'c' at row 1 Warning 1292 Incorrect datetime value: '1' for column `test`.`t1`.`c` at row 1
SELECT DATE(COALESCE(a)), DATE(COALESCE(b)), DATE(COALESCE(c)) FROM t1; SELECT DATE(COALESCE(a)), DATE(COALESCE(b)), DATE(COALESCE(c)) FROM t1;
DATE(COALESCE(a)) DATE(COALESCE(b)) DATE(COALESCE(c)) DATE(COALESCE(a)) DATE(COALESCE(b)) DATE(COALESCE(c))
NULL NULL NULL NULL NULL NULL

View File

@ -216,7 +216,7 @@ insert into t1 set dt='2007-03-23 13:49:38',da=dt;
Warnings: Warnings:
Note 1265 Data truncated for column 'da' at row 1 Note 1265 Data truncated for column 'da' at row 1
insert into t1 values ('2007-03-32','2007-03-23 13:49:38'); insert into t1 values ('2007-03-32','2007-03-23 13:49:38');
ERROR 22007: Incorrect date value: '2007-03-32' for column 'da' at row 1 ERROR 22007: Incorrect date value: '2007-03-32' for column `test`.`t1`.`da` at row 1
select * from t1; select * from t1;
da dt da dt
1962-03-03 1962-03-03 00:00:00 1962-03-03 1962-03-03 00:00:00
@ -610,7 +610,7 @@ insert into t1 set dt='2007-03-23 13:49:38',da=dt;
Warnings: Warnings:
Note 1265 Data truncated for column 'da' at row 1 Note 1265 Data truncated for column 'da' at row 1
insert into t1 values ('2007-03-32','2007-03-23 13:49:38'); insert into t1 values ('2007-03-32','2007-03-23 13:49:38');
ERROR 22007: Incorrect date value: '2007-03-32' for column 'da' at row 1 ERROR 22007: Incorrect date value: '2007-03-32' for column `test`.`t1`.`da` at row 1
select * from t1; select * from t1;
da dt da dt
1962-03-03 1962-03-03 00:00:00 1962-03-03 1962-03-03 00:00:00
@ -854,7 +854,7 @@ SET sql_mode=DEFAULT;
CREATE TABLE t1 (a DATETIME DEFAULT '0000-00-00 00:00:00'); CREATE TABLE t1 (a DATETIME DEFAULT '0000-00-00 00:00:00');
SET sql_mode=TRADITIONAL; SET sql_mode=TRADITIONAL;
INSERT INTO t1 VALUES ('0000-00-00 00:00:00'); INSERT INTO t1 VALUES ('0000-00-00 00:00:00');
ERROR 22007: Incorrect datetime value: '0000-00-00 00:00:00' for column 'a' at row 1 ERROR 22007: Incorrect datetime value: '0000-00-00 00:00:00' for column `test`.`t1`.`a` at row 1
INSERT INTO t1 VALUES (); INSERT INTO t1 VALUES ();
ERROR 22007: Incorrect default value '0000-00-00 00:00:00' for column 'a' ERROR 22007: Incorrect default value '0000-00-00 00:00:00' for column 'a'
INSERT INTO t1 VALUES (DEFAULT); INSERT INTO t1 VALUES (DEFAULT);
@ -895,7 +895,7 @@ CREATE TABLE t1 (a DATETIME);;
INSERT INTO t1 VALUES (0); INSERT INTO t1 VALUES (0);
SET sql_mode='TRADITIONAL'; SET sql_mode='TRADITIONAL';
CREATE TABLE t2 AS SELECT * FROM t1; CREATE TABLE t2 AS SELECT * FROM t1;
ERROR 22007: Incorrect datetime value: '0000-00-00 00:00:00' for column 'a' at row 1 ERROR 22007: Incorrect datetime value: '0000-00-00 00:00:00' for column `test`.`t2`.`a` at row 1
DROP TABLE t1; DROP TABLE t1;
# #
# End of MDEV-8373 Zero date can be inserted in strict no-zero mode through CREATE TABLE AS SELECT timestamp_field # End of MDEV-8373 Zero date can be inserted in strict no-zero mode through CREATE TABLE AS SELECT timestamp_field

View File

@ -176,9 +176,9 @@ Note 1265 Data truncated for column 'a' at row 2
insert ignore into t1 values ("1e+18446744073709551615"),("1e+18446744073709551616"),("1e-9223372036854775807"),("1e-9223372036854775809"); insert ignore into t1 values ("1e+18446744073709551615"),("1e+18446744073709551616"),("1e-9223372036854775807"),("1e-9223372036854775809");
Warnings: Warnings:
Warning 1264 Out of range value for column 'a' at row 1 Warning 1264 Out of range value for column 'a' at row 1
Warning 1366 Incorrect decimal value: '1e+18446744073709551616' for column 'a' at row 2 Warning 1366 Incorrect decimal value: '1e+18446744073709551616' for column `test`.`t1`.`a` at row 2
Note 1265 Data truncated for column 'a' at row 3 Note 1265 Data truncated for column 'a' at row 3
Warning 1366 Incorrect decimal value: '1e-9223372036854775809' for column 'a' at row 4 Warning 1366 Incorrect decimal value: '1e-9223372036854775809' for column `test`.`t1`.`a` at row 4
insert ignore into t1 values ("123.4e"),("123.4e+2"),("123.4e-2"),("123e1"),("123e+0"); insert ignore into t1 values ("123.4e"),("123.4e+2"),("123.4e-2"),("123e1"),("123e+0");
Warnings: Warnings:
Warning 1265 Data truncated for column 'a' at row 1 Warning 1265 Data truncated for column 'a' at row 1

View File

@ -498,7 +498,7 @@ Warnings:
Warning 1265 Data truncated for column 'f' at row 1 Warning 1265 Data truncated for column 'f' at row 1
INSERT IGNORE INTO t1 VALUES ('.'); INSERT IGNORE INTO t1 VALUES ('.');
Warnings: Warnings:
Warning 1366 Incorrect double value: '.' for column 'f' at row 1 Warning 1366 Incorrect double value: '.' for column `test`.`t1`.`f` at row 1
SELECT * FROM t1 ORDER BY f; SELECT * FROM t1 ORDER BY f;
f f
0 0

View File

@ -825,7 +825,7 @@ Warning 1365 Division by 0
Warning 1365 Division by 0 Warning 1365 Division by 0
Warning 1365 Division by 0 Warning 1365 Division by 0
INSERT INTO Sow6_2f VALUES ('a59b'); INSERT INTO Sow6_2f VALUES ('a59b');
ERROR 22007: Incorrect decimal value: 'a59b' for column 'col1' at row 1 ERROR 22007: Incorrect decimal value: 'a59b' for column `test`.`Sow6_2f`.`col1` at row 1
drop table Sow6_2f; drop table Sow6_2f;
select 10.3330000000000/12.34500000; select 10.3330000000000/12.34500000;
10.3330000000000/12.34500000 10.3330000000000/12.34500000

View File

@ -42,171 +42,171 @@ Note 1265 Data truncated for column 'a' at row 1
DROP TABLE t1; DROP TABLE t1;
CREATE TABLE t1 (a FLOAT); CREATE TABLE t1 (a FLOAT);
INSERT INTO t1 VALUES (''); INSERT INTO t1 VALUES ('');
ERROR 22007: Incorrect double value: '' for column 'a' at row 1 ERROR 22007: Incorrect double value: '' for column `test`.`t1`.`a` at row 1
DROP TABLE t1; DROP TABLE t1;
CREATE TABLE t1 (a DOUBLE); CREATE TABLE t1 (a DOUBLE);
INSERT INTO t1 VALUES (''); INSERT INTO t1 VALUES ('');
ERROR 22007: Incorrect double value: '' for column 'a' at row 1 ERROR 22007: Incorrect double value: '' for column `test`.`t1`.`a` at row 1
DROP TABLE t1; DROP TABLE t1;
CREATE TABLE t1 (a TINYINT); CREATE TABLE t1 (a TINYINT);
INSERT INTO t1 VALUES (''); INSERT INTO t1 VALUES ('');
ERROR 22007: Incorrect integer value: '' for column 'a' at row 1 ERROR 22007: Incorrect integer value: '' for column `test`.`t1`.`a` at row 1
DROP TABLE t1; DROP TABLE t1;
CREATE TABLE t1 (a SMALLINT); CREATE TABLE t1 (a SMALLINT);
INSERT INTO t1 VALUES (''); INSERT INTO t1 VALUES ('');
ERROR 22007: Incorrect integer value: '' for column 'a' at row 1 ERROR 22007: Incorrect integer value: '' for column `test`.`t1`.`a` at row 1
DROP TABLE t1; DROP TABLE t1;
CREATE TABLE t1 (a INT); CREATE TABLE t1 (a INT);
INSERT INTO t1 VALUES (''); INSERT INTO t1 VALUES ('');
ERROR 22007: Incorrect integer value: '' for column 'a' at row 1 ERROR 22007: Incorrect integer value: '' for column `test`.`t1`.`a` at row 1
DROP TABLE t1; DROP TABLE t1;
CREATE TABLE t1 (a BIGINT); CREATE TABLE t1 (a BIGINT);
INSERT INTO t1 VALUES (''); INSERT INTO t1 VALUES ('');
ERROR 22007: Incorrect integer value: '' for column 'a' at row 1 ERROR 22007: Incorrect integer value: '' for column `test`.`t1`.`a` at row 1
DROP TABLE t1; DROP TABLE t1;
CREATE TABLE t1 (a DECIMAL); CREATE TABLE t1 (a DECIMAL);
INSERT INTO t1 VALUES (''); INSERT INTO t1 VALUES ('');
ERROR 22007: Incorrect decimal value: '' for column 'a' at row 1 ERROR 22007: Incorrect decimal value: '' for column `test`.`t1`.`a` at row 1
DROP TABLE t1; DROP TABLE t1;
CREATE TABLE t1 (a FLOAT); CREATE TABLE t1 (a FLOAT);
INSERT INTO t1 VALUES ('x'); INSERT INTO t1 VALUES ('x');
ERROR 22007: Incorrect double value: 'x' for column 'a' at row 1 ERROR 22007: Incorrect double value: 'x' for column `test`.`t1`.`a` at row 1
DROP TABLE t1; DROP TABLE t1;
CREATE TABLE t1 (a DOUBLE); CREATE TABLE t1 (a DOUBLE);
INSERT INTO t1 VALUES ('x'); INSERT INTO t1 VALUES ('x');
ERROR 22007: Incorrect double value: 'x' for column 'a' at row 1 ERROR 22007: Incorrect double value: 'x' for column `test`.`t1`.`a` at row 1
DROP TABLE t1; DROP TABLE t1;
CREATE TABLE t1 (a TINYINT); CREATE TABLE t1 (a TINYINT);
INSERT INTO t1 VALUES ('x'); INSERT INTO t1 VALUES ('x');
ERROR 22007: Incorrect integer value: 'x' for column 'a' at row 1 ERROR 22007: Incorrect integer value: 'x' for column `test`.`t1`.`a` at row 1
DROP TABLE t1; DROP TABLE t1;
CREATE TABLE t1 (a SMALLINT); CREATE TABLE t1 (a SMALLINT);
INSERT INTO t1 VALUES ('x'); INSERT INTO t1 VALUES ('x');
ERROR 22007: Incorrect integer value: 'x' for column 'a' at row 1 ERROR 22007: Incorrect integer value: 'x' for column `test`.`t1`.`a` at row 1
DROP TABLE t1; DROP TABLE t1;
CREATE TABLE t1 (a INT); CREATE TABLE t1 (a INT);
INSERT INTO t1 VALUES ('x'); INSERT INTO t1 VALUES ('x');
ERROR 22007: Incorrect integer value: 'x' for column 'a' at row 1 ERROR 22007: Incorrect integer value: 'x' for column `test`.`t1`.`a` at row 1
DROP TABLE t1; DROP TABLE t1;
CREATE TABLE t1 (a BIGINT); CREATE TABLE t1 (a BIGINT);
INSERT INTO t1 VALUES ('x'); INSERT INTO t1 VALUES ('x');
ERROR 22007: Incorrect integer value: 'x' for column 'a' at row 1 ERROR 22007: Incorrect integer value: 'x' for column `test`.`t1`.`a` at row 1
DROP TABLE t1; DROP TABLE t1;
CREATE TABLE t1 (a DECIMAL); CREATE TABLE t1 (a DECIMAL);
INSERT INTO t1 VALUES ('x'); INSERT INTO t1 VALUES ('x');
ERROR 22007: Incorrect decimal value: 'x' for column 'a' at row 1 ERROR 22007: Incorrect decimal value: 'x' for column `test`.`t1`.`a` at row 1
DROP TABLE t1; DROP TABLE t1;
CREATE TABLE t1 (a FLOAT); CREATE TABLE t1 (a FLOAT);
INSERT INTO t1 VALUES (' x'); INSERT INTO t1 VALUES (' x');
ERROR 22007: Incorrect double value: ' x' for column 'a' at row 1 ERROR 22007: Incorrect double value: ' x' for column `test`.`t1`.`a` at row 1
DROP TABLE t1; DROP TABLE t1;
CREATE TABLE t1 (a DOUBLE); CREATE TABLE t1 (a DOUBLE);
INSERT INTO t1 VALUES (' x'); INSERT INTO t1 VALUES (' x');
ERROR 22007: Incorrect double value: ' x' for column 'a' at row 1 ERROR 22007: Incorrect double value: ' x' for column `test`.`t1`.`a` at row 1
DROP TABLE t1; DROP TABLE t1;
CREATE TABLE t1 (a TINYINT); CREATE TABLE t1 (a TINYINT);
INSERT INTO t1 VALUES (' x'); INSERT INTO t1 VALUES (' x');
ERROR 22007: Incorrect integer value: ' x' for column 'a' at row 1 ERROR 22007: Incorrect integer value: ' x' for column `test`.`t1`.`a` at row 1
DROP TABLE t1; DROP TABLE t1;
CREATE TABLE t1 (a SMALLINT); CREATE TABLE t1 (a SMALLINT);
INSERT INTO t1 VALUES (' x'); INSERT INTO t1 VALUES (' x');
ERROR 22007: Incorrect integer value: ' x' for column 'a' at row 1 ERROR 22007: Incorrect integer value: ' x' for column `test`.`t1`.`a` at row 1
DROP TABLE t1; DROP TABLE t1;
CREATE TABLE t1 (a INT); CREATE TABLE t1 (a INT);
INSERT INTO t1 VALUES (' x'); INSERT INTO t1 VALUES (' x');
ERROR 22007: Incorrect integer value: ' x' for column 'a' at row 1 ERROR 22007: Incorrect integer value: ' x' for column `test`.`t1`.`a` at row 1
DROP TABLE t1; DROP TABLE t1;
CREATE TABLE t1 (a BIGINT); CREATE TABLE t1 (a BIGINT);
INSERT INTO t1 VALUES (' x'); INSERT INTO t1 VALUES (' x');
ERROR 22007: Incorrect integer value: ' x' for column 'a' at row 1 ERROR 22007: Incorrect integer value: ' x' for column `test`.`t1`.`a` at row 1
DROP TABLE t1; DROP TABLE t1;
CREATE TABLE t1 (a DECIMAL); CREATE TABLE t1 (a DECIMAL);
INSERT INTO t1 VALUES (' x'); INSERT INTO t1 VALUES (' x');
ERROR 22007: Incorrect decimal value: ' x' for column 'a' at row 1 ERROR 22007: Incorrect decimal value: ' x' for column `test`.`t1`.`a` at row 1
DROP TABLE t1; DROP TABLE t1;
CREATE TABLE t1 (a FLOAT); CREATE TABLE t1 (a FLOAT);
INSERT INTO t1 VALUES ('.'); INSERT INTO t1 VALUES ('.');
ERROR 22007: Incorrect double value: '.' for column 'a' at row 1 ERROR 22007: Incorrect double value: '.' for column `test`.`t1`.`a` at row 1
DROP TABLE t1; DROP TABLE t1;
CREATE TABLE t1 (a DOUBLE); CREATE TABLE t1 (a DOUBLE);
INSERT INTO t1 VALUES ('.'); INSERT INTO t1 VALUES ('.');
ERROR 22007: Incorrect double value: '.' for column 'a' at row 1 ERROR 22007: Incorrect double value: '.' for column `test`.`t1`.`a` at row 1
DROP TABLE t1; DROP TABLE t1;
CREATE TABLE t1 (a TINYINT); CREATE TABLE t1 (a TINYINT);
INSERT INTO t1 VALUES ('.'); INSERT INTO t1 VALUES ('.');
ERROR 22007: Incorrect integer value: '.' for column 'a' at row 1 ERROR 22007: Incorrect integer value: '.' for column `test`.`t1`.`a` at row 1
DROP TABLE t1; DROP TABLE t1;
CREATE TABLE t1 (a SMALLINT); CREATE TABLE t1 (a SMALLINT);
INSERT INTO t1 VALUES ('.'); INSERT INTO t1 VALUES ('.');
ERROR 22007: Incorrect integer value: '.' for column 'a' at row 1 ERROR 22007: Incorrect integer value: '.' for column `test`.`t1`.`a` at row 1
DROP TABLE t1; DROP TABLE t1;
CREATE TABLE t1 (a INT); CREATE TABLE t1 (a INT);
INSERT INTO t1 VALUES ('.'); INSERT INTO t1 VALUES ('.');
ERROR 22007: Incorrect integer value: '.' for column 'a' at row 1 ERROR 22007: Incorrect integer value: '.' for column `test`.`t1`.`a` at row 1
DROP TABLE t1; DROP TABLE t1;
CREATE TABLE t1 (a BIGINT); CREATE TABLE t1 (a BIGINT);
INSERT INTO t1 VALUES ('.'); INSERT INTO t1 VALUES ('.');
ERROR 22007: Incorrect integer value: '.' for column 'a' at row 1 ERROR 22007: Incorrect integer value: '.' for column `test`.`t1`.`a` at row 1
DROP TABLE t1; DROP TABLE t1;
CREATE TABLE t1 (a DECIMAL); CREATE TABLE t1 (a DECIMAL);
INSERT INTO t1 VALUES ('.'); INSERT INTO t1 VALUES ('.');
ERROR 22007: Incorrect decimal value: '.' for column 'a' at row 1 ERROR 22007: Incorrect decimal value: '.' for column `test`.`t1`.`a` at row 1
DROP TABLE t1; DROP TABLE t1;
CREATE TABLE t1 (a FLOAT); CREATE TABLE t1 (a FLOAT);
INSERT INTO t1 VALUES ('-'); INSERT INTO t1 VALUES ('-');
ERROR 22007: Incorrect double value: '-' for column 'a' at row 1 ERROR 22007: Incorrect double value: '-' for column `test`.`t1`.`a` at row 1
DROP TABLE t1; DROP TABLE t1;
CREATE TABLE t1 (a DOUBLE); CREATE TABLE t1 (a DOUBLE);
INSERT INTO t1 VALUES ('-'); INSERT INTO t1 VALUES ('-');
ERROR 22007: Incorrect double value: '-' for column 'a' at row 1 ERROR 22007: Incorrect double value: '-' for column `test`.`t1`.`a` at row 1
DROP TABLE t1; DROP TABLE t1;
CREATE TABLE t1 (a TINYINT); CREATE TABLE t1 (a TINYINT);
INSERT INTO t1 VALUES ('-'); INSERT INTO t1 VALUES ('-');
ERROR 22007: Incorrect integer value: '-' for column 'a' at row 1 ERROR 22007: Incorrect integer value: '-' for column `test`.`t1`.`a` at row 1
DROP TABLE t1; DROP TABLE t1;
CREATE TABLE t1 (a SMALLINT); CREATE TABLE t1 (a SMALLINT);
INSERT INTO t1 VALUES ('-'); INSERT INTO t1 VALUES ('-');
ERROR 22007: Incorrect integer value: '-' for column 'a' at row 1 ERROR 22007: Incorrect integer value: '-' for column `test`.`t1`.`a` at row 1
DROP TABLE t1; DROP TABLE t1;
CREATE TABLE t1 (a INT); CREATE TABLE t1 (a INT);
INSERT INTO t1 VALUES ('-'); INSERT INTO t1 VALUES ('-');
ERROR 22007: Incorrect integer value: '-' for column 'a' at row 1 ERROR 22007: Incorrect integer value: '-' for column `test`.`t1`.`a` at row 1
DROP TABLE t1; DROP TABLE t1;
CREATE TABLE t1 (a BIGINT); CREATE TABLE t1 (a BIGINT);
INSERT INTO t1 VALUES ('-'); INSERT INTO t1 VALUES ('-');
ERROR 22007: Incorrect integer value: '-' for column 'a' at row 1 ERROR 22007: Incorrect integer value: '-' for column `test`.`t1`.`a` at row 1
DROP TABLE t1; DROP TABLE t1;
CREATE TABLE t1 (a DECIMAL); CREATE TABLE t1 (a DECIMAL);
INSERT INTO t1 VALUES ('-'); INSERT INTO t1 VALUES ('-');
ERROR 22007: Incorrect decimal value: '-' for column 'a' at row 1 ERROR 22007: Incorrect decimal value: '-' for column `test`.`t1`.`a` at row 1
DROP TABLE t1; DROP TABLE t1;
CREATE TABLE t1 (a FLOAT); CREATE TABLE t1 (a FLOAT);
INSERT INTO t1 VALUES ('+'); INSERT INTO t1 VALUES ('+');
ERROR 22007: Incorrect double value: '+' for column 'a' at row 1 ERROR 22007: Incorrect double value: '+' for column `test`.`t1`.`a` at row 1
DROP TABLE t1; DROP TABLE t1;
CREATE TABLE t1 (a DOUBLE); CREATE TABLE t1 (a DOUBLE);
INSERT INTO t1 VALUES ('+'); INSERT INTO t1 VALUES ('+');
ERROR 22007: Incorrect double value: '+' for column 'a' at row 1 ERROR 22007: Incorrect double value: '+' for column `test`.`t1`.`a` at row 1
DROP TABLE t1; DROP TABLE t1;
CREATE TABLE t1 (a TINYINT); CREATE TABLE t1 (a TINYINT);
INSERT INTO t1 VALUES ('+'); INSERT INTO t1 VALUES ('+');
ERROR 22007: Incorrect integer value: '+' for column 'a' at row 1 ERROR 22007: Incorrect integer value: '+' for column `test`.`t1`.`a` at row 1
DROP TABLE t1; DROP TABLE t1;
CREATE TABLE t1 (a SMALLINT); CREATE TABLE t1 (a SMALLINT);
INSERT INTO t1 VALUES ('+'); INSERT INTO t1 VALUES ('+');
ERROR 22007: Incorrect integer value: '+' for column 'a' at row 1 ERROR 22007: Incorrect integer value: '+' for column `test`.`t1`.`a` at row 1
DROP TABLE t1; DROP TABLE t1;
CREATE TABLE t1 (a INT); CREATE TABLE t1 (a INT);
INSERT INTO t1 VALUES ('+'); INSERT INTO t1 VALUES ('+');
ERROR 22007: Incorrect integer value: '+' for column 'a' at row 1 ERROR 22007: Incorrect integer value: '+' for column `test`.`t1`.`a` at row 1
DROP TABLE t1; DROP TABLE t1;
CREATE TABLE t1 (a BIGINT); CREATE TABLE t1 (a BIGINT);
INSERT INTO t1 VALUES ('+'); INSERT INTO t1 VALUES ('+');
ERROR 22007: Incorrect integer value: '+' for column 'a' at row 1 ERROR 22007: Incorrect integer value: '+' for column `test`.`t1`.`a` at row 1
DROP TABLE t1; DROP TABLE t1;
CREATE TABLE t1 (a DECIMAL); CREATE TABLE t1 (a DECIMAL);
INSERT INTO t1 VALUES ('+'); INSERT INTO t1 VALUES ('+');
ERROR 22007: Incorrect decimal value: '+' for column 'a' at row 1 ERROR 22007: Incorrect decimal value: '+' for column `test`.`t1`.`a` at row 1
DROP TABLE t1; DROP TABLE t1;
CREATE TABLE t1 (a FLOAT); CREATE TABLE t1 (a FLOAT);
INSERT INTO t1 VALUES ('1x'); INSERT INTO t1 VALUES ('1x');
@ -425,58 +425,58 @@ Note 1265 Data truncated for column 'i8' at row 1
Note 1265 Data truncated for column 'd' at row 1 Note 1265 Data truncated for column 'd' at row 1
INSERT IGNORE INTO t1 VALUES ('','','','','','',''); INSERT IGNORE INTO t1 VALUES ('','','','','','','');
Warnings: Warnings:
Warning 1366 Incorrect double value: '' for column 'f4' at row 1 Warning 1366 Incorrect double value: '' for column `test`.`t1`.`f4` at row 1
Warning 1366 Incorrect double value: '' for column 'f8' at row 1 Warning 1366 Incorrect double value: '' for column `test`.`t1`.`f8` at row 1
Warning 1366 Incorrect integer value: '' for column 'i1' at row 1 Warning 1366 Incorrect integer value: '' for column `test`.`t1`.`i1` at row 1
Warning 1366 Incorrect integer value: '' for column 'i2' at row 1 Warning 1366 Incorrect integer value: '' for column `test`.`t1`.`i2` at row 1
Warning 1366 Incorrect integer value: '' for column 'i4' at row 1 Warning 1366 Incorrect integer value: '' for column `test`.`t1`.`i4` at row 1
Warning 1366 Incorrect integer value: '' for column 'i8' at row 1 Warning 1366 Incorrect integer value: '' for column `test`.`t1`.`i8` at row 1
Warning 1366 Incorrect decimal value: '' for column 'd' at row 1 Warning 1366 Incorrect decimal value: '' for column `test`.`t1`.`d` at row 1
INSERT IGNORE INTO t1 VALUES ('x','x','x','x','x','x','x'); INSERT IGNORE INTO t1 VALUES ('x','x','x','x','x','x','x');
Warnings: Warnings:
Warning 1366 Incorrect double value: 'x' for column 'f4' at row 1 Warning 1366 Incorrect double value: 'x' for column `test`.`t1`.`f4` at row 1
Warning 1366 Incorrect double value: 'x' for column 'f8' at row 1 Warning 1366 Incorrect double value: 'x' for column `test`.`t1`.`f8` at row 1
Warning 1366 Incorrect integer value: 'x' for column 'i1' at row 1 Warning 1366 Incorrect integer value: 'x' for column `test`.`t1`.`i1` at row 1
Warning 1366 Incorrect integer value: 'x' for column 'i2' at row 1 Warning 1366 Incorrect integer value: 'x' for column `test`.`t1`.`i2` at row 1
Warning 1366 Incorrect integer value: 'x' for column 'i4' at row 1 Warning 1366 Incorrect integer value: 'x' for column `test`.`t1`.`i4` at row 1
Warning 1366 Incorrect integer value: 'x' for column 'i8' at row 1 Warning 1366 Incorrect integer value: 'x' for column `test`.`t1`.`i8` at row 1
Warning 1366 Incorrect decimal value: 'x' for column 'd' at row 1 Warning 1366 Incorrect decimal value: 'x' for column `test`.`t1`.`d` at row 1
INSERT IGNORE INTO t1 VALUES (' x',' x',' x',' x',' x',' x',' x'); INSERT IGNORE INTO t1 VALUES (' x',' x',' x',' x',' x',' x',' x');
Warnings: Warnings:
Warning 1366 Incorrect double value: ' x' for column 'f4' at row 1 Warning 1366 Incorrect double value: ' x' for column `test`.`t1`.`f4` at row 1
Warning 1366 Incorrect double value: ' x' for column 'f8' at row 1 Warning 1366 Incorrect double value: ' x' for column `test`.`t1`.`f8` at row 1
Warning 1366 Incorrect integer value: ' x' for column 'i1' at row 1 Warning 1366 Incorrect integer value: ' x' for column `test`.`t1`.`i1` at row 1
Warning 1366 Incorrect integer value: ' x' for column 'i2' at row 1 Warning 1366 Incorrect integer value: ' x' for column `test`.`t1`.`i2` at row 1
Warning 1366 Incorrect integer value: ' x' for column 'i4' at row 1 Warning 1366 Incorrect integer value: ' x' for column `test`.`t1`.`i4` at row 1
Warning 1366 Incorrect integer value: ' x' for column 'i8' at row 1 Warning 1366 Incorrect integer value: ' x' for column `test`.`t1`.`i8` at row 1
Warning 1366 Incorrect decimal value: ' x' for column 'd' at row 1 Warning 1366 Incorrect decimal value: ' x' for column `test`.`t1`.`d` at row 1
INSERT IGNORE INTO t1 VALUES ('.','.','.','.','.','.','.'); INSERT IGNORE INTO t1 VALUES ('.','.','.','.','.','.','.');
Warnings: Warnings:
Warning 1366 Incorrect double value: '.' for column 'f4' at row 1 Warning 1366 Incorrect double value: '.' for column `test`.`t1`.`f4` at row 1
Warning 1366 Incorrect double value: '.' for column 'f8' at row 1 Warning 1366 Incorrect double value: '.' for column `test`.`t1`.`f8` at row 1
Warning 1366 Incorrect integer value: '.' for column 'i1' at row 1 Warning 1366 Incorrect integer value: '.' for column `test`.`t1`.`i1` at row 1
Warning 1366 Incorrect integer value: '.' for column 'i2' at row 1 Warning 1366 Incorrect integer value: '.' for column `test`.`t1`.`i2` at row 1
Warning 1366 Incorrect integer value: '.' for column 'i4' at row 1 Warning 1366 Incorrect integer value: '.' for column `test`.`t1`.`i4` at row 1
Warning 1366 Incorrect integer value: '.' for column 'i8' at row 1 Warning 1366 Incorrect integer value: '.' for column `test`.`t1`.`i8` at row 1
Warning 1366 Incorrect decimal value: '.' for column 'd' at row 1 Warning 1366 Incorrect decimal value: '.' for column `test`.`t1`.`d` at row 1
INSERT IGNORE INTO t1 VALUES ('-','-','-','-','-','-','-'); INSERT IGNORE INTO t1 VALUES ('-','-','-','-','-','-','-');
Warnings: Warnings:
Warning 1366 Incorrect double value: '-' for column 'f4' at row 1 Warning 1366 Incorrect double value: '-' for column `test`.`t1`.`f4` at row 1
Warning 1366 Incorrect double value: '-' for column 'f8' at row 1 Warning 1366 Incorrect double value: '-' for column `test`.`t1`.`f8` at row 1
Warning 1366 Incorrect integer value: '-' for column 'i1' at row 1 Warning 1366 Incorrect integer value: '-' for column `test`.`t1`.`i1` at row 1
Warning 1366 Incorrect integer value: '-' for column 'i2' at row 1 Warning 1366 Incorrect integer value: '-' for column `test`.`t1`.`i2` at row 1
Warning 1366 Incorrect integer value: '-' for column 'i4' at row 1 Warning 1366 Incorrect integer value: '-' for column `test`.`t1`.`i4` at row 1
Warning 1366 Incorrect integer value: '-' for column 'i8' at row 1 Warning 1366 Incorrect integer value: '-' for column `test`.`t1`.`i8` at row 1
Warning 1366 Incorrect decimal value: '-' for column 'd' at row 1 Warning 1366 Incorrect decimal value: '-' for column `test`.`t1`.`d` at row 1
INSERT IGNORE INTO t1 VALUES ('+','+','+','+','+','+','+'); INSERT IGNORE INTO t1 VALUES ('+','+','+','+','+','+','+');
Warnings: Warnings:
Warning 1366 Incorrect double value: '+' for column 'f4' at row 1 Warning 1366 Incorrect double value: '+' for column `test`.`t1`.`f4` at row 1
Warning 1366 Incorrect double value: '+' for column 'f8' at row 1 Warning 1366 Incorrect double value: '+' for column `test`.`t1`.`f8` at row 1
Warning 1366 Incorrect integer value: '+' for column 'i1' at row 1 Warning 1366 Incorrect integer value: '+' for column `test`.`t1`.`i1` at row 1
Warning 1366 Incorrect integer value: '+' for column 'i2' at row 1 Warning 1366 Incorrect integer value: '+' for column `test`.`t1`.`i2` at row 1
Warning 1366 Incorrect integer value: '+' for column 'i4' at row 1 Warning 1366 Incorrect integer value: '+' for column `test`.`t1`.`i4` at row 1
Warning 1366 Incorrect integer value: '+' for column 'i8' at row 1 Warning 1366 Incorrect integer value: '+' for column `test`.`t1`.`i8` at row 1
Warning 1366 Incorrect decimal value: '+' for column 'd' at row 1 Warning 1366 Incorrect decimal value: '+' for column `test`.`t1`.`d` at row 1
INSERT IGNORE INTO t1 VALUES ('1x','1x','1x','1x','1x','1x','1x'); INSERT IGNORE INTO t1 VALUES ('1x','1x','1x','1x','1x','1x','1x');
Warnings: Warnings:
Warning 1265 Data truncated for column 'f4' at row 1 Warning 1265 Data truncated for column 'f4' at row 1

View File

@ -320,7 +320,7 @@ DROP TABLE t2,t1;
SET sql_mode=traditional; SET sql_mode=traditional;
CREATE TABLE t1 (a TIME(6)); CREATE TABLE t1 (a TIME(6));
INSERT INTO t1 VALUES (CAST(0xFFFFFFFF00000000 AS UNSIGNED)); INSERT INTO t1 VALUES (CAST(0xFFFFFFFF00000000 AS UNSIGNED));
ERROR 22007: Incorrect time value: '18446744069414584320' for column 'a' at row 1 ERROR 22007: Incorrect time value: '18446744069414584320' for column `test`.`t1`.`a` at row 1
SET sql_mode=DEFAULT; SET sql_mode=DEFAULT;
INSERT IGNORE INTO t1 VALUES (CAST(0xFFFFFFFF00000000 AS UNSIGNED)); INSERT IGNORE INTO t1 VALUES (CAST(0xFFFFFFFF00000000 AS UNSIGNED));
Warnings: Warnings:
@ -1167,7 +1167,7 @@ SELECT CAST(a AS TIME), CAST(-9223372036854775808 AS TIME) FROM t1;
CAST(a AS TIME) CAST(-9223372036854775808 AS TIME) CAST(a AS TIME) CAST(-9223372036854775808 AS TIME)
-838:59:59 -838:59:59 -838:59:59 -838:59:59
Warnings: Warnings:
Warning 1292 Incorrect time value: '-9223372036854775808' for column 'a' at row 1 Warning 1292 Incorrect time value: '-9223372036854775808' for column `test`.`t1`.`a` at row 1
Warning 1292 Truncated incorrect time value: '-9223372036854775808' Warning 1292 Truncated incorrect time value: '-9223372036854775808'
DROP TABLE t1; DROP TABLE t1;
CREATE TABLE t1 (a INT, b DECIMAL, c DOUBLE); CREATE TABLE t1 (a INT, b DECIMAL, c DOUBLE);
@ -1184,12 +1184,12 @@ a TIME(a) TIME(b) TIME(c)
9 00:00:09 00:00:09 00:00:09.000000 9 00:00:09 00:00:09 00:00:09.000000
9000000 838:59:59 838:59:59 838:59:59.999999 9000000 838:59:59 838:59:59 838:59:59.999999
Warnings: Warnings:
Warning 1292 Incorrect time value: '-9000000' for column 'a' at row 1 Warning 1292 Incorrect time value: '-9000000' for column `test`.`t1`.`a` at row 1
Warning 1292 Incorrect time value: '-9000000' for column 'b' at row 1 Warning 1292 Incorrect time value: '-9000000' for column `test`.`t1`.`b` at row 1
Warning 1292 Incorrect time value: '-9000000' for column 'c' at row 1 Warning 1292 Incorrect time value: '-9000000' for column `test`.`t1`.`c` at row 1
Warning 1292 Incorrect time value: '9000000' for column 'a' at row 6 Warning 1292 Incorrect time value: '9000000' for column `test`.`t1`.`a` at row 6
Warning 1292 Incorrect time value: '9000000' for column 'b' at row 6 Warning 1292 Incorrect time value: '9000000' for column `test`.`t1`.`b` at row 6
Warning 1292 Incorrect time value: '9000000' for column 'c' at row 6 Warning 1292 Incorrect time value: '9000000' for column `test`.`t1`.`c` at row 6
DROP TABLE t1; DROP TABLE t1;
CREATE TABLE t1 (a INT, b DECIMAL, c DOUBLE); CREATE TABLE t1 (a INT, b DECIMAL, c DOUBLE);
INSERT INTO t1 VALUES (0,0,0),(1,1,1),(9,9,9); INSERT INTO t1 VALUES (0,0,0),(1,1,1),(9,9,9);
@ -1201,9 +1201,9 @@ a TIME(a) TIME(b) TIME(c)
9 00:00:09 00:00:09 00:00:09.000000 9 00:00:09 00:00:09 00:00:09.000000
9000000 838:59:59 838:59:59 838:59:59.999999 9000000 838:59:59 838:59:59 838:59:59.999999
Warnings: Warnings:
Warning 1292 Incorrect time value: '9000000' for column 'a' at row 4 Warning 1292 Incorrect time value: '9000000' for column `test`.`t1`.`a` at row 4
Warning 1292 Incorrect time value: '9000000' for column 'b' at row 4 Warning 1292 Incorrect time value: '9000000' for column `test`.`t1`.`b` at row 4
Warning 1292 Incorrect time value: '9000000' for column 'c' at row 4 Warning 1292 Incorrect time value: '9000000' for column `test`.`t1`.`c` at row 4
DROP TABLE t1; DROP TABLE t1;
# #
# MDEV-8862 Wrong field type for MAX(COALESCE(datetime_column)) # MDEV-8862 Wrong field type for MAX(COALESCE(datetime_column))

View File

@ -762,7 +762,7 @@ SET sql_mode=DEFAULT;
CREATE TABLE t1 (a TIMESTAMP DEFAULT '0000-00-00 00:00:00'); CREATE TABLE t1 (a TIMESTAMP DEFAULT '0000-00-00 00:00:00');
SET sql_mode=TRADITIONAL; SET sql_mode=TRADITIONAL;
INSERT INTO t1 VALUES ('0000-00-00 00:00:00'); INSERT INTO t1 VALUES ('0000-00-00 00:00:00');
ERROR 22007: Incorrect datetime value: '0000-00-00 00:00:00' for column 'a' at row 1 ERROR 22007: Incorrect datetime value: '0000-00-00 00:00:00' for column `test`.`t1`.`a` at row 1
INSERT INTO t1 VALUES (); INSERT INTO t1 VALUES ();
ERROR 22007: Incorrect default value '0000-00-00 00:00:00' for column 'a' ERROR 22007: Incorrect default value '0000-00-00 00:00:00' for column 'a'
INSERT INTO t1 VALUES (DEFAULT); INSERT INTO t1 VALUES (DEFAULT);
@ -803,7 +803,7 @@ CREATE TABLE t1 (a TIMESTAMP);;
INSERT INTO t1 VALUES (0); INSERT INTO t1 VALUES (0);
SET sql_mode='TRADITIONAL'; SET sql_mode='TRADITIONAL';
CREATE TABLE t2 AS SELECT * FROM t1; CREATE TABLE t2 AS SELECT * FROM t1;
ERROR 22007: Incorrect datetime value: '0000-00-00 00:00:00' for column 'a' at row 1 ERROR 22007: Incorrect datetime value: '0000-00-00 00:00:00' for column `test`.`t2`.`a` at row 1
DROP TABLE t1; DROP TABLE t1;
# #
# End of MDEV-8373 Zero date can be inserted in strict no-zero mode through CREATE TABLE AS SELECT timestamp_field # End of MDEV-8373 Zero date can be inserted in strict no-zero mode through CREATE TABLE AS SELECT timestamp_field

View File

@ -1353,10 +1353,10 @@ load data infile '../../std_data/loaddata3.dat' ignore into table v1 fields term
Warnings: Warnings:
Note 1265 Data truncated for column 'a' at row 1 Note 1265 Data truncated for column 'a' at row 1
Note 1265 Data truncated for column 'a' at row 2 Note 1265 Data truncated for column 'a' at row 2
Warning 1366 Incorrect integer value: 'error ' for column 'a' at row 3 Warning 1366 Incorrect integer value: 'error ' for column `test`.`t1`.`a` at row 3
Warning 1369 CHECK OPTION failed `test`.`v1` Warning 1369 CHECK OPTION failed `test`.`v1`
Note 1265 Data truncated for column 'a' at row 3 Note 1265 Data truncated for column 'a' at row 3
Warning 1366 Incorrect integer value: 'wrong end ' for column 'a' at row 4 Warning 1366 Incorrect integer value: 'wrong end ' for column `test`.`t1`.`a` at row 4
Warning 1369 CHECK OPTION failed `test`.`v1` Warning 1369 CHECK OPTION failed `test`.`v1`
select * from t1 order by a,b; select * from t1 order by a,b;
a b a b

View File

@ -31,19 +31,19 @@ Error 1064 You have an error in your SQL syntax; check the manual that correspon
insert into t1 values (1); insert into t1 values (1);
insert ignore into t1 values ("hej"); insert ignore into t1 values ("hej");
Warnings: Warnings:
Warning 1366 Incorrect integer value: 'hej' for column 'a' at row 1 Warning 1366 Incorrect integer value: 'hej' for column `test`.`t1`.`a` at row 1
insert ignore into t1 values ("hej"),("då"); insert ignore into t1 values ("hej"),("då");
Warnings: Warnings:
Warning 1366 Incorrect integer value: 'hej' for column 'a' at row 1 Warning 1366 Incorrect integer value: 'hej' for column `test`.`t1`.`a` at row 1
Warning 1366 Incorrect integer value: 'då' for column 'a' at row 2 Warning 1366 Incorrect integer value: 'då' for column `test`.`t1`.`a` at row 2
set SQL_WARNINGS=1; set SQL_WARNINGS=1;
insert ignore into t1 values ("hej"); insert ignore into t1 values ("hej");
Warnings: Warnings:
Warning 1366 Incorrect integer value: 'hej' for column 'a' at row 1 Warning 1366 Incorrect integer value: 'hej' for column `test`.`t1`.`a` at row 1
insert ignore into t1 values ("hej"),("då"); insert ignore into t1 values ("hej"),("då");
Warnings: Warnings:
Warning 1366 Incorrect integer value: 'hej' for column 'a' at row 1 Warning 1366 Incorrect integer value: 'hej' for column `test`.`t1`.`a` at row 1
Warning 1366 Incorrect integer value: 'då' for column 'a' at row 2 Warning 1366 Incorrect integer value: 'då' for column `test`.`t1`.`a` at row 2
drop table t1; drop table t1;
set SQL_WARNINGS=0; set SQL_WARNINGS=0;
drop temporary table if exists not_exists; drop temporary table if exists not_exists;
@ -171,44 +171,44 @@ create table t1 (a int);
insert into t1 (a) values (1), (2), (3), (4), (5), (6), (7), (8), (9), (10); insert into t1 (a) values (1), (2), (3), (4), (5), (6), (7), (8), (9), (10);
update ignore t1 set a='abc'; update ignore t1 set a='abc';
Warnings: Warnings:
Warning 1366 Incorrect integer value: 'abc' for column 'a' at row 1 Warning 1366 Incorrect integer value: 'abc' for column `test`.`t1`.`a` at row 1
Warning 1366 Incorrect integer value: 'abc' for column 'a' at row 2 Warning 1366 Incorrect integer value: 'abc' for column `test`.`t1`.`a` at row 2
Warning 1366 Incorrect integer value: 'abc' for column 'a' at row 3 Warning 1366 Incorrect integer value: 'abc' for column `test`.`t1`.`a` at row 3
Warning 1366 Incorrect integer value: 'abc' for column 'a' at row 4 Warning 1366 Incorrect integer value: 'abc' for column `test`.`t1`.`a` at row 4
Warning 1366 Incorrect integer value: 'abc' for column 'a' at row 5 Warning 1366 Incorrect integer value: 'abc' for column `test`.`t1`.`a` at row 5
Warning 1366 Incorrect integer value: 'abc' for column 'a' at row 6 Warning 1366 Incorrect integer value: 'abc' for column `test`.`t1`.`a` at row 6
Warning 1366 Incorrect integer value: 'abc' for column 'a' at row 7 Warning 1366 Incorrect integer value: 'abc' for column `test`.`t1`.`a` at row 7
Warning 1366 Incorrect integer value: 'abc' for column 'a' at row 8 Warning 1366 Incorrect integer value: 'abc' for column `test`.`t1`.`a` at row 8
Warning 1366 Incorrect integer value: 'abc' for column 'a' at row 9 Warning 1366 Incorrect integer value: 'abc' for column `test`.`t1`.`a` at row 9
Warning 1366 Incorrect integer value: 'abc' for column 'a' at row 10 Warning 1366 Incorrect integer value: 'abc' for column `test`.`t1`.`a` at row 10
show warnings limit 2, 1; show warnings limit 2, 1;
Level Code Message Level Code Message
Warning 1366 Incorrect integer value: 'abc' for column 'a' at row 3 Warning 1366 Incorrect integer value: 'abc' for column `test`.`t1`.`a` at row 3
show warnings limit 0, 10; show warnings limit 0, 10;
Level Code Message Level Code Message
Warning 1366 Incorrect integer value: 'abc' for column 'a' at row 1 Warning 1366 Incorrect integer value: 'abc' for column `test`.`t1`.`a` at row 1
Warning 1366 Incorrect integer value: 'abc' for column 'a' at row 2 Warning 1366 Incorrect integer value: 'abc' for column `test`.`t1`.`a` at row 2
Warning 1366 Incorrect integer value: 'abc' for column 'a' at row 3 Warning 1366 Incorrect integer value: 'abc' for column `test`.`t1`.`a` at row 3
Warning 1366 Incorrect integer value: 'abc' for column 'a' at row 4 Warning 1366 Incorrect integer value: 'abc' for column `test`.`t1`.`a` at row 4
Warning 1366 Incorrect integer value: 'abc' for column 'a' at row 5 Warning 1366 Incorrect integer value: 'abc' for column `test`.`t1`.`a` at row 5
Warning 1366 Incorrect integer value: 'abc' for column 'a' at row 6 Warning 1366 Incorrect integer value: 'abc' for column `test`.`t1`.`a` at row 6
Warning 1366 Incorrect integer value: 'abc' for column 'a' at row 7 Warning 1366 Incorrect integer value: 'abc' for column `test`.`t1`.`a` at row 7
Warning 1366 Incorrect integer value: 'abc' for column 'a' at row 8 Warning 1366 Incorrect integer value: 'abc' for column `test`.`t1`.`a` at row 8
Warning 1366 Incorrect integer value: 'abc' for column 'a' at row 9 Warning 1366 Incorrect integer value: 'abc' for column `test`.`t1`.`a` at row 9
Warning 1366 Incorrect integer value: 'abc' for column 'a' at row 10 Warning 1366 Incorrect integer value: 'abc' for column `test`.`t1`.`a` at row 10
show warnings limit 9, 1; show warnings limit 9, 1;
Level Code Message Level Code Message
Warning 1366 Incorrect integer value: 'abc' for column 'a' at row 10 Warning 1366 Incorrect integer value: 'abc' for column `test`.`t1`.`a` at row 10
show warnings limit 10, 1; show warnings limit 10, 1;
Level Code Message Level Code Message
show warnings limit 9, 2; show warnings limit 9, 2;
Level Code Message Level Code Message
Warning 1366 Incorrect integer value: 'abc' for column 'a' at row 10 Warning 1366 Incorrect integer value: 'abc' for column `test`.`t1`.`a` at row 10
show warnings limit 0, 0; show warnings limit 0, 0;
Level Code Message Level Code Message
show warnings limit 1; show warnings limit 1;
Level Code Message Level Code Message
Warning 1366 Incorrect integer value: 'abc' for column 'a' at row 1 Warning 1366 Incorrect integer value: 'abc' for column `test`.`t1`.`a` at row 1
show warnings limit 0; show warnings limit 0;
Level Code Message Level Code Message
show warnings limit 1, 0; show warnings limit 1, 0;
@ -254,13 +254,13 @@ SELECT f1 INTO x FROM t3 LIMIT 1;
END// END//
CALL sp1(); CALL sp1();
Warnings: Warnings:
Warning 1366 Incorrect decimal value: 'a`' for column 'x' at row 1 Warning 1366 Incorrect decimal value: 'a`' for column ``.``.`x` at row 1
CALL sp2(); CALL sp2();
Warnings: Warnings:
Warning 1366 Incorrect decimal value: 'a`' for column 'x' at row 1 Warning 1366 Incorrect decimal value: 'a`' for column ``.``.`x` at row 1
CALL sp3(); CALL sp3();
Warnings: Warnings:
Warning 1366 Incorrect decimal value: 'a`' for column 'x' at row 1 Warning 1366 Incorrect decimal value: 'a`' for column ``.``.`x` at row 1
SET sql_mode = DEFAULT; SET sql_mode = DEFAULT;
DROP PROCEDURE IF EXISTS sp1; DROP PROCEDURE IF EXISTS sp1;
SET sql_mode = ''; SET sql_mode = '';
@ -271,7 +271,7 @@ SELECT f1 into x from t2 limit 1;
END// END//
CALL sp1(); CALL sp1();
Warnings: Warnings:
Warning 1366 Incorrect decimal value: 'a`' for column 'x' at row 1 Warning 1366 Incorrect decimal value: 'a`' for column ``.``.`x` at row 1
SET sql_mode = DEFAULT; SET sql_mode = DEFAULT;
DROP TABLE t1; DROP TABLE t1;
DROP TABLE t2; DROP TABLE t2;

View File

@ -3715,8 +3715,8 @@ NULL NULL 1
-00:00:01 -1 5 -00:00:01 -1 5
00:17:58 1758 25 00:17:58 1758 25
Warnings: Warnings:
Warning 1292 Incorrect time value: '-1.7976931348623e308' for column 'my_double' at row 2 Warning 1292 Incorrect time value: '-1.7976931348623e308' for column `test`.`t1_values`.`my_double` at row 2
Warning 1292 Incorrect time value: '1.7976931348623e308' for column 'my_double' at row 3 Warning 1292 Incorrect time value: '1.7976931348623e308' for column `test`.`t1_values`.`my_double` at row 3
SHOW CREATE VIEW v1; SHOW CREATE VIEW v1;
View Create View character_set_client collation_connection View Create View character_set_client collation_connection
v1 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v1` AS select cast(`t1_values`.`my_double` as time) AS `CAST(my_double AS TIME)`,`t1_values`.`my_double` AS `my_double`,`t1_values`.`id` AS `id` from `t1_values` latin1 latin1_swedish_ci v1 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v1` AS select cast(`t1_values`.`my_double` as time) AS `CAST(my_double AS TIME)`,`t1_values`.`my_double` AS `my_double`,`t1_values`.`id` AS `id` from `t1_values` latin1 latin1_swedish_ci
@ -3731,8 +3731,8 @@ NULL NULL 1
-00:00:01 -1 5 -00:00:01 -1 5
00:17:58 1758 25 00:17:58 1758 25
Warnings: Warnings:
Warning 1292 Incorrect time value: '-1.7976931348623e308' for column 'my_double' at row 1 Warning 1292 Incorrect time value: '-1.7976931348623e308' for column `test`.`t1_values`.`my_double` at row 1
Warning 1292 Incorrect time value: '1.7976931348623e308' for column 'my_double' at row 1 Warning 1292 Incorrect time value: '1.7976931348623e308' for column `test`.`t1_values`.`my_double` at row 1
DROP VIEW v1; DROP VIEW v1;
@ -3749,8 +3749,8 @@ NULL NULL 1
-00:00:01 -1 5 -00:00:01 -1 5
00:17:58 1758 24 00:17:58 1758 24
Warnings: Warnings:
Warning 1292 Incorrect time value: '-9223372036854775808' for column 'my_bigint' at row 2 Warning 1292 Incorrect time value: '-9223372036854775808' for column `test`.`t1_values`.`my_bigint` at row 2
Warning 1292 Incorrect time value: '9223372036854775807' for column 'my_bigint' at row 3 Warning 1292 Incorrect time value: '9223372036854775807' for column `test`.`t1_values`.`my_bigint` at row 3
SHOW CREATE VIEW v1; SHOW CREATE VIEW v1;
View Create View character_set_client collation_connection View Create View character_set_client collation_connection
v1 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v1` AS select cast(`t1_values`.`my_bigint` as time) AS `CAST(my_bigint AS TIME)`,`t1_values`.`my_bigint` AS `my_bigint`,`t1_values`.`id` AS `id` from `t1_values` latin1 latin1_swedish_ci v1 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v1` AS select cast(`t1_values`.`my_bigint` as time) AS `CAST(my_bigint AS TIME)`,`t1_values`.`my_bigint` AS `my_bigint`,`t1_values`.`id` AS `id` from `t1_values` latin1 latin1_swedish_ci
@ -3765,8 +3765,8 @@ NULL NULL 1
-00:00:01 -1 5 -00:00:01 -1 5
00:17:58 1758 24 00:17:58 1758 24
Warnings: Warnings:
Warning 1292 Incorrect time value: '-9223372036854775808' for column 'my_bigint' at row 1 Warning 1292 Incorrect time value: '-9223372036854775808' for column `test`.`t1_values`.`my_bigint` at row 1
Warning 1292 Incorrect time value: '9223372036854775807' for column 'my_bigint' at row 1 Warning 1292 Incorrect time value: '9223372036854775807' for column `test`.`t1_values`.`my_bigint` at row 1
DROP VIEW v1; DROP VIEW v1;
@ -4061,10 +4061,10 @@ NULL 1.7976931348623e308 3
NULL -1 5 NULL -1 5
NULL 200506271758 19 NULL 200506271758 19
Warnings: Warnings:
Warning 1292 Incorrect datetime value: '-1.7976931348623e308' for column 'my_double' at row 2 Warning 1292 Incorrect datetime value: '-1.7976931348623e308' for column `test`.`t1_values`.`my_double` at row 2
Warning 1292 Incorrect datetime value: '1.7976931348623e308' for column 'my_double' at row 3 Warning 1292 Incorrect datetime value: '1.7976931348623e308' for column `test`.`t1_values`.`my_double` at row 3
Warning 1292 Incorrect datetime value: '-1' for column 'my_double' at row 5 Warning 1292 Incorrect datetime value: '-1' for column `test`.`t1_values`.`my_double` at row 5
Warning 1292 Incorrect datetime value: '200506271758' for column 'my_double' at row 19 Warning 1292 Incorrect datetime value: '200506271758' for column `test`.`t1_values`.`my_double` at row 19
SHOW CREATE VIEW v1; SHOW CREATE VIEW v1;
View Create View character_set_client collation_connection View Create View character_set_client collation_connection
v1 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v1` AS select cast(`t1_values`.`my_double` as datetime) AS `CAST(my_double AS DATETIME)`,`t1_values`.`my_double` AS `my_double`,`t1_values`.`id` AS `id` from `t1_values` latin1 latin1_swedish_ci v1 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v1` AS select cast(`t1_values`.`my_double` as datetime) AS `CAST(my_double AS DATETIME)`,`t1_values`.`my_double` AS `my_double`,`t1_values`.`id` AS `id` from `t1_values` latin1 latin1_swedish_ci
@ -4079,10 +4079,10 @@ NULL 1.7976931348623e308 3
NULL -1 5 NULL -1 5
NULL 200506271758 19 NULL 200506271758 19
Warnings: Warnings:
Warning 1292 Incorrect datetime value: '-1.7976931348623e308' for column 'my_double' at row 1 Warning 1292 Incorrect datetime value: '-1.7976931348623e308' for column `test`.`t1_values`.`my_double` at row 1
Warning 1292 Incorrect datetime value: '1.7976931348623e308' for column 'my_double' at row 1 Warning 1292 Incorrect datetime value: '1.7976931348623e308' for column `test`.`t1_values`.`my_double` at row 1
Warning 1292 Incorrect datetime value: '-1' for column 'my_double' at row 1 Warning 1292 Incorrect datetime value: '-1' for column `test`.`t1_values`.`my_double` at row 1
Warning 1292 Incorrect datetime value: '200506271758' for column 'my_double' at row 1 Warning 1292 Incorrect datetime value: '200506271758' for column `test`.`t1_values`.`my_double` at row 1
DROP VIEW v1; DROP VIEW v1;
@ -4099,10 +4099,10 @@ NULL 9223372036854775807 3
NULL -1 5 NULL -1 5
NULL 200506271758 18 NULL 200506271758 18
Warnings: Warnings:
Warning 1292 Incorrect datetime value: '-9223372036854775808' for column 'my_bigint' at row 2 Warning 1292 Incorrect datetime value: '-9223372036854775808' for column `test`.`t1_values`.`my_bigint` at row 2
Warning 1292 Incorrect datetime value: '9223372036854775807' for column 'my_bigint' at row 3 Warning 1292 Incorrect datetime value: '9223372036854775807' for column `test`.`t1_values`.`my_bigint` at row 3
Warning 1292 Incorrect datetime value: '-1' for column 'my_bigint' at row 5 Warning 1292 Incorrect datetime value: '-1' for column `test`.`t1_values`.`my_bigint` at row 5
Warning 1292 Incorrect datetime value: '200506271758' for column 'my_bigint' at row 18 Warning 1292 Incorrect datetime value: '200506271758' for column `test`.`t1_values`.`my_bigint` at row 18
SHOW CREATE VIEW v1; SHOW CREATE VIEW v1;
View Create View character_set_client collation_connection View Create View character_set_client collation_connection
v1 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v1` AS select cast(`t1_values`.`my_bigint` as datetime) AS `CAST(my_bigint AS DATETIME)`,`t1_values`.`my_bigint` AS `my_bigint`,`t1_values`.`id` AS `id` from `t1_values` latin1 latin1_swedish_ci v1 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v1` AS select cast(`t1_values`.`my_bigint` as datetime) AS `CAST(my_bigint AS DATETIME)`,`t1_values`.`my_bigint` AS `my_bigint`,`t1_values`.`id` AS `id` from `t1_values` latin1 latin1_swedish_ci
@ -4117,10 +4117,10 @@ NULL 9223372036854775807 3
NULL -1 5 NULL -1 5
NULL 200506271758 18 NULL 200506271758 18
Warnings: Warnings:
Warning 1292 Incorrect datetime value: '-9223372036854775808' for column 'my_bigint' at row 1 Warning 1292 Incorrect datetime value: '-9223372036854775808' for column `test`.`t1_values`.`my_bigint` at row 1
Warning 1292 Incorrect datetime value: '9223372036854775807' for column 'my_bigint' at row 1 Warning 1292 Incorrect datetime value: '9223372036854775807' for column `test`.`t1_values`.`my_bigint` at row 1
Warning 1292 Incorrect datetime value: '-1' for column 'my_bigint' at row 1 Warning 1292 Incorrect datetime value: '-1' for column `test`.`t1_values`.`my_bigint` at row 1
Warning 1292 Incorrect datetime value: '200506271758' for column 'my_bigint' at row 1 Warning 1292 Incorrect datetime value: '200506271758' for column `test`.`t1_values`.`my_bigint` at row 1
DROP VIEW v1; DROP VIEW v1;
@ -4421,9 +4421,9 @@ NULL 1.7976931348623e308 3
NULL -1 5 NULL -1 5
2005-06-27 20050627 13 2005-06-27 20050627 13
Warnings: Warnings:
Warning 1292 Incorrect datetime value: '-1.7976931348623e308' for column 'my_double' at row 2 Warning 1292 Incorrect datetime value: '-1.7976931348623e308' for column `test`.`t1_values`.`my_double` at row 2
Warning 1292 Incorrect datetime value: '1.7976931348623e308' for column 'my_double' at row 3 Warning 1292 Incorrect datetime value: '1.7976931348623e308' for column `test`.`t1_values`.`my_double` at row 3
Warning 1292 Incorrect datetime value: '-1' for column 'my_double' at row 5 Warning 1292 Incorrect datetime value: '-1' for column `test`.`t1_values`.`my_double` at row 5
SHOW CREATE VIEW v1; SHOW CREATE VIEW v1;
View Create View character_set_client collation_connection View Create View character_set_client collation_connection
v1 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v1` AS select cast(`t1_values`.`my_double` as date) AS `CAST(my_double AS DATE)`,`t1_values`.`my_double` AS `my_double`,`t1_values`.`id` AS `id` from `t1_values` latin1 latin1_swedish_ci v1 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v1` AS select cast(`t1_values`.`my_double` as date) AS `CAST(my_double AS DATE)`,`t1_values`.`my_double` AS `my_double`,`t1_values`.`id` AS `id` from `t1_values` latin1 latin1_swedish_ci
@ -4438,9 +4438,9 @@ NULL 1.7976931348623e308 3
NULL -1 5 NULL -1 5
2005-06-27 20050627 13 2005-06-27 20050627 13
Warnings: Warnings:
Warning 1292 Incorrect datetime value: '-1.7976931348623e308' for column 'my_double' at row 1 Warning 1292 Incorrect datetime value: '-1.7976931348623e308' for column `test`.`t1_values`.`my_double` at row 1
Warning 1292 Incorrect datetime value: '1.7976931348623e308' for column 'my_double' at row 1 Warning 1292 Incorrect datetime value: '1.7976931348623e308' for column `test`.`t1_values`.`my_double` at row 1
Warning 1292 Incorrect datetime value: '-1' for column 'my_double' at row 1 Warning 1292 Incorrect datetime value: '-1' for column `test`.`t1_values`.`my_double` at row 1
DROP VIEW v1; DROP VIEW v1;
@ -4457,9 +4457,9 @@ NULL 9223372036854775807 3
NULL -1 5 NULL -1 5
2005-06-27 20050627 12 2005-06-27 20050627 12
Warnings: Warnings:
Warning 1292 Incorrect datetime value: '-9223372036854775808' for column 'my_bigint' at row 2 Warning 1292 Incorrect datetime value: '-9223372036854775808' for column `test`.`t1_values`.`my_bigint` at row 2
Warning 1292 Incorrect datetime value: '9223372036854775807' for column 'my_bigint' at row 3 Warning 1292 Incorrect datetime value: '9223372036854775807' for column `test`.`t1_values`.`my_bigint` at row 3
Warning 1292 Incorrect datetime value: '-1' for column 'my_bigint' at row 5 Warning 1292 Incorrect datetime value: '-1' for column `test`.`t1_values`.`my_bigint` at row 5
SHOW CREATE VIEW v1; SHOW CREATE VIEW v1;
View Create View character_set_client collation_connection View Create View character_set_client collation_connection
v1 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v1` AS select cast(`t1_values`.`my_bigint` as date) AS `CAST(my_bigint AS DATE)`,`t1_values`.`my_bigint` AS `my_bigint`,`t1_values`.`id` AS `id` from `t1_values` latin1 latin1_swedish_ci v1 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v1` AS select cast(`t1_values`.`my_bigint` as date) AS `CAST(my_bigint AS DATE)`,`t1_values`.`my_bigint` AS `my_bigint`,`t1_values`.`id` AS `id` from `t1_values` latin1 latin1_swedish_ci
@ -4474,9 +4474,9 @@ NULL 9223372036854775807 3
NULL -1 5 NULL -1 5
2005-06-27 20050627 12 2005-06-27 20050627 12
Warnings: Warnings:
Warning 1292 Incorrect datetime value: '-9223372036854775808' for column 'my_bigint' at row 1 Warning 1292 Incorrect datetime value: '-9223372036854775808' for column `test`.`t1_values`.`my_bigint` at row 1
Warning 1292 Incorrect datetime value: '9223372036854775807' for column 'my_bigint' at row 1 Warning 1292 Incorrect datetime value: '9223372036854775807' for column `test`.`t1_values`.`my_bigint` at row 1
Warning 1292 Incorrect datetime value: '-1' for column 'my_bigint' at row 1 Warning 1292 Incorrect datetime value: '-1' for column `test`.`t1_values`.`my_bigint` at row 1
DROP VIEW v1; DROP VIEW v1;

View File

@ -359,9 +359,9 @@ drop TABLE if exists t7, t8;
CREATE TABLE t7 (f1 char(20),f2 char(25),f3 date,f4 int) ENGINE = InnoDB; CREATE TABLE t7 (f1 char(20),f2 char(25),f3 date,f4 int) ENGINE = InnoDB;
CREATE TABLE t8 (f1 char(20),f2 char(25),f3 date,f4 int) ENGINE = InnoDB; CREATE TABLE t8 (f1 char(20),f2 char(25),f3 date,f4 int) ENGINE = InnoDB;
LOAD DATA INFILE '<MYSQLTEST_VARDIR>/std_data/funcs_1/t7.txt' INTO TABLE t7; LOAD DATA INFILE '<MYSQLTEST_VARDIR>/std_data/funcs_1/t7.txt' INTO TABLE t7;
ERROR 22007: Incorrect date value: '' for column 'f3' at row 1 ERROR 22007: Incorrect date value: '' for column `test`.`t7`.`f3` at row 1
LOAD DATA INFILE '<MYSQLTEST_VARDIR>/std_data/funcs_1/t7.txt' INTO TABLE t8; LOAD DATA INFILE '<MYSQLTEST_VARDIR>/std_data/funcs_1/t7.txt' INTO TABLE t8;
ERROR 22007: Incorrect date value: '' for column 'f3' at row 1 ERROR 22007: Incorrect date value: '' for column `test`.`t8`.`f3` at row 1
drop TABLE if exists t9; drop TABLE if exists t9;
CREATE TABLE t9 (f1 int, f2 char(25), f3 int) ENGINE = InnoDB; CREATE TABLE t9 (f1 int, f2 char(25), f3 int) ENGINE = InnoDB;
LOAD DATA INFILE '<MYSQLTEST_VARDIR>/std_data/funcs_1/t9.txt' INTO TABLE t9; LOAD DATA INFILE '<MYSQLTEST_VARDIR>/std_data/funcs_1/t9.txt' INTO TABLE t9;

View File

@ -3716,8 +3716,8 @@ NULL NULL 1
-00:00:01 -1 5 -00:00:01 -1 5
00:17:58 1758 25 00:17:58 1758 25
Warnings: Warnings:
Warning 1292 Incorrect time value: '-1.7976931348623e308' for column 'my_double' at row 2 Warning 1292 Incorrect time value: '-1.7976931348623e308' for column `test`.`t1_values`.`my_double` at row 2
Warning 1292 Incorrect time value: '1.7976931348623e308' for column 'my_double' at row 3 Warning 1292 Incorrect time value: '1.7976931348623e308' for column `test`.`t1_values`.`my_double` at row 3
SHOW CREATE VIEW v1; SHOW CREATE VIEW v1;
View Create View character_set_client collation_connection View Create View character_set_client collation_connection
v1 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v1` AS select cast(`t1_values`.`my_double` as time) AS `CAST(my_double AS TIME)`,`t1_values`.`my_double` AS `my_double`,`t1_values`.`id` AS `id` from `t1_values` latin1 latin1_swedish_ci v1 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v1` AS select cast(`t1_values`.`my_double` as time) AS `CAST(my_double AS TIME)`,`t1_values`.`my_double` AS `my_double`,`t1_values`.`id` AS `id` from `t1_values` latin1 latin1_swedish_ci
@ -3732,8 +3732,8 @@ NULL NULL 1
-00:00:01 -1 5 -00:00:01 -1 5
00:17:58 1758 25 00:17:58 1758 25
Warnings: Warnings:
Warning 1292 Incorrect time value: '-1.7976931348623e308' for column 'my_double' at row 1 Warning 1292 Incorrect time value: '-1.7976931348623e308' for column `test`.`t1_values`.`my_double` at row 1
Warning 1292 Incorrect time value: '1.7976931348623e308' for column 'my_double' at row 1 Warning 1292 Incorrect time value: '1.7976931348623e308' for column `test`.`t1_values`.`my_double` at row 1
DROP VIEW v1; DROP VIEW v1;
@ -3750,8 +3750,8 @@ NULL NULL 1
-00:00:01 -1 5 -00:00:01 -1 5
00:17:58 1758 24 00:17:58 1758 24
Warnings: Warnings:
Warning 1292 Incorrect time value: '-9223372036854775808' for column 'my_bigint' at row 2 Warning 1292 Incorrect time value: '-9223372036854775808' for column `test`.`t1_values`.`my_bigint` at row 2
Warning 1292 Incorrect time value: '9223372036854775807' for column 'my_bigint' at row 3 Warning 1292 Incorrect time value: '9223372036854775807' for column `test`.`t1_values`.`my_bigint` at row 3
SHOW CREATE VIEW v1; SHOW CREATE VIEW v1;
View Create View character_set_client collation_connection View Create View character_set_client collation_connection
v1 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v1` AS select cast(`t1_values`.`my_bigint` as time) AS `CAST(my_bigint AS TIME)`,`t1_values`.`my_bigint` AS `my_bigint`,`t1_values`.`id` AS `id` from `t1_values` latin1 latin1_swedish_ci v1 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v1` AS select cast(`t1_values`.`my_bigint` as time) AS `CAST(my_bigint AS TIME)`,`t1_values`.`my_bigint` AS `my_bigint`,`t1_values`.`id` AS `id` from `t1_values` latin1 latin1_swedish_ci
@ -3766,8 +3766,8 @@ NULL NULL 1
-00:00:01 -1 5 -00:00:01 -1 5
00:17:58 1758 24 00:17:58 1758 24
Warnings: Warnings:
Warning 1292 Incorrect time value: '-9223372036854775808' for column 'my_bigint' at row 1 Warning 1292 Incorrect time value: '-9223372036854775808' for column `test`.`t1_values`.`my_bigint` at row 1
Warning 1292 Incorrect time value: '9223372036854775807' for column 'my_bigint' at row 1 Warning 1292 Incorrect time value: '9223372036854775807' for column `test`.`t1_values`.`my_bigint` at row 1
DROP VIEW v1; DROP VIEW v1;
@ -4062,10 +4062,10 @@ NULL 1.7976931348623e308 3
NULL -1 5 NULL -1 5
NULL 200506271758 19 NULL 200506271758 19
Warnings: Warnings:
Warning 1292 Incorrect datetime value: '-1.7976931348623e308' for column 'my_double' at row 2 Warning 1292 Incorrect datetime value: '-1.7976931348623e308' for column `test`.`t1_values`.`my_double` at row 2
Warning 1292 Incorrect datetime value: '1.7976931348623e308' for column 'my_double' at row 3 Warning 1292 Incorrect datetime value: '1.7976931348623e308' for column `test`.`t1_values`.`my_double` at row 3
Warning 1292 Incorrect datetime value: '-1' for column 'my_double' at row 5 Warning 1292 Incorrect datetime value: '-1' for column `test`.`t1_values`.`my_double` at row 5
Warning 1292 Incorrect datetime value: '200506271758' for column 'my_double' at row 6 Warning 1292 Incorrect datetime value: '200506271758' for column `test`.`t1_values`.`my_double` at row 6
SHOW CREATE VIEW v1; SHOW CREATE VIEW v1;
View Create View character_set_client collation_connection View Create View character_set_client collation_connection
v1 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v1` AS select cast(`t1_values`.`my_double` as datetime) AS `CAST(my_double AS DATETIME)`,`t1_values`.`my_double` AS `my_double`,`t1_values`.`id` AS `id` from `t1_values` latin1 latin1_swedish_ci v1 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v1` AS select cast(`t1_values`.`my_double` as datetime) AS `CAST(my_double AS DATETIME)`,`t1_values`.`my_double` AS `my_double`,`t1_values`.`id` AS `id` from `t1_values` latin1 latin1_swedish_ci
@ -4080,10 +4080,10 @@ NULL 1.7976931348623e308 3
NULL -1 5 NULL -1 5
NULL 200506271758 19 NULL 200506271758 19
Warnings: Warnings:
Warning 1292 Incorrect datetime value: '-1.7976931348623e308' for column 'my_double' at row 1 Warning 1292 Incorrect datetime value: '-1.7976931348623e308' for column `test`.`t1_values`.`my_double` at row 1
Warning 1292 Incorrect datetime value: '1.7976931348623e308' for column 'my_double' at row 1 Warning 1292 Incorrect datetime value: '1.7976931348623e308' for column `test`.`t1_values`.`my_double` at row 1
Warning 1292 Incorrect datetime value: '-1' for column 'my_double' at row 1 Warning 1292 Incorrect datetime value: '-1' for column `test`.`t1_values`.`my_double` at row 1
Warning 1292 Incorrect datetime value: '200506271758' for column 'my_double' at row 1 Warning 1292 Incorrect datetime value: '200506271758' for column `test`.`t1_values`.`my_double` at row 1
DROP VIEW v1; DROP VIEW v1;
@ -4100,10 +4100,10 @@ NULL 9223372036854775807 3
NULL -1 5 NULL -1 5
NULL 200506271758 18 NULL 200506271758 18
Warnings: Warnings:
Warning 1292 Incorrect datetime value: '-9223372036854775808' for column 'my_bigint' at row 2 Warning 1292 Incorrect datetime value: '-9223372036854775808' for column `test`.`t1_values`.`my_bigint` at row 2
Warning 1292 Incorrect datetime value: '9223372036854775807' for column 'my_bigint' at row 3 Warning 1292 Incorrect datetime value: '9223372036854775807' for column `test`.`t1_values`.`my_bigint` at row 3
Warning 1292 Incorrect datetime value: '-1' for column 'my_bigint' at row 5 Warning 1292 Incorrect datetime value: '-1' for column `test`.`t1_values`.`my_bigint` at row 5
Warning 1292 Incorrect datetime value: '200506271758' for column 'my_bigint' at row 6 Warning 1292 Incorrect datetime value: '200506271758' for column `test`.`t1_values`.`my_bigint` at row 6
SHOW CREATE VIEW v1; SHOW CREATE VIEW v1;
View Create View character_set_client collation_connection View Create View character_set_client collation_connection
v1 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v1` AS select cast(`t1_values`.`my_bigint` as datetime) AS `CAST(my_bigint AS DATETIME)`,`t1_values`.`my_bigint` AS `my_bigint`,`t1_values`.`id` AS `id` from `t1_values` latin1 latin1_swedish_ci v1 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v1` AS select cast(`t1_values`.`my_bigint` as datetime) AS `CAST(my_bigint AS DATETIME)`,`t1_values`.`my_bigint` AS `my_bigint`,`t1_values`.`id` AS `id` from `t1_values` latin1 latin1_swedish_ci
@ -4118,10 +4118,10 @@ NULL 9223372036854775807 3
NULL -1 5 NULL -1 5
NULL 200506271758 18 NULL 200506271758 18
Warnings: Warnings:
Warning 1292 Incorrect datetime value: '-9223372036854775808' for column 'my_bigint' at row 1 Warning 1292 Incorrect datetime value: '-9223372036854775808' for column `test`.`t1_values`.`my_bigint` at row 1
Warning 1292 Incorrect datetime value: '9223372036854775807' for column 'my_bigint' at row 1 Warning 1292 Incorrect datetime value: '9223372036854775807' for column `test`.`t1_values`.`my_bigint` at row 1
Warning 1292 Incorrect datetime value: '-1' for column 'my_bigint' at row 1 Warning 1292 Incorrect datetime value: '-1' for column `test`.`t1_values`.`my_bigint` at row 1
Warning 1292 Incorrect datetime value: '200506271758' for column 'my_bigint' at row 1 Warning 1292 Incorrect datetime value: '200506271758' for column `test`.`t1_values`.`my_bigint` at row 1
DROP VIEW v1; DROP VIEW v1;
@ -4422,9 +4422,9 @@ NULL 1.7976931348623e308 3
NULL -1 5 NULL -1 5
2005-06-27 20050627 13 2005-06-27 20050627 13
Warnings: Warnings:
Warning 1292 Incorrect datetime value: '-1.7976931348623e308' for column 'my_double' at row 2 Warning 1292 Incorrect datetime value: '-1.7976931348623e308' for column `test`.`t1_values`.`my_double` at row 2
Warning 1292 Incorrect datetime value: '1.7976931348623e308' for column 'my_double' at row 3 Warning 1292 Incorrect datetime value: '1.7976931348623e308' for column `test`.`t1_values`.`my_double` at row 3
Warning 1292 Incorrect datetime value: '-1' for column 'my_double' at row 5 Warning 1292 Incorrect datetime value: '-1' for column `test`.`t1_values`.`my_double` at row 5
SHOW CREATE VIEW v1; SHOW CREATE VIEW v1;
View Create View character_set_client collation_connection View Create View character_set_client collation_connection
v1 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v1` AS select cast(`t1_values`.`my_double` as date) AS `CAST(my_double AS DATE)`,`t1_values`.`my_double` AS `my_double`,`t1_values`.`id` AS `id` from `t1_values` latin1 latin1_swedish_ci v1 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v1` AS select cast(`t1_values`.`my_double` as date) AS `CAST(my_double AS DATE)`,`t1_values`.`my_double` AS `my_double`,`t1_values`.`id` AS `id` from `t1_values` latin1 latin1_swedish_ci
@ -4439,9 +4439,9 @@ NULL 1.7976931348623e308 3
NULL -1 5 NULL -1 5
2005-06-27 20050627 13 2005-06-27 20050627 13
Warnings: Warnings:
Warning 1292 Incorrect datetime value: '-1.7976931348623e308' for column 'my_double' at row 1 Warning 1292 Incorrect datetime value: '-1.7976931348623e308' for column `test`.`t1_values`.`my_double` at row 1
Warning 1292 Incorrect datetime value: '1.7976931348623e308' for column 'my_double' at row 1 Warning 1292 Incorrect datetime value: '1.7976931348623e308' for column `test`.`t1_values`.`my_double` at row 1
Warning 1292 Incorrect datetime value: '-1' for column 'my_double' at row 1 Warning 1292 Incorrect datetime value: '-1' for column `test`.`t1_values`.`my_double` at row 1
DROP VIEW v1; DROP VIEW v1;
@ -4458,9 +4458,9 @@ NULL 9223372036854775807 3
NULL -1 5 NULL -1 5
2005-06-27 20050627 12 2005-06-27 20050627 12
Warnings: Warnings:
Warning 1292 Incorrect datetime value: '-9223372036854775808' for column 'my_bigint' at row 2 Warning 1292 Incorrect datetime value: '-9223372036854775808' for column `test`.`t1_values`.`my_bigint` at row 2
Warning 1292 Incorrect datetime value: '9223372036854775807' for column 'my_bigint' at row 3 Warning 1292 Incorrect datetime value: '9223372036854775807' for column `test`.`t1_values`.`my_bigint` at row 3
Warning 1292 Incorrect datetime value: '-1' for column 'my_bigint' at row 5 Warning 1292 Incorrect datetime value: '-1' for column `test`.`t1_values`.`my_bigint` at row 5
SHOW CREATE VIEW v1; SHOW CREATE VIEW v1;
View Create View character_set_client collation_connection View Create View character_set_client collation_connection
v1 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v1` AS select cast(`t1_values`.`my_bigint` as date) AS `CAST(my_bigint AS DATE)`,`t1_values`.`my_bigint` AS `my_bigint`,`t1_values`.`id` AS `id` from `t1_values` latin1 latin1_swedish_ci v1 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v1` AS select cast(`t1_values`.`my_bigint` as date) AS `CAST(my_bigint AS DATE)`,`t1_values`.`my_bigint` AS `my_bigint`,`t1_values`.`id` AS `id` from `t1_values` latin1 latin1_swedish_ci
@ -4475,9 +4475,9 @@ NULL 9223372036854775807 3
NULL -1 5 NULL -1 5
2005-06-27 20050627 12 2005-06-27 20050627 12
Warnings: Warnings:
Warning 1292 Incorrect datetime value: '-9223372036854775808' for column 'my_bigint' at row 1 Warning 1292 Incorrect datetime value: '-9223372036854775808' for column `test`.`t1_values`.`my_bigint` at row 1
Warning 1292 Incorrect datetime value: '9223372036854775807' for column 'my_bigint' at row 1 Warning 1292 Incorrect datetime value: '9223372036854775807' for column `test`.`t1_values`.`my_bigint` at row 1
Warning 1292 Incorrect datetime value: '-1' for column 'my_bigint' at row 1 Warning 1292 Incorrect datetime value: '-1' for column `test`.`t1_values`.`my_bigint` at row 1
DROP VIEW v1; DROP VIEW v1;

View File

@ -3716,8 +3716,8 @@ NULL NULL 1
-00:00:01 -1 5 -00:00:01 -1 5
00:17:58 1758 25 00:17:58 1758 25
Warnings: Warnings:
Warning 1292 Incorrect time value: '-1.7976931348623e308' for column 'my_double' at row 2 Warning 1292 Incorrect time value: '-1.7976931348623e308' for column `test`.`t1_values`.`my_double` at row 2
Warning 1292 Incorrect time value: '1.7976931348623e308' for column 'my_double' at row 3 Warning 1292 Incorrect time value: '1.7976931348623e308' for column `test`.`t1_values`.`my_double` at row 3
SHOW CREATE VIEW v1; SHOW CREATE VIEW v1;
View Create View character_set_client collation_connection View Create View character_set_client collation_connection
v1 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v1` AS select cast(`t1_values`.`my_double` as time) AS `CAST(my_double AS TIME)`,`t1_values`.`my_double` AS `my_double`,`t1_values`.`id` AS `id` from `t1_values` latin1 latin1_swedish_ci v1 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v1` AS select cast(`t1_values`.`my_double` as time) AS `CAST(my_double AS TIME)`,`t1_values`.`my_double` AS `my_double`,`t1_values`.`id` AS `id` from `t1_values` latin1 latin1_swedish_ci
@ -3732,8 +3732,8 @@ NULL NULL 1
-00:00:01 -1 5 -00:00:01 -1 5
00:17:58 1758 25 00:17:58 1758 25
Warnings: Warnings:
Warning 1292 Incorrect time value: '-1.7976931348623e308' for column 'my_double' at row 1 Warning 1292 Incorrect time value: '-1.7976931348623e308' for column `test`.`t1_values`.`my_double` at row 1
Warning 1292 Incorrect time value: '1.7976931348623e308' for column 'my_double' at row 1 Warning 1292 Incorrect time value: '1.7976931348623e308' for column `test`.`t1_values`.`my_double` at row 1
DROP VIEW v1; DROP VIEW v1;
@ -3750,8 +3750,8 @@ NULL NULL 1
-00:00:01 -1 5 -00:00:01 -1 5
00:17:58 1758 24 00:17:58 1758 24
Warnings: Warnings:
Warning 1292 Incorrect time value: '-9223372036854775808' for column 'my_bigint' at row 2 Warning 1292 Incorrect time value: '-9223372036854775808' for column `test`.`t1_values`.`my_bigint` at row 2
Warning 1292 Incorrect time value: '9223372036854775807' for column 'my_bigint' at row 3 Warning 1292 Incorrect time value: '9223372036854775807' for column `test`.`t1_values`.`my_bigint` at row 3
SHOW CREATE VIEW v1; SHOW CREATE VIEW v1;
View Create View character_set_client collation_connection View Create View character_set_client collation_connection
v1 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v1` AS select cast(`t1_values`.`my_bigint` as time) AS `CAST(my_bigint AS TIME)`,`t1_values`.`my_bigint` AS `my_bigint`,`t1_values`.`id` AS `id` from `t1_values` latin1 latin1_swedish_ci v1 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v1` AS select cast(`t1_values`.`my_bigint` as time) AS `CAST(my_bigint AS TIME)`,`t1_values`.`my_bigint` AS `my_bigint`,`t1_values`.`id` AS `id` from `t1_values` latin1 latin1_swedish_ci
@ -3766,8 +3766,8 @@ NULL NULL 1
-00:00:01 -1 5 -00:00:01 -1 5
00:17:58 1758 24 00:17:58 1758 24
Warnings: Warnings:
Warning 1292 Incorrect time value: '-9223372036854775808' for column 'my_bigint' at row 1 Warning 1292 Incorrect time value: '-9223372036854775808' for column `test`.`t1_values`.`my_bigint` at row 1
Warning 1292 Incorrect time value: '9223372036854775807' for column 'my_bigint' at row 1 Warning 1292 Incorrect time value: '9223372036854775807' for column `test`.`t1_values`.`my_bigint` at row 1
DROP VIEW v1; DROP VIEW v1;
@ -4062,10 +4062,10 @@ NULL 1.7976931348623e308 3
NULL -1 5 NULL -1 5
NULL 200506271758 19 NULL 200506271758 19
Warnings: Warnings:
Warning 1292 Incorrect datetime value: '-1.7976931348623e308' for column 'my_double' at row 2 Warning 1292 Incorrect datetime value: '-1.7976931348623e308' for column `test`.`t1_values`.`my_double` at row 2
Warning 1292 Incorrect datetime value: '1.7976931348623e308' for column 'my_double' at row 3 Warning 1292 Incorrect datetime value: '1.7976931348623e308' for column `test`.`t1_values`.`my_double` at row 3
Warning 1292 Incorrect datetime value: '-1' for column 'my_double' at row 5 Warning 1292 Incorrect datetime value: '-1' for column `test`.`t1_values`.`my_double` at row 5
Warning 1292 Incorrect datetime value: '200506271758' for column 'my_double' at row 6 Warning 1292 Incorrect datetime value: '200506271758' for column `test`.`t1_values`.`my_double` at row 6
SHOW CREATE VIEW v1; SHOW CREATE VIEW v1;
View Create View character_set_client collation_connection View Create View character_set_client collation_connection
v1 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v1` AS select cast(`t1_values`.`my_double` as datetime) AS `CAST(my_double AS DATETIME)`,`t1_values`.`my_double` AS `my_double`,`t1_values`.`id` AS `id` from `t1_values` latin1 latin1_swedish_ci v1 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v1` AS select cast(`t1_values`.`my_double` as datetime) AS `CAST(my_double AS DATETIME)`,`t1_values`.`my_double` AS `my_double`,`t1_values`.`id` AS `id` from `t1_values` latin1 latin1_swedish_ci
@ -4080,10 +4080,10 @@ NULL 1.7976931348623e308 3
NULL -1 5 NULL -1 5
NULL 200506271758 19 NULL 200506271758 19
Warnings: Warnings:
Warning 1292 Incorrect datetime value: '-1.7976931348623e308' for column 'my_double' at row 1 Warning 1292 Incorrect datetime value: '-1.7976931348623e308' for column `test`.`t1_values`.`my_double` at row 1
Warning 1292 Incorrect datetime value: '1.7976931348623e308' for column 'my_double' at row 1 Warning 1292 Incorrect datetime value: '1.7976931348623e308' for column `test`.`t1_values`.`my_double` at row 1
Warning 1292 Incorrect datetime value: '-1' for column 'my_double' at row 1 Warning 1292 Incorrect datetime value: '-1' for column `test`.`t1_values`.`my_double` at row 1
Warning 1292 Incorrect datetime value: '200506271758' for column 'my_double' at row 1 Warning 1292 Incorrect datetime value: '200506271758' for column `test`.`t1_values`.`my_double` at row 1
DROP VIEW v1; DROP VIEW v1;
@ -4100,10 +4100,10 @@ NULL 9223372036854775807 3
NULL -1 5 NULL -1 5
NULL 200506271758 18 NULL 200506271758 18
Warnings: Warnings:
Warning 1292 Incorrect datetime value: '-9223372036854775808' for column 'my_bigint' at row 2 Warning 1292 Incorrect datetime value: '-9223372036854775808' for column `test`.`t1_values`.`my_bigint` at row 2
Warning 1292 Incorrect datetime value: '9223372036854775807' for column 'my_bigint' at row 3 Warning 1292 Incorrect datetime value: '9223372036854775807' for column `test`.`t1_values`.`my_bigint` at row 3
Warning 1292 Incorrect datetime value: '-1' for column 'my_bigint' at row 5 Warning 1292 Incorrect datetime value: '-1' for column `test`.`t1_values`.`my_bigint` at row 5
Warning 1292 Incorrect datetime value: '200506271758' for column 'my_bigint' at row 6 Warning 1292 Incorrect datetime value: '200506271758' for column `test`.`t1_values`.`my_bigint` at row 6
SHOW CREATE VIEW v1; SHOW CREATE VIEW v1;
View Create View character_set_client collation_connection View Create View character_set_client collation_connection
v1 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v1` AS select cast(`t1_values`.`my_bigint` as datetime) AS `CAST(my_bigint AS DATETIME)`,`t1_values`.`my_bigint` AS `my_bigint`,`t1_values`.`id` AS `id` from `t1_values` latin1 latin1_swedish_ci v1 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v1` AS select cast(`t1_values`.`my_bigint` as datetime) AS `CAST(my_bigint AS DATETIME)`,`t1_values`.`my_bigint` AS `my_bigint`,`t1_values`.`id` AS `id` from `t1_values` latin1 latin1_swedish_ci
@ -4118,10 +4118,10 @@ NULL 9223372036854775807 3
NULL -1 5 NULL -1 5
NULL 200506271758 18 NULL 200506271758 18
Warnings: Warnings:
Warning 1292 Incorrect datetime value: '-9223372036854775808' for column 'my_bigint' at row 1 Warning 1292 Incorrect datetime value: '-9223372036854775808' for column `test`.`t1_values`.`my_bigint` at row 1
Warning 1292 Incorrect datetime value: '9223372036854775807' for column 'my_bigint' at row 1 Warning 1292 Incorrect datetime value: '9223372036854775807' for column `test`.`t1_values`.`my_bigint` at row 1
Warning 1292 Incorrect datetime value: '-1' for column 'my_bigint' at row 1 Warning 1292 Incorrect datetime value: '-1' for column `test`.`t1_values`.`my_bigint` at row 1
Warning 1292 Incorrect datetime value: '200506271758' for column 'my_bigint' at row 1 Warning 1292 Incorrect datetime value: '200506271758' for column `test`.`t1_values`.`my_bigint` at row 1
DROP VIEW v1; DROP VIEW v1;
@ -4422,9 +4422,9 @@ NULL 1.7976931348623e308 3
NULL -1 5 NULL -1 5
2005-06-27 20050627 13 2005-06-27 20050627 13
Warnings: Warnings:
Warning 1292 Incorrect datetime value: '-1.7976931348623e308' for column 'my_double' at row 2 Warning 1292 Incorrect datetime value: '-1.7976931348623e308' for column `test`.`t1_values`.`my_double` at row 2
Warning 1292 Incorrect datetime value: '1.7976931348623e308' for column 'my_double' at row 3 Warning 1292 Incorrect datetime value: '1.7976931348623e308' for column `test`.`t1_values`.`my_double` at row 3
Warning 1292 Incorrect datetime value: '-1' for column 'my_double' at row 5 Warning 1292 Incorrect datetime value: '-1' for column `test`.`t1_values`.`my_double` at row 5
SHOW CREATE VIEW v1; SHOW CREATE VIEW v1;
View Create View character_set_client collation_connection View Create View character_set_client collation_connection
v1 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v1` AS select cast(`t1_values`.`my_double` as date) AS `CAST(my_double AS DATE)`,`t1_values`.`my_double` AS `my_double`,`t1_values`.`id` AS `id` from `t1_values` latin1 latin1_swedish_ci v1 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v1` AS select cast(`t1_values`.`my_double` as date) AS `CAST(my_double AS DATE)`,`t1_values`.`my_double` AS `my_double`,`t1_values`.`id` AS `id` from `t1_values` latin1 latin1_swedish_ci
@ -4439,9 +4439,9 @@ NULL 1.7976931348623e308 3
NULL -1 5 NULL -1 5
2005-06-27 20050627 13 2005-06-27 20050627 13
Warnings: Warnings:
Warning 1292 Incorrect datetime value: '-1.7976931348623e308' for column 'my_double' at row 1 Warning 1292 Incorrect datetime value: '-1.7976931348623e308' for column `test`.`t1_values`.`my_double` at row 1
Warning 1292 Incorrect datetime value: '1.7976931348623e308' for column 'my_double' at row 1 Warning 1292 Incorrect datetime value: '1.7976931348623e308' for column `test`.`t1_values`.`my_double` at row 1
Warning 1292 Incorrect datetime value: '-1' for column 'my_double' at row 1 Warning 1292 Incorrect datetime value: '-1' for column `test`.`t1_values`.`my_double` at row 1
DROP VIEW v1; DROP VIEW v1;
@ -4458,9 +4458,9 @@ NULL 9223372036854775807 3
NULL -1 5 NULL -1 5
2005-06-27 20050627 12 2005-06-27 20050627 12
Warnings: Warnings:
Warning 1292 Incorrect datetime value: '-9223372036854775808' for column 'my_bigint' at row 2 Warning 1292 Incorrect datetime value: '-9223372036854775808' for column `test`.`t1_values`.`my_bigint` at row 2
Warning 1292 Incorrect datetime value: '9223372036854775807' for column 'my_bigint' at row 3 Warning 1292 Incorrect datetime value: '9223372036854775807' for column `test`.`t1_values`.`my_bigint` at row 3
Warning 1292 Incorrect datetime value: '-1' for column 'my_bigint' at row 5 Warning 1292 Incorrect datetime value: '-1' for column `test`.`t1_values`.`my_bigint` at row 5
SHOW CREATE VIEW v1; SHOW CREATE VIEW v1;
View Create View character_set_client collation_connection View Create View character_set_client collation_connection
v1 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v1` AS select cast(`t1_values`.`my_bigint` as date) AS `CAST(my_bigint AS DATE)`,`t1_values`.`my_bigint` AS `my_bigint`,`t1_values`.`id` AS `id` from `t1_values` latin1 latin1_swedish_ci v1 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v1` AS select cast(`t1_values`.`my_bigint` as date) AS `CAST(my_bigint AS DATE)`,`t1_values`.`my_bigint` AS `my_bigint`,`t1_values`.`id` AS `id` from `t1_values` latin1 latin1_swedish_ci
@ -4475,9 +4475,9 @@ NULL 9223372036854775807 3
NULL -1 5 NULL -1 5
2005-06-27 20050627 12 2005-06-27 20050627 12
Warnings: Warnings:
Warning 1292 Incorrect datetime value: '-9223372036854775808' for column 'my_bigint' at row 1 Warning 1292 Incorrect datetime value: '-9223372036854775808' for column `test`.`t1_values`.`my_bigint` at row 1
Warning 1292 Incorrect datetime value: '9223372036854775807' for column 'my_bigint' at row 1 Warning 1292 Incorrect datetime value: '9223372036854775807' for column `test`.`t1_values`.`my_bigint` at row 1
Warning 1292 Incorrect datetime value: '-1' for column 'my_bigint' at row 1 Warning 1292 Incorrect datetime value: '-1' for column `test`.`t1_values`.`my_bigint` at row 1
DROP VIEW v1; DROP VIEW v1;

View File

@ -13826,7 +13826,7 @@ CALL sp1();
@xx @xx
0 0
Warnings: Warnings:
Warning 1366 Incorrect integer value: 'asd' for column 'xx' at row 1 Warning 1366 Incorrect integer value: 'asd' for column ``.``.`xx` at row 1
DROP PROCEDURE IF EXISTS sp1; DROP PROCEDURE IF EXISTS sp1;
CREATE PROCEDURE sp1() CREATE PROCEDURE sp1()
BEGIN BEGIN
@ -13875,7 +13875,7 @@ CALL sp1();
xx xx
0 0
Warnings: Warnings:
Warning 1366 Incorrect double value: 'asd' for column 'xx' at row 1 Warning 1366 Incorrect double value: 'asd' for column ``.``.`xx` at row 1
DROP PROCEDURE IF EXISTS sp1; DROP PROCEDURE IF EXISTS sp1;
CREATE PROCEDURE sp1() CREATE PROCEDURE sp1()
BEGIN BEGIN
@ -13947,7 +13947,7 @@ CALL sp1();
xx xx
0 0
Warnings: Warnings:
Warning 1366 Incorrect integer value: 'asd' for column 'xx' at row 1 Warning 1366 Incorrect integer value: 'asd' for column ``.``.`xx` at row 1
DROP PROCEDURE IF EXISTS sp1; DROP PROCEDURE IF EXISTS sp1;
CREATE PROCEDURE sp1() CREATE PROCEDURE sp1()
BEGIN BEGIN

View File

@ -137,7 +137,7 @@ key (d)
insert into t(a) values ((select d from s for update)); insert into t(a) values ((select d from s for update));
insert into s(c) values (''); insert into s(c) values ('');
Warnings: Warnings:
Warning 1366 Incorrect integer value: '' for column 'c' at row 1 Warning 1366 Incorrect integer value: '' for column `test`.`s`.`c` at row 1
SET sql_mode = default; SET sql_mode = default;
drop table if exists t,s; drop table if exists t,s;
# #

View File

@ -42,7 +42,7 @@ drop table t1;
# #
CREATE TABLE t1 (a INT) ENGINE=InnoDB; CREATE TABLE t1 (a INT) ENGINE=InnoDB;
ALTER TABLE t1 ADD COLUMN b LINESTRING DEFAULT POINT(1,1); ALTER TABLE t1 ADD COLUMN b LINESTRING DEFAULT POINT(1,1);
ERROR 22007: Incorrect LINESTRING value: 'POINT' for column 'b' at row 1 ERROR 22007: Incorrect LINESTRING value: 'POINT' for column ``.``.`b` at row 1
DESCRIBE t1; DESCRIBE t1;
Field Type Null Key Default Extra Field Type Null Key Default Extra
a int(11) YES NULL a int(11) YES NULL

View File

@ -28,7 +28,7 @@ charset=utf8 engine=innodb;
set statement sql_mode = '' for set statement sql_mode = '' for
replace into t1 set f1=0xa3; replace into t1 set f1=0xa3;
Warnings: Warnings:
Warning 1366 Incorrect string value: '\xA3' for column 'f1' at row 1 Warning 1366 Incorrect string value: '\xA3' for column `test`.`t1`.`f1` at row 1
select f1 from t1; select f1 from t1;
f1 f1
? ?
@ -37,7 +37,7 @@ update t1 set f3=repeat(0xb1,8103);
update t1 set f1=0x4a; update t1 set f1=0x4a;
update ignore t1 set f1=0x82; update ignore t1 set f1=0x82;
Warnings: Warnings:
Warning 1366 Incorrect string value: '\x82' for column 'f1' at row 1 Warning 1366 Incorrect string value: '\x82' for column `test`.`t1`.`f1` at row 1
select f1 from t1; select f1 from t1;
f1 f1
? ?

View File

@ -18,10 +18,10 @@ INSERT INTO t SET t=REPEAT(_utf8mb3 0xe794b2e9aaa8e69687, 15);
# The data below is not 3-byte UTF-8, but 4-byte chars. # The data below is not 3-byte UTF-8, but 4-byte chars.
INSERT IGNORE INTO t SET t=REPEAT(_utf8mb4 0xf09f9695, 84); INSERT IGNORE INTO t SET t=REPEAT(_utf8mb4 0xf09f9695, 84);
Warnings: Warnings:
Warning 1366 Incorrect string value: '\xF0\x9F\x96\x95\xF0\x9F...' for column 't' at row 1 Warning 1366 Incorrect string value: '\xF0\x9F\x96\x95\xF0\x9F...' for column `test`.`t`.`t` at row 1
INSERT IGNORE INTO t SET t=REPEAT(_utf8mb4 0xf09f9696, 85); INSERT IGNORE INTO t SET t=REPEAT(_utf8mb4 0xf09f9696, 85);
Warnings: Warnings:
Warning 1366 Incorrect string value: '\xF0\x9F\x96\x96\xF0\x9F...' for column 't' at row 1 Warning 1366 Incorrect string value: '\xF0\x9F\x96\x96\xF0\x9F...' for column `test`.`t`.`t` at row 1
SELECT COUNT(*) FROM t WHERE MATCH t AGAINST SELECT COUNT(*) FROM t WHERE MATCH t AGAINST
(REPEAT(CONCAT(REPEAT(_utf8mb3 0xE0B987, 4), REPEAT(_utf8mb3 0xE0B989, 5)), 5)); (REPEAT(CONCAT(REPEAT(_utf8mb3 0xE0B987, 4), REPEAT(_utf8mb3 0xE0B989, 5)), 5));
COUNT(*) COUNT(*)

View File

@ -1038,9 +1038,9 @@ SET @a=0x00000000030000000000000000000000000000000000144000000000000014400000000
SET @a=ST_POLYFROMWKB(@a); SET @a=ST_POLYFROMWKB(@a);
create table t1(a polygon NOT NULL)engine=InnoDB; create table t1(a polygon NOT NULL)engine=InnoDB;
insert into t1 values (ST_geomfromtext("point(0 1)")); insert into t1 values (ST_geomfromtext("point(0 1)"));
ERROR 22007: Incorrect POLYGON value: 'POINT' for column 'a' at row 1 ERROR 22007: Incorrect POLYGON value: 'POINT' for column `test`.`t1`.`a` at row 1
insert into t1 values (ST_geomfromtext("point(1 0)")); insert into t1 values (ST_geomfromtext("point(1 0)"));
ERROR 22007: Incorrect POLYGON value: 'POINT' for column 'a' at row 1 ERROR 22007: Incorrect POLYGON value: 'POINT' for column `test`.`t1`.`a` at row 1
select * from (select polygon(t1.a) as p from t1 order by t1.a) d; select * from (select polygon(t1.a) as p from t1 order by t1.a) d;
p p
drop table t1; drop table t1;

View File

@ -1034,9 +1034,9 @@ SET @a=0x00000000030000000000000000000000000000000000144000000000000014400000000
SET @a=ST_POLYFROMWKB(@a); SET @a=ST_POLYFROMWKB(@a);
create table t1(a polygon NOT NULL)engine=innodb; create table t1(a polygon NOT NULL)engine=innodb;
insert into t1 values (ST_geomfromtext("point(0 1)")); insert into t1 values (ST_geomfromtext("point(0 1)"));
ERROR 22007: Incorrect POLYGON value: 'POINT' for column 'a' at row 1 ERROR 22007: Incorrect POLYGON value: 'POINT' for column `test`.`t1`.`a` at row 1
insert into t1 values (ST_geomfromtext("point(1 0)")); insert into t1 values (ST_geomfromtext("point(1 0)"));
ERROR 22007: Incorrect POLYGON value: 'POINT' for column 'a' at row 1 ERROR 22007: Incorrect POLYGON value: 'POINT' for column `test`.`t1`.`a` at row 1
select * from (select polygon(t1.a) as p from t1 order by t1.a) d; select * from (select polygon(t1.a) as p from t1 order by t1.a) d;
p p
drop table t1; drop table t1;

View File

@ -851,7 +851,7 @@ DROP TABLE t1;
create table t1 (a int,b char(5),primary key (a), key (b(1))); create table t1 (a int,b char(5),primary key (a), key (b(1)));
insert ignore into t1 values ('a','b'); insert ignore into t1 values ('a','b');
Warnings: Warnings:
Warning 1366 Incorrect integer value: 'a' for column 'a' at row 1 Warning 1366 Incorrect integer value: 'a' for column `test`.`t1`.`a` at row 1
select 1 from t1 where a and b >= 'aa'; select 1 from t1 where a and b >= 'aa';
1 1
drop table t1; drop table t1;

View File

@ -30,7 +30,7 @@ drop procedure test_error;
SET SQL_MODE = STRICT_ALL_TABLES; SET SQL_MODE = STRICT_ALL_TABLES;
create table t1(id int); create table t1(id int);
insert into t1 values ('aa'); insert into t1 values ('aa');
ERROR 22007: Incorrect integer value: 'aa' for column 'id' at row 1 ERROR 22007: Incorrect integer value: 'aa' for column `test`.`t1`.`id` at row 1
SET SQL_MODE = ''; SET SQL_MODE = '';
drop table t1; drop table t1;
SELECT TABLE_NAME FROM information_schema.TABLES WHERE TABLE_SCHEMA = 'not_exists' AND TABLE_NAME = 'not_exists'; SELECT TABLE_NAME FROM information_schema.TABLES WHERE TABLE_SCHEMA = 'not_exists' AND TABLE_NAME = 'not_exists';
@ -53,5 +53,5 @@ TIME HOSTNAME ERROR 1146: Table 'test.temptab' doesn't exist : SELECT `c` FROM `
TIME HOSTNAME ERROR 1000: new message : RESIGNAL SQLSTATE '40000' SET TIME HOSTNAME ERROR 1000: new message : RESIGNAL SQLSTATE '40000' SET
MYSQL_ERRNO = 1000, MYSQL_ERRNO = 1000,
MESSAGE_TEXT = 'new message' MESSAGE_TEXT = 'new message'
TIME HOSTNAME ERROR 1366: Incorrect integer value: 'aa' for column 'id' at row 1 : insert into t1 values ('aa') TIME HOSTNAME ERROR 1366: Incorrect integer value: 'aa' for column `test`.`t1`.`id` at row 1 : insert into t1 values ('aa')
TIME HOSTNAME ERROR 1146: Table 'test.non_exists' doesn't exist : INSERT INTO test.non_exists VALUES (0,0,0) /* e1 */ TIME HOSTNAME ERROR 1146: Table 'test.non_exists' doesn't exist : INSERT INTO test.non_exists VALUES (0,0,0) /* e1 */

View File

@ -58,7 +58,7 @@ SET @@session.time_zone='UTC'/*!*/;
INSERT INTO visits (myid, user_id, src, ip, cc, org, ref, time, host, entry, visit_exit, visit_start) INSERT INTO visits (myid, user_id, src, ip, cc, org, ref, time, host, entry, visit_exit, visit_start)
VALUES ('3m3l4rhs6do0sf5p1i9lr94g928a272v', '', '', INET_ATON('71.118.124.98'), '', '', 'http://dev.mysql.com/downloads/connector/j/3.0.html', NULL, 'dev.mysql.com', '/get/Downloads/Connector-J/mysql-connector-java-3.0.17-ga.zip/from/pick', '/get/Downloads/Connector-J/mysql-connector-java-3.0.17-ga.zip/from/pick', NOW())/*!*/; VALUES ('3m3l4rhs6do0sf5p1i9lr94g928a272v', '', '', INET_ATON('71.118.124.98'), '', '', 'http://dev.mysql.com/downloads/connector/j/3.0.html', NULL, 'dev.mysql.com', '/get/Downloads/Connector-J/mysql-connector-java-3.0.17-ga.zip/from/pick', '/get/Downloads/Connector-J/mysql-connector-java-3.0.17-ga.zip/from/pick', NOW())/*!*/;
Warnings: Warnings:
Warning 1366 Incorrect integer value: '' for column 'user_id' at row 1 Warning 1366 Incorrect integer value: '' for column `track`.`visits`.`user_id` at row 1
SELECT * FROM visits; SELECT * FROM visits;
visits_id myid src ip cc org ref time host entry visit_exit user_id visit_start visits_id myid src ip cc org ref time host entry visit_exit user_id visit_start
21231039 3m3l4rhs6do0sf5p1i9lr94g928a272v 1198947426 http://dev.mysql.com/downloads/connector/j/3.0.html 2007-09-18 03:59:02 dev.mysql.com /get/Downloads/Connector-J/mysql-connector-java-3.0.17-ga.zip/from/pick /get/Downloads/Connector-J/mysql-connector-java-3.0.17-ga.zip/from/pick 0 2007-09-18 03:59:02 21231039 3m3l4rhs6do0sf5p1i9lr94g928a272v 1198947426 http://dev.mysql.com/downloads/connector/j/3.0.html 2007-09-18 03:59:02 dev.mysql.com /get/Downloads/Connector-J/mysql-connector-java-3.0.17-ga.zip/from/pick /get/Downloads/Connector-J/mysql-connector-java-3.0.17-ga.zip/from/pick 0 2007-09-18 03:59:02

View File

@ -194,7 +194,7 @@ INSERT into t31 set f1=1, f2=1, f3=1, f4='first';
insert ignore into t31 set f1=1, f2=1, f3=2, f4='second', insert ignore into t31 set f1=1, f2=1, f3=2, f4='second',
f9=2.2, f10='seven samurai', f28=222.222, f35='222'; f9=2.2, f10='seven samurai', f28=222.222, f35='222';
Warnings: Warnings:
Warning 1366 Incorrect integer value: 'seven samurai' for column 'f10' at row 1 Warning 1366 Incorrect integer value: 'seven samurai' for column `test`.`t31`.`f10` at row 1
insert ignore into t31 values (1, 1, 3, 'third', insert ignore into t31 values (1, 1, 3, 'third',
/* f5 BIGINT, */ 333333333333333333333333, /* f5 BIGINT, */ 333333333333333333333333,
/* f6 BLOB, */ '3333333333333333333333', /* f6 BLOB, */ '3333333333333333333333',

View File

@ -194,7 +194,7 @@ INSERT into t31 set f1=1, f2=1, f3=1, f4='first';
insert ignore into t31 set f1=1, f2=1, f3=2, f4='second', insert ignore into t31 set f1=1, f2=1, f3=2, f4='second',
f9=2.2, f10='seven samurai', f28=222.222, f35='222'; f9=2.2, f10='seven samurai', f28=222.222, f35='222';
Warnings: Warnings:
Warning 1366 Incorrect integer value: 'seven samurai' for column 'f10' at row 1 Warning 1366 Incorrect integer value: 'seven samurai' for column `test`.`t31`.`f10` at row 1
insert ignore into t31 values (1, 1, 3, 'third', insert ignore into t31 values (1, 1, 3, 'third',
/* f5 BIGINT, */ 333333333333333333333333, /* f5 BIGINT, */ 333333333333333333333333,
/* f6 BLOB, */ '3333333333333333333333', /* f6 BLOB, */ '3333333333333333333333',

View File

@ -79,10 +79,10 @@ load data infile '../../std_data/loaddata3.dat' into table t1 fields terminated
Warnings: Warnings:
Note 1265 Data truncated for column 'a' at row 1 Note 1265 Data truncated for column 'a' at row 1
Note 1265 Data truncated for column 'a' at row 2 Note 1265 Data truncated for column 'a' at row 2
Warning 1366 Incorrect integer value: 'error ' for column 'a' at row 3 Warning 1366 Incorrect integer value: 'error ' for column `test`.`t1`.`a` at row 3
Warning 1262 Row 3 was truncated; it contained more data than there were input columns Warning 1262 Row 3 was truncated; it contained more data than there were input columns
Note 1265 Data truncated for column 'a' at row 4 Note 1265 Data truncated for column 'a' at row 4
Warning 1366 Incorrect integer value: 'wrong end ' for column 'a' at row 5 Warning 1366 Incorrect integer value: 'wrong end ' for column `test`.`t1`.`a` at row 5
Warning 1262 Row 5 was truncated; it contained more data than there were input columns Warning 1262 Row 5 was truncated; it contained more data than there were input columns
connection slave; connection slave;
connection slave; connection slave;
@ -101,7 +101,7 @@ Note 1265 Data truncated for column 'a' at row 1
Note 1265 Data truncated for column 'a' at row 2 Note 1265 Data truncated for column 'a' at row 2
Note 1265 Data truncated for column 'a' at row 3 Note 1265 Data truncated for column 'a' at row 3
Warning 1366 Incorrect integer value: ' Warning 1366 Incorrect integer value: '
' for column 'a' at row 4 ' for column `test`.`t1`.`a` at row 4
Warning 1261 Row 4 doesn't contain data for all columns Warning 1261 Row 4 doesn't contain data for all columns
connection slave; connection slave;
connection slave; connection slave;

View File

@ -2092,7 +2092,7 @@ bool Field_num::get_date(MYSQL_TIME *ltime,ulonglong fuzzydate)
longlong nr= val_int(); longlong nr= val_int();
bool neg= !(flags & UNSIGNED_FLAG) && nr < 0; bool neg= !(flags & UNSIGNED_FLAG) && nr < 0;
return int_to_datetime_with_warn(neg, neg ? -nr : nr, ltime, fuzzydate, return int_to_datetime_with_warn(neg, neg ? -nr : nr, ltime, fuzzydate,
field_name); table->s, field_name);
} }
@ -3397,7 +3397,7 @@ bool Field_new_decimal::get_date(MYSQL_TIME *ltime, ulonglong fuzzydate)
{ {
my_decimal value; my_decimal value;
return decimal_to_datetime_with_warn(val_decimal(&value), return decimal_to_datetime_with_warn(val_decimal(&value),
ltime, fuzzydate, field_name); ltime, fuzzydate, table->s, field_name);
} }
@ -4868,7 +4868,8 @@ bool Field_real::get_date(MYSQL_TIME *ltime,ulonglong fuzzydate)
{ {
ASSERT_COLUMN_MARKED_FOR_READ; ASSERT_COLUMN_MARKED_FOR_READ;
double nr= val_real(); double nr= val_real();
return double_to_datetime_with_warn(nr, ltime, fuzzydate, field_name); return double_to_datetime_with_warn(nr, ltime, fuzzydate,
table->s, field_name);
} }
@ -6351,7 +6352,7 @@ bool Field_year::get_date(MYSQL_TIME *ltime,ulonglong fuzzydate)
if (tmp || field_length != 4) if (tmp || field_length != 4)
tmp+= 1900; tmp+= 1900;
return int_to_datetime_with_warn(false, tmp * 10000, return int_to_datetime_with_warn(false, tmp * 10000,
ltime, fuzzydate, field_name); ltime, fuzzydate, table->s, field_name);
} }
@ -8633,10 +8634,18 @@ int Field_geom::store(const char *from, uint length, CHARSET_INFO *cs)
geom_type != Field::GEOM_GEOMETRYCOLLECTION && geom_type != Field::GEOM_GEOMETRYCOLLECTION &&
(uint32) geom_type != wkb_type) (uint32) geom_type != wkb_type)
{ {
const char *db= table->s->db.str;
const char *tab_name= table->s->error_table_name();
if (!db)
db= "";
if (!tab_name)
tab_name= "";
my_error(ER_TRUNCATED_WRONG_VALUE_FOR_FIELD, MYF(0), my_error(ER_TRUNCATED_WRONG_VALUE_FOR_FIELD, MYF(0),
Geometry::ci_collection[geom_type]->m_name.str, Geometry::ci_collection[geom_type]->m_name.str,
Geometry::ci_collection[wkb_type]->m_name.str, Geometry::ci_collection[wkb_type]->m_name.str,
field_name, db, tab_name, field_name,
(ulong) table->in_use->get_stmt_da()-> (ulong) table->in_use->get_stmt_da()->
current_row_for_warning()); current_row_for_warning());
goto err_exit; goto err_exit;
@ -10800,7 +10809,8 @@ void Field::set_datetime_warning(Sql_condition::enum_warning_level level,
{ {
THD *thd= get_thd(); THD *thd= get_thd();
if (thd->really_abort_on_warning() && level >= Sql_condition::WARN_LEVEL_WARN) if (thd->really_abort_on_warning() && level >= Sql_condition::WARN_LEVEL_WARN)
make_truncated_value_warning(thd, level, str, ts_type, field_name); make_truncated_value_warning(thd, level, str, ts_type,
table->s, field_name);
else else
set_warning(level, code, cuted_increment); set_warning(level, code, cuted_increment);
} }
@ -10810,10 +10820,19 @@ void Field::set_warning_truncated_wrong_value(const char *type_arg,
const char *value) const char *value)
{ {
THD *thd= get_thd(); THD *thd= get_thd();
const char *db_name= table->s->db.str;
const char *table_name= table->s->error_table_name();
if (!db_name)
db_name= "";
if (!table_name)
table_name= "";
push_warning_printf(thd, Sql_condition::WARN_LEVEL_WARN, push_warning_printf(thd, Sql_condition::WARN_LEVEL_WARN,
ER_TRUNCATED_WRONG_VALUE_FOR_FIELD, ER_TRUNCATED_WRONG_VALUE_FOR_FIELD,
ER_THD(thd, ER_TRUNCATED_WRONG_VALUE_FOR_FIELD), ER_THD(thd, ER_TRUNCATED_WRONG_VALUE_FOR_FIELD),
type_arg, value, field_name, type_arg, value,
db_name, table_name, field_name,
static_cast<ulong>(thd->get_stmt_da()-> static_cast<ulong>(thd->get_stmt_da()->
current_row_for_warning())); current_row_for_warning()));
} }

View File

@ -500,6 +500,15 @@ Item::Item(THD *thd):
} }
const TABLE_SHARE *Item::field_table_or_null()
{
if (real_item()->type() != Item::FIELD_ITEM)
return NULL;
return ((Item_field *) this)->field->table->s;
}
/** /**
Constructor used by Item_field, Item_ref & aggregate (sum) Constructor used by Item_field, Item_ref & aggregate (sum)
functions. functions.
@ -1358,6 +1367,7 @@ bool Item::get_date(MYSQL_TIME *ltime,ulonglong fuzzydate)
} }
if (null_value || int_to_datetime_with_warn(neg, neg ? -value : value, if (null_value || int_to_datetime_with_warn(neg, neg ? -value : value,
ltime, fuzzydate, ltime, fuzzydate,
field_table_or_null(),
field_name_or_null())) field_name_or_null()))
goto err; goto err;
return null_value= false; return null_value= false;
@ -1366,6 +1376,7 @@ bool Item::get_date(MYSQL_TIME *ltime,ulonglong fuzzydate)
{ {
double value= val_real(); double value= val_real();
if (null_value || double_to_datetime_with_warn(value, ltime, fuzzydate, if (null_value || double_to_datetime_with_warn(value, ltime, fuzzydate,
field_table_or_null(),
field_name_or_null())) field_name_or_null()))
goto err; goto err;
return null_value= false; return null_value= false;
@ -1375,6 +1386,7 @@ bool Item::get_date(MYSQL_TIME *ltime,ulonglong fuzzydate)
my_decimal value, *res; my_decimal value, *res;
if (!(res= val_decimal(&value)) || if (!(res= val_decimal(&value)) ||
decimal_to_datetime_with_warn(res, ltime, fuzzydate, decimal_to_datetime_with_warn(res, ltime, fuzzydate,
field_table_or_null(),
field_name_or_null())) field_name_or_null()))
goto err; goto err;
return null_value= false; return null_value= false;
@ -3630,7 +3642,7 @@ void Item_param::set_time(MYSQL_TIME *tm, timestamp_type time_type,
{ {
ErrConvTime str(&value.time); ErrConvTime str(&value.time);
make_truncated_value_warning(current_thd, Sql_condition::WARN_LEVEL_WARN, make_truncated_value_warning(current_thd, Sql_condition::WARN_LEVEL_WARN,
&str, time_type, 0); &str, time_type, 0, 0);
set_zero_time(&value.time, time_type); set_zero_time(&value.time, time_type);
} }
maybe_null= 0; maybe_null= 0;

View File

@ -1186,6 +1186,7 @@ public:
virtual const char *full_name() const { return name ? name : "???"; } virtual const char *full_name() const { return name ? name : "???"; }
const char *field_name_or_null() const char *field_name_or_null()
{ return real_item()->type() == Item::FIELD_ITEM ? name : NULL; } { return real_item()->type() == Item::FIELD_ITEM ? name : NULL; }
const TABLE_SHARE *field_table_or_null();
/* /*
*result* family of methods is analog of *val* family (see above) but *result* family of methods is analog of *val* family (see above) but

View File

@ -7299,7 +7299,7 @@ Item *create_temporal_literal(THD *thd,
ErrConvString err(str, length, cs); ErrConvString err(str, length, cs);
make_truncated_value_warning(thd, make_truncated_value_warning(thd,
Sql_condition::time_warn_level(status.warnings), Sql_condition::time_warn_level(status.warnings),
&err, ltime.time_type, 0); &err, ltime.time_type, 0, 0);
} }
return item; return item;
} }

View File

@ -1023,6 +1023,7 @@ bool Item_func_hybrid_field_type::get_date(MYSQL_TIME *ltime,
my_decimal value, *res; my_decimal value, *res;
if (!(res= decimal_op_with_null_check(&value)) || if (!(res= decimal_op_with_null_check(&value)) ||
decimal_to_datetime_with_warn(res, ltime, fuzzydate, decimal_to_datetime_with_warn(res, ltime, fuzzydate,
field_table_or_null(),
field_name_or_null())) field_name_or_null()))
goto err; goto err;
break; break;
@ -1033,6 +1034,7 @@ bool Item_func_hybrid_field_type::get_date(MYSQL_TIME *ltime,
bool neg= !unsigned_flag && value < 0; bool neg= !unsigned_flag && value < 0;
if (null_value || int_to_datetime_with_warn(neg, neg ? -value : value, if (null_value || int_to_datetime_with_warn(neg, neg ? -value : value,
ltime, fuzzydate, ltime, fuzzydate,
field_table_or_null(),
field_name_or_null())) field_name_or_null()))
goto err; goto err;
break; break;
@ -1041,6 +1043,7 @@ bool Item_func_hybrid_field_type::get_date(MYSQL_TIME *ltime,
{ {
double value= real_op(); double value= real_op();
if (null_value || double_to_datetime_with_warn(value, ltime, fuzzydate, if (null_value || double_to_datetime_with_warn(value, ltime, fuzzydate,
field_table_or_null(),
field_name_or_null())) field_name_or_null()))
goto err; goto err;
break; break;

View File

@ -5097,7 +5097,7 @@ bool Item_dyncol_get::get_date(MYSQL_TIME *ltime, ulonglong fuzzy_date)
bool neg = llval < 0; bool neg = llval < 0;
if (int_to_datetime_with_warn(neg, (ulonglong)(neg ? -llval : if (int_to_datetime_with_warn(neg, (ulonglong)(neg ? -llval :
llval), llval),
ltime, fuzzy_date, 0 /* TODO */)) ltime, fuzzy_date, 0, 0 /* TODO */))
goto null; goto null;
return 0; return 0;
} }
@ -5106,12 +5106,12 @@ bool Item_dyncol_get::get_date(MYSQL_TIME *ltime, ulonglong fuzzy_date)
/* fall through */ /* fall through */
case DYN_COL_DOUBLE: case DYN_COL_DOUBLE:
if (double_to_datetime_with_warn(val.x.double_value, ltime, fuzzy_date, if (double_to_datetime_with_warn(val.x.double_value, ltime, fuzzy_date,
0 /* TODO */)) 0, 0 /* TODO */))
goto null; goto null;
return 0; return 0;
case DYN_COL_DECIMAL: case DYN_COL_DECIMAL:
if (decimal_to_datetime_with_warn((my_decimal*)&val.x.decimal.value, ltime, if (decimal_to_datetime_with_warn((my_decimal*)&val.x.decimal.value, ltime,
fuzzy_date, 0 /* TODO */)) fuzzy_date, 0, 0 /* TODO */))
goto null; goto null;
return 0; return 0;
case DYN_COL_STRING: case DYN_COL_STRING:

View File

@ -430,7 +430,7 @@ static bool extract_date_time(DATE_TIME_FORMAT *format,
make_truncated_value_warning(current_thd, make_truncated_value_warning(current_thd,
Sql_condition::WARN_LEVEL_WARN, Sql_condition::WARN_LEVEL_WARN,
val_begin, length, val_begin, length,
cached_timestamp_type, NullS); cached_timestamp_type, 0, NullS);
break; break;
} }
} while (++val != val_end); } while (++val != val_end);
@ -1866,13 +1866,13 @@ overflow:
{ {
ErrConvInteger err2(sec, unsigned_flag); ErrConvInteger err2(sec, unsigned_flag);
make_truncated_value_warning(current_thd, Sql_condition::WARN_LEVEL_WARN, make_truncated_value_warning(current_thd, Sql_condition::WARN_LEVEL_WARN,
&err2, MYSQL_TIMESTAMP_TIME, NullS); &err2, MYSQL_TIMESTAMP_TIME, 0, NullS);
} }
else else
{ {
ErrConvString err2(err); ErrConvString err2(err);
make_truncated_value_warning(current_thd, Sql_condition::WARN_LEVEL_WARN, make_truncated_value_warning(current_thd, Sql_condition::WARN_LEVEL_WARN,
&err2, MYSQL_TIMESTAMP_TIME, NullS); &err2, MYSQL_TIMESTAMP_TIME, 0, NullS);
} }
return 0; return 0;
} }
@ -2894,7 +2894,7 @@ bool Item_func_maketime::get_date(MYSQL_TIME *ltime, ulonglong fuzzy_date)
int len = (int)(ptr - buf) + sprintf(ptr, ":%02u:%02u", (uint)minute, (uint)second); int len = (int)(ptr - buf) + sprintf(ptr, ":%02u:%02u", (uint)minute, (uint)second);
make_truncated_value_warning(current_thd, Sql_condition::WARN_LEVEL_WARN, make_truncated_value_warning(current_thd, Sql_condition::WARN_LEVEL_WARN,
buf, len, MYSQL_TIMESTAMP_TIME, buf, len, MYSQL_TIMESTAMP_TIME,
NullS); 0, NullS);
} }
return (null_value= 0); return (null_value= 0);

View File

@ -5449,8 +5449,8 @@ ER_DIVISION_BY_ZERO 22012
ger "Division durch 0" ger "Division durch 0"
hindi "0 से विभाजन" hindi "0 से विभाजन"
ER_TRUNCATED_WRONG_VALUE_FOR_FIELD 22007 ER_TRUNCATED_WRONG_VALUE_FOR_FIELD 22007
eng "Incorrect %-.32s value: '%-.128s' for column '%.192s' at row %lu" eng "Incorrect %-.32s value: '%-.128s' for column `%.192s`.`%.192s`.`%.192s` at row %lu"
ger "Falscher %-.32s-Wert: '%-.128s' für Feld '%.192s' in Zeile %lu" ger "Falscher %-.32s-Wert: '%-.128s' für Feld '`%.192s`.`%.192s`.`%.192s` in Zeile %lu"
ER_ILLEGAL_VALUE_FOR_TYPE 22007 ER_ILLEGAL_VALUE_FOR_TYPE 22007
eng "Illegal %s '%-.192s' value found during parsing" eng "Illegal %s '%-.192s' value found during parsing"
ger "Nicht zulässiger %s-Wert '%-.192s' beim Parsen gefunden" ger "Nicht zulässiger %s-Wert '%-.192s' beim Parsen gefunden"

View File

@ -3009,6 +3009,10 @@ int select_export::send_data(List<Item> &items)
error_pos= copier.most_important_error_pos(); error_pos= copier.most_important_error_pos();
if (error_pos) if (error_pos)
{ {
/*
TODO:
add new error message that will show user this printable_buff
char printable_buff[32]; char printable_buff[32];
convert_to_printable(printable_buff, sizeof(printable_buff), convert_to_printable(printable_buff, sizeof(printable_buff),
error_pos, res->ptr() + res->length() - error_pos, error_pos, res->ptr() + res->length() - error_pos,
@ -3018,6 +3022,11 @@ int select_export::send_data(List<Item> &items)
ER_THD(thd, ER_TRUNCATED_WRONG_VALUE_FOR_FIELD), ER_THD(thd, ER_TRUNCATED_WRONG_VALUE_FOR_FIELD),
"string", printable_buff, "string", printable_buff,
item->name, static_cast<long>(row_count)); item->name, static_cast<long>(row_count));
*/
push_warning_printf(thd, Sql_condition::WARN_LEVEL_WARN,
ER_TRUNCATED_WRONG_VALUE_FOR_FIELD,
ER_THD(thd, WARN_DATA_TRUNCATED),
item->name, static_cast<long>(row_count));
} }
else if (copier.source_end_pos() < res->ptr() + res->length()) else if (copier.source_end_pos() < res->ptr() + res->length())
{ {

View File

@ -9546,6 +9546,8 @@ bool mysql_alter_table(THD *thd,char *new_db, char *new_name,
goto err_new_table_cleanup; goto err_new_table_cleanup;
} }
} }
new_table->s->orig_table_name= table->s->table_name.str;
/* /*
Note: In case of MERGE table, we do not attach children. We do not Note: In case of MERGE table, we do not attach children. We do not
copy data for MERGE tables. Only the children have data. copy data for MERGE tables. Only the children have data.
@ -9768,16 +9770,6 @@ end_temporary:
err_new_table_cleanup: err_new_table_cleanup:
my_free(const_cast<uchar*>(frm.str)); my_free(const_cast<uchar*>(frm.str));
if (new_table)
{
thd->drop_temporary_table(new_table, NULL, true);
}
else
(void) quick_rm_table(thd, new_db_type,
alter_ctx.new_db, alter_ctx.tmp_name,
(FN_IS_TMP | (no_ha_table ? NO_HA_TABLE : 0)),
alter_ctx.get_tmp_path());
/* /*
No default value was provided for a DATE/DATETIME field, the No default value was provided for a DATE/DATETIME field, the
current sql_mode doesn't allow the '0000-00-00' value and current sql_mode doesn't allow the '0000-00-00' value and
@ -9809,10 +9801,22 @@ err_new_table_cleanup:
thd->abort_on_warning= true; thd->abort_on_warning= true;
make_truncated_value_warning(thd, Sql_condition::WARN_LEVEL_WARN, make_truncated_value_warning(thd, Sql_condition::WARN_LEVEL_WARN,
f_val, strlength(f_val), t_type, f_val, strlength(f_val), t_type,
new_table->s,
alter_ctx.datetime_field->field_name); alter_ctx.datetime_field->field_name);
thd->abort_on_warning= save_abort_on_warning; thd->abort_on_warning= save_abort_on_warning;
} }
if (new_table)
{
thd->drop_temporary_table(new_table, NULL, true);
}
else
(void) quick_rm_table(thd, new_db_type,
alter_ctx.new_db, alter_ctx.tmp_name,
(FN_IS_TMP | (no_ha_table ? NO_HA_TABLE : 0)),
alter_ctx.get_tmp_path());
DBUG_RETURN(true); DBUG_RETURN(true);
err_with_mdl_after_alter: err_with_mdl_after_alter:

View File

@ -223,7 +223,7 @@ check_date_with_warn(const MYSQL_TIME *ltime, ulonglong fuzzy_date,
{ {
ErrConvTime str(ltime); ErrConvTime str(ltime);
make_truncated_value_warning(current_thd, Sql_condition::WARN_LEVEL_WARN, make_truncated_value_warning(current_thd, Sql_condition::WARN_LEVEL_WARN,
&str, ts_type, 0); &str, ts_type, 0, 0);
return true; return true;
} }
return false; return false;
@ -240,7 +240,7 @@ adjust_time_range_with_warn(MYSQL_TIME *ltime, uint dec)
return true; return true;
if (warnings) if (warnings)
make_truncated_value_warning(current_thd, Sql_condition::WARN_LEVEL_WARN, make_truncated_value_warning(current_thd, Sql_condition::WARN_LEVEL_WARN,
&str, MYSQL_TIMESTAMP_TIME, NullS); &str, MYSQL_TIMESTAMP_TIME, 0, NullS);
return false; return false;
} }
@ -329,7 +329,7 @@ str_to_datetime_with_warn(CHARSET_INFO *cs,
ret_val ? Sql_condition::WARN_LEVEL_WARN : ret_val ? Sql_condition::WARN_LEVEL_WARN :
Sql_condition::time_warn_level(status.warnings), Sql_condition::time_warn_level(status.warnings),
str, length, flags & TIME_TIME_ONLY ? str, length, flags & TIME_TIME_ONLY ?
MYSQL_TIMESTAMP_TIME : l_time->time_type, NullS); MYSQL_TIMESTAMP_TIME : l_time->time_type, 0, NullS);
DBUG_EXECUTE_IF("str_to_datetime_warn", DBUG_EXECUTE_IF("str_to_datetime_warn",
push_warning(thd, Sql_condition::WARN_LEVEL_NOTE, push_warning(thd, Sql_condition::WARN_LEVEL_NOTE,
ER_YES, str);); ER_YES, str););
@ -353,7 +353,7 @@ str_to_datetime_with_warn(CHARSET_INFO *cs,
static bool number_to_time_with_warn(bool neg, ulonglong nr, ulong sec_part, static bool number_to_time_with_warn(bool neg, ulonglong nr, ulong sec_part,
MYSQL_TIME *ltime, ulonglong fuzzydate, MYSQL_TIME *ltime, ulonglong fuzzydate,
const ErrConv *str, const ErrConv *str,
const char *field_name) const TABLE_SHARE *s, const char *field_name)
{ {
int was_cut; int was_cut;
longlong res; longlong res;
@ -387,14 +387,15 @@ static bool number_to_time_with_warn(bool neg, ulonglong nr, ulong sec_part,
Sql_condition::WARN_LEVEL_WARN, str, Sql_condition::WARN_LEVEL_WARN, str,
res < 0 ? MYSQL_TIMESTAMP_ERROR res < 0 ? MYSQL_TIMESTAMP_ERROR
: mysql_type_to_time_type(f_type), : mysql_type_to_time_type(f_type),
field_name); s, field_name);
} }
return res < 0; return res < 0;
} }
bool double_to_datetime_with_warn(double value, MYSQL_TIME *ltime, bool double_to_datetime_with_warn(double value, MYSQL_TIME *ltime,
ulonglong fuzzydate, const char *field_name) ulonglong fuzzydate,
const TABLE_SHARE *s, const char *field_name)
{ {
const ErrConvDouble str(value); const ErrConvDouble str(value);
bool neg= value < 0; bool neg= value < 0;
@ -408,28 +409,30 @@ bool double_to_datetime_with_warn(double value, MYSQL_TIME *ltime,
longlong nr= static_cast<ulonglong>(floor(value)); longlong nr= static_cast<ulonglong>(floor(value));
uint sec_part= static_cast<ulong>((value - floor(value))*TIME_SECOND_PART_FACTOR); uint sec_part= static_cast<ulong>((value - floor(value))*TIME_SECOND_PART_FACTOR);
return number_to_time_with_warn(neg, nr, sec_part, ltime, fuzzydate, &str, return number_to_time_with_warn(neg, nr, sec_part, ltime, fuzzydate, &str,
field_name); s, field_name);
} }
bool decimal_to_datetime_with_warn(const my_decimal *value, MYSQL_TIME *ltime, bool decimal_to_datetime_with_warn(const my_decimal *value, MYSQL_TIME *ltime,
ulonglong fuzzydate, const char *field_name) ulonglong fuzzydate,
const TABLE_SHARE *s, const char *field_name)
{ {
const ErrConvDecimal str(value); const ErrConvDecimal str(value);
ulonglong nr; ulonglong nr;
ulong sec_part; ulong sec_part;
bool neg= my_decimal2seconds(value, &nr, &sec_part); bool neg= my_decimal2seconds(value, &nr, &sec_part);
return number_to_time_with_warn(neg, nr, sec_part, ltime, fuzzydate, &str, return number_to_time_with_warn(neg, nr, sec_part, ltime, fuzzydate, &str,
field_name); s, field_name);
} }
bool int_to_datetime_with_warn(bool neg, ulonglong value, MYSQL_TIME *ltime, bool int_to_datetime_with_warn(bool neg, ulonglong value, MYSQL_TIME *ltime,
ulonglong fuzzydate, const char *field_name) ulonglong fuzzydate,
const TABLE_SHARE *s, const char *field_name)
{ {
const ErrConvInteger str(neg ? - (longlong) value : (longlong) value, !neg); const ErrConvInteger str(neg ? - (longlong) value : (longlong) value, !neg);
return number_to_time_with_warn(neg, value, 0, ltime, return number_to_time_with_warn(neg, value, 0, ltime,
fuzzydate, &str, field_name); fuzzydate, &str, s, field_name);
} }
@ -856,7 +859,7 @@ void make_truncated_value_warning(THD *thd,
Sql_condition::enum_warning_level level, Sql_condition::enum_warning_level level,
const ErrConv *sval, const ErrConv *sval,
timestamp_type time_type, timestamp_type time_type,
const char *field_name) const TABLE_SHARE *s, const char *field_name)
{ {
char warn_buff[MYSQL_ERRMSG_SIZE]; char warn_buff[MYSQL_ERRMSG_SIZE];
const char *type_str; const char *type_str;
@ -875,10 +878,21 @@ void make_truncated_value_warning(THD *thd,
break; break;
} }
if (field_name) if (field_name)
{
const char *db_name= s->db.str;
const char *table_name= s->error_table_name();
if (!db_name)
db_name= "";
if (!table_name)
table_name= "";
cs->cset->snprintf(cs, warn_buff, sizeof(warn_buff), cs->cset->snprintf(cs, warn_buff, sizeof(warn_buff),
ER_THD(thd, ER_TRUNCATED_WRONG_VALUE_FOR_FIELD), ER_THD(thd, ER_TRUNCATED_WRONG_VALUE_FOR_FIELD),
type_str, sval->ptr(), field_name, type_str, sval->ptr(),
db_name, table_name, field_name,
(ulong) thd->get_stmt_da()->current_row_for_warning()); (ulong) thd->get_stmt_da()->current_row_for_warning());
}
else else
{ {
if (time_type > MYSQL_TIMESTAMP_ERROR) if (time_type > MYSQL_TIMESTAMP_ERROR)
@ -1205,7 +1219,7 @@ make_date_with_warn(MYSQL_TIME *ltime, ulonglong fuzzy_date,
/* e.g. negative time */ /* e.g. negative time */
ErrConvTime str(ltime); ErrConvTime str(ltime);
make_truncated_value_warning(current_thd, Sql_condition::WARN_LEVEL_WARN, make_truncated_value_warning(current_thd, Sql_condition::WARN_LEVEL_WARN,
&str, ts_type, 0); &str, ts_type, 0, 0);
return true; return true;
} }
if ((ltime->time_type= ts_type) == MYSQL_TIMESTAMP_DATE) if ((ltime->time_type= ts_type) == MYSQL_TIMESTAMP_DATE)
@ -1369,7 +1383,7 @@ time_to_datetime_with_warn(THD *thd,
{ {
ErrConvTime str(from); ErrConvTime str(from);
make_truncated_value_warning(thd, Sql_condition::WARN_LEVEL_WARN, make_truncated_value_warning(thd, Sql_condition::WARN_LEVEL_WARN,
&str, MYSQL_TIMESTAMP_DATETIME, 0); &str, MYSQL_TIMESTAMP_DATETIME, 0, 0);
return true; return true;
} }
return false; return false;

View File

@ -44,13 +44,13 @@ bool str_to_datetime_with_warn(CHARSET_INFO *cs, const char *str,
ulonglong flags); ulonglong flags);
bool double_to_datetime_with_warn(double value, MYSQL_TIME *ltime, bool double_to_datetime_with_warn(double value, MYSQL_TIME *ltime,
ulonglong fuzzydate, ulonglong fuzzydate,
const char *name); const TABLE_SHARE *s, const char *name);
bool decimal_to_datetime_with_warn(const my_decimal *value, MYSQL_TIME *ltime, bool decimal_to_datetime_with_warn(const my_decimal *value, MYSQL_TIME *ltime,
ulonglong fuzzydate, ulonglong fuzzydate,
const char *name); const TABLE_SHARE *s, const char *name);
bool int_to_datetime_with_warn(bool neg, ulonglong value, MYSQL_TIME *ltime, bool int_to_datetime_with_warn(bool neg, ulonglong value, MYSQL_TIME *ltime,
ulonglong fuzzydate, ulonglong fuzzydate,
const char *name); const TABLE_SHARE *s, const char *name);
bool time_to_datetime(THD *thd, const MYSQL_TIME *tm, MYSQL_TIME *dt); bool time_to_datetime(THD *thd, const MYSQL_TIME *tm, MYSQL_TIME *dt);
bool time_to_datetime_with_warn(THD *thd, bool time_to_datetime_with_warn(THD *thd,
@ -120,15 +120,15 @@ void make_truncated_value_warning(THD *thd,
Sql_condition::enum_warning_level level, Sql_condition::enum_warning_level level,
const ErrConv *str_val, const ErrConv *str_val,
timestamp_type time_type, timestamp_type time_type,
const char *field_name); const TABLE_SHARE *s, const char *field_name);
static inline void make_truncated_value_warning(THD *thd, static inline void make_truncated_value_warning(THD *thd,
Sql_condition::enum_warning_level level, const char *str_val, Sql_condition::enum_warning_level level, const char *str_val,
uint str_length, timestamp_type time_type, uint str_length, timestamp_type time_type,
const char *field_name) const TABLE_SHARE *s, const char *field_name)
{ {
const ErrConvString str(str_val, str_length, &my_charset_bin); const ErrConvString str(str_val, str_length, &my_charset_bin);
make_truncated_value_warning(thd, level, &str, time_type, field_name); make_truncated_value_warning(thd, level, &str, time_type, s, field_name);
} }
extern DATE_TIME_FORMAT *date_time_format_make(timestamp_type format_type, extern DATE_TIME_FORMAT *date_time_format_make(timestamp_type format_type,

View File

@ -625,6 +625,16 @@ struct TABLE_SHARE
LEX_STRING normalized_path; /* unpack_filename(path) */ LEX_STRING normalized_path; /* unpack_filename(path) */
LEX_STRING connect_string; LEX_STRING connect_string;
const char* orig_table_name; /* Original table name for this tmp table */
const char* error_table_name() const /* Get table name for error messages */
{
return tmp_table ? (
orig_table_name ?
orig_table_name :
"(temporary)") :
table_name.str;
}
/* /*
Set of keys in use, implemented as a Bitmap. Set of keys in use, implemented as a Bitmap.
Excludes keys disabled by ALTER TABLE ... DISABLE KEYS. Excludes keys disabled by ALTER TABLE ... DISABLE KEYS.

View File

@ -26,7 +26,7 @@ fname ftype size
boys .txt 282 boys .txt 282
boyswin .txt 288 boyswin .txt 288
INSERT INTO t1 VALUES ('','','',''); INSERT INTO t1 VALUES ('','','','');
ERROR 22007: Incorrect double value: '' for column 'size' at row 1 ERROR 22007: Incorrect double value: '' for column `test`.`t1`.`size` at row 1
DROP TABLE t1; DROP TABLE t1;
CREATE TABLE t1 ENGINE=CONNECT TABLE_TYPE=DIR FILE_NAME='*.txt'; CREATE TABLE t1 ENGINE=CONNECT TABLE_TYPE=DIR FILE_NAME='*.txt';
ERROR HY000: Cannot get column info for table type DIR ERROR HY000: Cannot get column info for table type DIR

View File

@ -6,7 +6,7 @@ created_at DATETIME
) DEFAULT CHARSET UTF8; ) DEFAULT CHARSET UTF8;
INSERT INTO diaries (title, created_at) INSERT INTO diaries (title, created_at)
VALUES ('2012', '2012'); VALUES ('2012', '2012');
ERROR 22007: Incorrect datetime value: '2012' for column 'created_at' at row 1 ERROR 22007: Incorrect datetime value: '2012' for column `test`.`diaries`.`created_at` at row 1
SELECT * FROM diaries; SELECT * FROM diaries;
id title created_at id title created_at
DROP TABLE diaries; DROP TABLE diaries;

View File

@ -77,7 +77,7 @@ SET rocksdb_bulk_load=1;
INSERT INTO t1 VALUES(13, 0); INSERT INTO t1 VALUES(13, 0);
INSERT INTO t1 VALUES(2, 'test 2'); INSERT INTO t1 VALUES(2, 'test 2');
Warnings: Warnings:
Warning 1366 Incorrect integer value: 'test 2' for column 'b' at row 1 Warning 1366 Incorrect integer value: 'test 2' for column `test`.`t1`.`b` at row 1
INSERT INTO t1 VALUES(@id, @arg04); INSERT INTO t1 VALUES(@id, @arg04);
SET @@global.table_open_cache=FALSE; SET @@global.table_open_cache=FALSE;
Warnings: Warnings:

View File

@ -577,8 +577,8 @@ b1 b2
0 0 0 0
INSERT INTO t1 (b1,b2) VALUES ('a','b'); INSERT INTO t1 (b1,b2) VALUES ('a','b');
Warnings: Warnings:
Warning 1366 Incorrect integer value: 'a' for column 'b1' at row 1 Warning 1366 Incorrect integer value: 'a' for column `test`.`t1`.`b1` at row 1
Warning 1366 Incorrect integer value: 'b' for column 'b2' at row 1 Warning 1366 Incorrect integer value: 'b' for column `test`.`t1`.`b2` at row 1
SELECT b1,b2 FROM t1; SELECT b1,b2 FROM t1;
b1 b2 b1 b2
-1 -2 -1 -2

View File

@ -500,8 +500,8 @@ b1 b2
0 0 0 0
INSERT INTO t1 (b1,b2) VALUES ('a','b'); INSERT INTO t1 (b1,b2) VALUES ('a','b');
Warnings: Warnings:
Warning 1366 Incorrect integer value: 'a' for column 'b1' at row 1 Warning 1366 Incorrect integer value: 'a' for column `test`.`t1`.`b1` at row 1
Warning 1366 Incorrect integer value: 'b' for column 'b2' at row 1 Warning 1366 Incorrect integer value: 'b' for column `test`.`t1`.`b2` at row 1
SELECT b1,b2 FROM t1; SELECT b1,b2 FROM t1;
b1 b2 b1 b2
-1 -2 -1 -2

View File

@ -2451,9 +2451,9 @@ DROP TABLE t1;
CREATE TABLE t2(id INT NOT NULL PRIMARY KEY, data INT) Engine=MEMORY; CREATE TABLE t2(id INT NOT NULL PRIMARY KEY, data INT) Engine=MEMORY;
INSERT INTO t2 VALUES (100,NULL),(150,"long varchar"),(200,"varchar"),(250,"long long long varchar"); INSERT INTO t2 VALUES (100,NULL),(150,"long varchar"),(200,"varchar"),(250,"long long long varchar");
Warnings: Warnings:
Warning 1366 Incorrect integer value: 'long varchar' for column 'data' at row 2 Warning 1366 Incorrect integer value: 'long varchar' for column `test`.`t2`.`data` at row 2
Warning 1366 Incorrect integer value: 'varchar' for column 'data' at row 3 Warning 1366 Incorrect integer value: 'varchar' for column `test`.`t2`.`data` at row 3
Warning 1366 Incorrect integer value: 'long long long varchar' for column 'data' at row 4 Warning 1366 Incorrect integer value: 'long long long varchar' for column `test`.`t2`.`data` at row 4
create TABLE t1 (a int not null, b int not null, primary key(a,b)); create TABLE t1 (a int not null, b int not null, primary key(a,b));
INSERT INTO t1 VALUES (1,1); INSERT INTO t1 VALUES (1,1);
SELECT a FROM t1, t2 WHERE a=b AND (b NOT IN (SELECT a FROM t1 WHERE a > 4)); SELECT a FROM t1, t2 WHERE a=b AND (b NOT IN (SELECT a FROM t1 WHERE a > 4));
@ -2542,10 +2542,10 @@ a
truncate t1; truncate t1;
INSERT INTO t1 VALUES(X'042000200020',X'042000200020'),(X'200400200020',X'200400200020'); INSERT INTO t1 VALUES(X'042000200020',X'042000200020'),(X'200400200020',X'200400200020');
Warnings: Warnings:
Warning 1366 Incorrect integer value: '\x04 \x00 \x00 ' for column 'a' at row 1 Warning 1366 Incorrect integer value: '\x04 \x00 \x00 ' for column `test`.`t1`.`a` at row 1
Warning 1366 Incorrect integer value: '\x04 \x00 \x00 ' for column 'b' at row 1 Warning 1366 Incorrect integer value: '\x04 \x00 \x00 ' for column `test`.`t1`.`b` at row 1
Warning 1366 Incorrect integer value: ' \x04\x00 \x00 ' for column 'a' at row 2 Warning 1366 Incorrect integer value: ' \x04\x00 \x00 ' for column `test`.`t1`.`a` at row 2
Warning 1366 Incorrect integer value: ' \x04\x00 \x00 ' for column 'b' at row 2 Warning 1366 Incorrect integer value: ' \x04\x00 \x00 ' for column `test`.`t1`.`b` at row 2
UNLOCK TABLES; UNLOCK TABLES;
DROP TABLE t1; DROP TABLE t1;
# #

View File

@ -45,8 +45,8 @@ b1 b2
0 0 0 0
INSERT INTO t1 (b1,b2) VALUES ('a','b'); INSERT INTO t1 (b1,b2) VALUES ('a','b');
Warnings: Warnings:
Warning 1366 Incorrect integer value: 'a' for column 'b1' at row 1 Warning 1366 Incorrect integer value: 'a' for column `test`.`t1`.`b1` at row 1
Warning 1366 Incorrect integer value: 'b' for column 'b2' at row 1 Warning 1366 Incorrect integer value: 'b' for column `test`.`t1`.`b2` at row 1
SELECT b1,b2 FROM t1; SELECT b1,b2 FROM t1;
b1 b2 b1 b2
-1 -2 -1 -2

View File

@ -194,7 +194,7 @@ INSERT into t31 set f1=1, f2=1, f3=1, f4='first';
insert ignore into t31 set f1=1, f2=1, f3=2, f4='second', insert ignore into t31 set f1=1, f2=1, f3=2, f4='second',
f9=2.2, f10='seven samurai', f28=222.222, f35='222'; f9=2.2, f10='seven samurai', f28=222.222, f35='222';
Warnings: Warnings:
Warning 1366 Incorrect integer value: 'seven samurai' for column 'f10' at row 1 Warning 1366 Incorrect integer value: 'seven samurai' for column `test`.`t31`.`f10` at row 1
insert ignore into t31 values (1, 1, 3, 'third', insert ignore into t31 values (1, 1, 3, 'third',
/* f5 BIGINT, */ 333333333333333333333333, /* f5 BIGINT, */ 333333333333333333333333,
/* f6 BLOB, */ '3333333333333333333333', /* f6 BLOB, */ '3333333333333333333333',

View File

@ -100,7 +100,7 @@ DROP TABLE t1, t2, t3;
CREATE TABLE t1 (y YEAR); CREATE TABLE t1 (y YEAR);
INSERT INTO t1 VALUES ('abc'); INSERT INTO t1 VALUES ('abc');
Warnings: Warnings:
Warning 1366 Incorrect integer value: 'abc' for column 'y' at row 1 Warning 1366 Incorrect integer value: 'abc' for column `test`.`t1`.`y` at row 1
SELECT * FROM t1; SELECT * FROM t1;
y y
0000 0000
@ -211,7 +211,7 @@ a
0000-00-00 0000-00-00
0000-00-00 0000-00-00
INSERT INTO t1 VALUES ('0000-00-00'); INSERT INTO t1 VALUES ('0000-00-00');
ERROR 22007: Incorrect date value: '0000-00-00' for column 'a' at row 1 ERROR 22007: Incorrect date value: '0000-00-00' for column `test`.`t1`.`a` at row 1
SET SQL_MODE=DEFAULT; SET SQL_MODE=DEFAULT;
DROP TABLE t1,t2; DROP TABLE t1,t2;
CREATE TABLE t1 (a DATE); CREATE TABLE t1 (a DATE);
@ -240,7 +240,7 @@ a
1000-00-00 1000-00-00
1000-00-00 1000-00-00
INSERT INTO t1 VALUES ('1000-00-00'); INSERT INTO t1 VALUES ('1000-00-00');
ERROR 22007: Incorrect date value: '1000-00-00' for column 'a' at row 1 ERROR 22007: Incorrect date value: '1000-00-00' for column `test`.`t1`.`a` at row 1
SET SQL_MODE=DEFAULT; SET SQL_MODE=DEFAULT;
DROP TABLE t1,t2; DROP TABLE t1,t2;
CREATE TABLE t1 SELECT curdate() AS f1; CREATE TABLE t1 SELECT curdate() AS f1;

View File

@ -218,7 +218,7 @@ insert into t1 set dt='2007-03-23 13:49:38',da=dt;
Warnings: Warnings:
Note 1265 Data truncated for column 'da' at row 1 Note 1265 Data truncated for column 'da' at row 1
insert into t1 values ('2007-03-32','2007-03-23 13:49:38'); insert into t1 values ('2007-03-32','2007-03-23 13:49:38');
ERROR 22007: Incorrect date value: '2007-03-32' for column 'da' at row 1 ERROR 22007: Incorrect date value: '2007-03-32' for column `test`.`t1`.`da` at row 1
select * from t1; select * from t1;
da dt da dt
1962-03-03 1962-03-03 00:00:00 1962-03-03 1962-03-03 00:00:00
@ -586,7 +586,7 @@ insert into t1 set dt='2007-03-23 13:49:38',da=dt;
Warnings: Warnings:
Note 1265 Data truncated for column 'da' at row 1 Note 1265 Data truncated for column 'da' at row 1
insert into t1 values ('2007-03-32','2007-03-23 13:49:38'); insert into t1 values ('2007-03-32','2007-03-23 13:49:38');
ERROR 22007: Incorrect date value: '2007-03-32' for column 'da' at row 1 ERROR 22007: Incorrect date value: '2007-03-32' for column `test`.`t1`.`da` at row 1
select * from t1; select * from t1;
da dt da dt
1962-03-03 1962-03-03 00:00:00 1962-03-03 1962-03-03 00:00:00

View File

@ -177,9 +177,9 @@ Note 1265 Data truncated for column 'a' at row 2
insert into t1 values ("1e+18446744073709551615"),("1e+18446744073709551616"),("1e-9223372036854775807"),("1e-9223372036854775809"); insert into t1 values ("1e+18446744073709551615"),("1e+18446744073709551616"),("1e-9223372036854775807"),("1e-9223372036854775809");
Warnings: Warnings:
Warning 1264 Out of range value for column 'a' at row 1 Warning 1264 Out of range value for column 'a' at row 1
Warning 1366 Incorrect decimal value: '1e+18446744073709551616' for column 'a' at row 2 Warning 1366 Incorrect decimal value: '1e+18446744073709551616' for column `test`.`t1`.`a` at row 2
Note 1265 Data truncated for column 'a' at row 3 Note 1265 Data truncated for column 'a' at row 3
Warning 1366 Incorrect decimal value: '1e-9223372036854775809' for column 'a' at row 4 Warning 1366 Incorrect decimal value: '1e-9223372036854775809' for column `test`.`t1`.`a` at row 4
insert into t1 values ("123.4e"),("123.4e+2"),("123.4e-2"),("123e1"),("123e+0"); insert into t1 values ("123.4e"),("123.4e+2"),("123.4e-2"),("123e1"),("123e+0");
Warnings: Warnings:
Warning 1265 Data truncated for column 'a' at row 1 Warning 1265 Data truncated for column 'a' at row 1

View File

@ -459,7 +459,7 @@ Warnings:
Warning 1265 Data truncated for column 'f' at row 1 Warning 1265 Data truncated for column 'f' at row 1
INSERT INTO t1 VALUES ('.'); INSERT INTO t1 VALUES ('.');
Warnings: Warnings:
Warning 1366 Incorrect double value: '.' for column 'f' at row 1 Warning 1366 Incorrect double value: '.' for column `test`.`t1`.`f` at row 1
SELECT * FROM t1 ORDER BY f; SELECT * FROM t1 ORDER BY f;
f f
0 0

View File

@ -826,7 +826,7 @@ Warning 1365 Division by 0
Warning 1365 Division by 0 Warning 1365 Division by 0
Warning 1365 Division by 0 Warning 1365 Division by 0
INSERT INTO Sow6_2f VALUES ('a59b'); INSERT INTO Sow6_2f VALUES ('a59b');
ERROR 22007: Incorrect decimal value: 'a59b' for column 'col1' at row 1 ERROR 22007: Incorrect decimal value: 'a59b' for column `test`.`Sow6_2f`.`col1` at row 1
drop table Sow6_2f; drop table Sow6_2f;
select 10.3330000000000/12.34500000; select 10.3330000000000/12.34500000;
10.3330000000000/12.34500000 10.3330000000000/12.34500000