diff options
author | monty@mysql.com <> | 2005-04-05 00:32:48 +0300 |
---|---|---|
committer | monty@mysql.com <> | 2005-04-05 00:32:48 +0300 |
commit | 1be0a0c82a05181cd7aac52ace6167ff9939e21a (patch) | |
tree | 47a17106234067aa3cb031e4d92f9f332e28ce59 /mysql-test/t/strict.test | |
parent | 04f8e164fb4ec9c35822a44b1296c69f19ab6d2e (diff) | |
download | mariadb-git-1be0a0c82a05181cd7aac52ace6167ff9939e21a.tar.gz |
Now one gets an error if one tries to insert an invalid value via a stored procedure in STRICT mode. (Bug #5907)
Diffstat (limited to 'mysql-test/t/strict.test')
-rw-r--r-- | mysql-test/t/strict.test | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/mysql-test/t/strict.test b/mysql-test/t/strict.test index 9d4befb9743..b5d234b7bea 100644 --- a/mysql-test/t/strict.test +++ b/mysql-test/t/strict.test @@ -1032,6 +1032,21 @@ select * from t1; drop table t1; # +# Test of inserting an invalid value via a stored procedure (Bug #5907) +# +create table t1 (col1 tinyint); +drop procedure if exists t1; +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; +drop table t1; + +# # Restore mode # set sql_mode=@org_mode; |