mirror of
https://github.com/MariaDB/server.git
synced 2025-08-01 03:47:19 +03:00
MDEV-30342 Wrong "Truncated incorrect DECIMAL value" warning/error
regression from MDEV-29540 / 8c38939369
.
INSERT SELECT errors needed to be unconditionally ignored.
As this touches the CREATE .. SELECT functionality, show
the equalivent test there.
This commit is contained in:
@ -1042,4 +1042,17 @@ select * from t1;
|
||||
a
|
||||
deallocate prepare stmt;
|
||||
drop table t1,t2,t3;
|
||||
#
|
||||
# MDEV-30342 Wrong "Truncated incorrect DECIMAL value" warning/error
|
||||
#
|
||||
create table t1(c1 varchar(1));
|
||||
create table t2(c1 varchar(1));
|
||||
insert into t1(c1) values('#');
|
||||
select @@sql_mode like '%strict_all_tables%';
|
||||
@@sql_mode like '%strict_all_tables%'
|
||||
0
|
||||
insert into t2(c1) select if(c1 = '#', c1 = 0, c1) as c1 from t1;
|
||||
drop table t1, t2;
|
||||
#
|
||||
# End of 10.3 test
|
||||
#
|
||||
|
Reference in New Issue
Block a user