mirror of
https://github.com/MariaDB/server.git
synced 2025-08-09 22:24:09 +03:00
fix error messages
when a definer for SP/view is wrong - it shold be ER_MALFORMED_DEFINER, not ER_NO_SUCH_USER when one uses current_role as a definer or grantee but there's no current role - it should be ER_INVALID_ROLE not ER_MALFORMED_DEFINER when a non-existent user is specified - it should be ER_NO_SUCH_USER, which should say "The user does not exist", not "Definer does not exist" clarify ER_CANT_CHANGE_TX_CHARACTERISTICS to say what cannot be changed
This commit is contained in:
@@ -28,7 +28,7 @@ COMMIT;
|
||||
# inside a transaction
|
||||
#
|
||||
START TRANSACTION;
|
||||
--error ER_CANT_CHANGE_TX_CHARACTERISTICS
|
||||
--error ER_CANT_SET_IN_TRANSACTION
|
||||
SET TRANSACTION ISOLATION LEVEL SERIALIZABLE;
|
||||
COMMIT;
|
||||
|
||||
@@ -383,8 +383,10 @@ SELECT @@transaction_read_only;
|
||||
|
||||
START TRANSACTION;
|
||||
--echo # Not allowed inside a transaction
|
||||
--error ER_CANT_CHANGE_TX_CHARACTERISTICS
|
||||
--error ER_CANT_SET_IN_TRANSACTION
|
||||
SET TRANSACTION READ ONLY;
|
||||
--error ER_CANT_SET_IN_TRANSACTION
|
||||
SET TRANSACTION READ WRITE;
|
||||
--echo # But these are allowed.
|
||||
SET SESSION TRANSACTION READ ONLY;
|
||||
SET GLOBAL TRANSACTION READ ONLY;
|
||||
|
Reference in New Issue
Block a user