mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
MDEV-33386 Wrong error message on GRANT .. ON PACKAGE no_such_package ..
When displaying the ER_SP_DOES_NOT_EXIST error, use Sp_handler::type_lex_cstring() to the the underlying object type: - PROCEDURE - FUNCTION - PACKAGE - PACKAGE BODY instead of hard-coded "FUNCTION or PROCEDURE".
This commit is contained in:
@ -1,3 +1,6 @@
|
||||
#
|
||||
# Start of 11.4 tests
|
||||
#
|
||||
CREATE DATABASE db1;
|
||||
CREATE USER u1@localhost IDENTIFIED BY '';
|
||||
GRANT SELECT ON db1.* TO u1@localhost;
|
||||
@ -307,3 +310,13 @@ SESSION_USER() CURRENT_USER() msg
|
||||
root@localhost root@localhost p1.p1
|
||||
DROP PACKAGE p1;
|
||||
DROP USER xxx@localhost;
|
||||
#
|
||||
# MDEV-33386 Wrong error message on `GRANT .. ON PACKAGE no_such_package ..`
|
||||
#
|
||||
GRANT EXECUTE ON PACKAGE no_such_package TO PUBLIC;
|
||||
ERROR 42000: PACKAGE no_such_package does not exist
|
||||
GRANT EXECUTE ON PACKAGE BODY no_such_package TO PUBLIC;
|
||||
ERROR 42000: PACKAGE BODY no_such_package does not exist
|
||||
#
|
||||
# End of 11.4 tests
|
||||
#
|
||||
|
Reference in New Issue
Block a user