diff options
author | unknown <konstantin@mysql.com> | 2005-11-19 01:22:12 +0300 |
---|---|---|
committer | unknown <konstantin@mysql.com> | 2005-11-19 01:22:12 +0300 |
commit | 6ba79a251681a765f491db1428a467a0a06a69bd (patch) | |
tree | b3966a041dec08af066126b9da901c6c4fdeaf08 /mysql-test/t/sp-error.test | |
parent | a11caf1e01de600b9212c129903395758dc63378 (diff) | |
download | mariadb-git-6ba79a251681a765f491db1428a467a0a06a69bd.tar.gz |
Bug#13510 "Setting password local variable changes current
password": additional fix, also make sure that a syntax error is
returned for set names="foo" when there is no such variable or no
stored procedure.
mysql-test/r/sp-error.result:
Test results fixed: a new test for Bug#13510
mysql-test/t/sp-error.test:
A new test for Bug#13510 (set names out of an SP)
sql/sql_yacc.yy:
Bug#13510: fix the case when there is no stored procedure or
no 'names' variable declared. Return a syntax error in this case.
Diffstat (limited to 'mysql-test/t/sp-error.test')
-rw-r--r-- | mysql-test/t/sp-error.test | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/mysql-test/t/sp-error.test b/mysql-test/t/sp-error.test index 4cc141fea4b..5057dd0d9f8 100644 --- a/mysql-test/t/sp-error.test +++ b/mysql-test/t/sp-error.test @@ -1233,6 +1233,10 @@ begin select password; end| +# Check that an error message is sent +--error ER_PARSE_ERROR +set names='foo2'| + --error ER_SP_BAD_VAR_SHADOW create procedure bug13510_2() begin |