mirror of
https://github.com/MariaDB/server.git
synced 2026-01-06 05:22:24 +03:00
Fixed BUG#3339: Stored procedures in nonexistent schemas are uncallable.
Also added some related security tests and corrected related error messages. mysql-test/r/sp-error.result: New test case for BUG#3339, and updated results for other modified error messages. mysql-test/r/sp-security.result: Added tests for creating procedures in another database with and wihout access rights. mysql-test/t/sp-error.test: New test case for BUG#3339. mysql-test/t/sp-security.test: Added tests for creating procedures in another database with and wihout access rights. sql/sp.cc: Check existance (and access rights) for database when creating a stored routine. sql/sp.h: New error return value for sp_create_* functions, for non existing database. sql/sql_parse.cc: Check error return for create stored routine (non existing database), and corrected the error output for some other commands. (Use qualified name, not just name.)
This commit is contained in:
@@ -517,7 +517,6 @@ end case|
|
||||
call bug3287(2)|
|
||||
drop procedure bug3287|
|
||||
|
||||
|
||||
#
|
||||
# BUG#3297
|
||||
#
|
||||
@@ -548,6 +547,13 @@ select @x|
|
||||
drop procedure bug3279|
|
||||
drop table t3|
|
||||
|
||||
#
|
||||
# BUG#3339
|
||||
#
|
||||
--error 1049
|
||||
create procedure nodb.bug3339() begin end|
|
||||
|
||||
|
||||
drop table t1|
|
||||
|
||||
delimiter ;|
|
||||
|
||||
Reference in New Issue
Block a user