mirror of
https://github.com/MariaDB/server.git
synced 2025-08-01 03:47:19 +03:00
Additional fix for BUG#5907: Traditional mode: invalid value can be inserted via a stored procedure
... make the handler catch too. mysql-test/r/strict.result: Updated corrected result for BUG#5907. mysql-test/t/strict.test: Corrected test for BUG#5907. sql/sp_head.cc: Make handlers catch certain bad data exceptions in strict mode too.
This commit is contained in:
@ -1180,7 +1180,8 @@ Note 1305 PROCEDURE t1 does not exist
|
||||
create procedure t1 () begin declare exit handler for sqlexception
|
||||
select'a'; insert into t1 values (200); end;|
|
||||
call t1();
|
||||
ERROR 22003: Out of range value adjusted for column 'col1' at row 1
|
||||
a
|
||||
a
|
||||
select * from t1;
|
||||
col1
|
||||
drop procedure t1;
|
||||
|
@ -1040,7 +1040,6 @@ delimiter |;
|
||||
create procedure t1 () begin declare exit handler for sqlexception
|
||||
select'a'; insert into t1 values (200); end;|
|
||||
delimiter ;|
|
||||
--error 1264
|
||||
call t1();
|
||||
select * from t1;
|
||||
drop procedure t1;
|
||||
|
Reference in New Issue
Block a user