mirror of
https://github.com/MariaDB/server.git
synced 2025-01-18 13:02:28 +01:00
2ccf247e93
* rename all debugging related command-line options and variables to start from "debug-", and made them all OFF by default. * replace "MySQL" with "MariaDB" in error messages * "Cast ... converted ... integer to it's ... complement" is now a note, not a warning * @@query_cache_strip_comments now has a session scope, not global.
108 lines
3.8 KiB
Text
108 lines
3.8 KiB
Text
SET @global_start_value = @@global.init_connect;
|
||
SELECT @global_start_value AS INIT_VALUE;
|
||
INIT_VALUE
|
||
|
||
'#--------------------FN_DYNVARS_036_01------------------#'
|
||
SELECT init_connect;
|
||
ERROR 42S22: Unknown column 'init_connect' in 'field list'
|
||
SELECT @@init_connect;
|
||
@@init_connect
|
||
|
||
SET @@global.init_connect='SET autocomit=0';
|
||
SELECT @@global.init_connect;
|
||
@@global.init_connect
|
||
SET autocomit=0
|
||
SET global init_connect='SET autocomit=0';
|
||
SELECT global init_connect;
|
||
ERROR 42S22: Unknown column 'global' in 'field list'
|
||
SELECT @@global init_connect;
|
||
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 'init_connect' at line 1
|
||
'#--------------------FN_DYNVARS_036_02-------------------------#'
|
||
SET @@global.init_connect = 'SET join_buffer_size=8200';
|
||
SET @@global.init_connect = DEFAULT;
|
||
SELECT @@global.init_connect;
|
||
@@global.init_connect
|
||
|
||
'#--------------------FN_DYNVARS_036_03-------------------------#'
|
||
SET @@session.init_connect = '';
|
||
ERROR HY000: Variable 'init_connect' is a GLOBAL variable and should be set with SET GLOBAL
|
||
SET @@init_connect = '';
|
||
ERROR HY000: Variable 'init_connect' is a GLOBAL variable and should be set with SET GLOBAL
|
||
SELECT @@session.init_connect;
|
||
ERROR HY000: Variable 'init_connect' is a GLOBAL variable
|
||
SELECT @@local.init_connect;
|
||
ERROR HY000: Variable 'init_connect' is a GLOBAL variable
|
||
'#--------------------FN_DYNVARS_036_04-------------------------#'
|
||
SET @@global.init_connect="";
|
||
SELECT @@global.init_connect;
|
||
@@global.init_connect
|
||
|
||
SET @@global.init_connect='SELECT 1,"abc"';
|
||
SELECT @@global.init_connect;
|
||
@@global.init_connect
|
||
SELECT 1,"abc"
|
||
SET @@global.init_connect='SET @yoursql="mysql"';
|
||
SELECT @@global.init_connect;
|
||
@@global.init_connect
|
||
SET @yoursql="mysql"
|
||
SET @@global.init_connect="SET autocomit=0;REVOKE ALL ON INFORMATION_SCHEMA.*";
|
||
SELECT @@global.init_connect;
|
||
@@global.init_connect
|
||
SET autocomit=0;REVOKE ALL ON INFORMATION_SCHEMA.*
|
||
SET @@global.init_connect='set @a="12\034"';
|
||
SELECT @@global.init_connect;
|
||
@@global.init_connect
|
||
set @a="12 |