2008-04-10 15:14:28 +02:00
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;
2011-12-12 23:58:40 +01:00
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
2008-04-10 15:14:28 +02:00
'#--------------------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.*
2009-12-22 10:35:56 +01:00
SET @@global.init_connect='set @a="12\034"';
SELECT @@global.init_connect;
@@global.init_connect
set @a="12