diff options
author | unknown <pem@mysql.comhem.se> | 2005-05-27 16:19:25 +0200 |
---|---|---|
committer | unknown <pem@mysql.comhem.se> | 2005-05-27 16:19:25 +0200 |
commit | 166accffda5d2019804c842a91b33e7d1a65f6ac (patch) | |
tree | 89f4aa44fffabd7d9a60850fbc959a8e765fd2dd /mysql-test/t/sp-error.test | |
parent | d5f4c14b6e1ba0c0639e513d50eace20d6f8c15d (diff) | |
download | mariadb-git-166accffda5d2019804c842a91b33e7d1a65f6ac.tar.gz |
Fixed BUG#8409: Stored procedure crash if function contains FLUSH
by simply disabling FLUSH for stored functions. (I can't really work.)
mysql-test/r/sp-error.result:
New test case for BUG#8409.
mysql-test/t/sp-error.test:
New test case for BUG#8409.
sql/sql_yacc.yy:
Disable FLUSH for stored functions.
Diffstat (limited to 'mysql-test/t/sp-error.test')
-rw-r--r-- | mysql-test/t/sp-error.test | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/mysql-test/t/sp-error.test b/mysql-test/t/sp-error.test index 67e9be5dd5d..78a6cdd49e1 100644 --- a/mysql-test/t/sp-error.test +++ b/mysql-test/t/sp-error.test @@ -906,6 +906,21 @@ create procedure bug10537() # +# BUG#8409: Stored procedure crash if function contains FLUSH +# +--disable_warnings +drop function if exists bug8409| +--enable_warnings +--error ER_SP_BADSTATEMENT +create function bug8409() + returns int +begin + flush tables; + return 5; +end| + + +# # BUG#NNNN: New bug synopsis # #--disable_warnings |