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:
@@ -13,7 +13,7 @@ INSERT INTO t1 VALUES (1),(2);
|
||||
COMMIT;
|
||||
START TRANSACTION;
|
||||
SET TRANSACTION ISOLATION LEVEL SERIALIZABLE;
|
||||
ERROR 25001: Transaction characteristics can't be changed while a transaction is in progress
|
||||
ERROR 25001: TRANSACTION ISOLATION can't be set while a transaction is in progress
|
||||
COMMIT;
|
||||
SET @@autocommit=0;
|
||||
COMMIT;
|
||||
@@ -328,7 +328,9 @@ SELECT @@transaction_read_only;
|
||||
START TRANSACTION;
|
||||
# Not allowed inside a transaction
|
||||
SET TRANSACTION READ ONLY;
|
||||
ERROR 25001: Transaction characteristics can't be changed while a transaction is in progress
|
||||
ERROR 25001: TRANSACTION READ ONLY can't be set while a transaction is in progress
|
||||
SET TRANSACTION READ WRITE;
|
||||
ERROR 25001: TRANSACTION READ WRITE can't be set while a transaction is in progress
|
||||
# But these are allowed.
|
||||
SET SESSION TRANSACTION READ ONLY;
|
||||
SET GLOBAL TRANSACTION READ ONLY;
|
||||
|
Reference in New Issue
Block a user