mirror of
https://github.com/MariaDB/server.git
synced 2025-08-01 03:47:19 +03:00
Removing redundant tests for "SET (global|local|session).varname"
This is covered in mysql-test/t/variables.test. There is no sense to test this for every individual variables. This is to reduce the coming soon patch for ROW-type routine variables, which will change the error from ER_PARSE_ERROR to a new error "unknown structured variable".
This commit is contained in:
@ -84,12 +84,8 @@ SELECT @@automatic_sp_privileges = @@global.automatic_sp_privileges;
|
||||
'#---------------------FN_DYNVARS_004_10----------------------#'
|
||||
SET automatic_sp_privileges = 1;
|
||||
ERROR HY000: Variable 'automatic_sp_privileges' is a GLOBAL variable and should be set with SET GLOBAL
|
||||
SET local.automatic_sp_privileges = 1;
|
||||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'automatic_sp_privileges = 1' at line 1
|
||||
SELECT local.automatic_sp_privileges;
|
||||
ERROR 42S02: Unknown table 'local' in field list
|
||||
SET global.automatic_sp_privileges = 1;
|
||||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'automatic_sp_privileges = 1' at line 1
|
||||
SELECT global.automatic_sp_privileges;
|
||||
ERROR 42S02: Unknown table 'global' in field list
|
||||
SELECT automatic_sp_privileges = @@session.automatic_sp_privileges;
|
||||
|
Reference in New Issue
Block a user