2008-04-10 15:14:28 +02:00
SET @start_value = @@global.concurrent_insert;
SELECT @start_value;
@start_value
2009-12-22 10:35:56 +01:00
AUTO
2008-04-10 15:14:28 +02:00
'#--------------------FN_DYNVARS_018_01------------------------#'
SET @@global.concurrent_insert = 0;
SET @@global.concurrent_insert = DEFAULT;
SELECT @@global.concurrent_insert;
@@global.concurrent_insert
2009-12-22 10:35:56 +01:00
AUTO
2008-04-10 15:14:28 +02:00
'#---------------------FN_DYNVARS_018_02-------------------------#'
SET @@global.concurrent_insert = DEFAULT;
SELECT @@global.concurrent_insert = 1;
@@global.concurrent_insert = 1
2009-12-22 10:35:56 +01:00
0
Warnings:
Warning 1292 Truncated incorrect DOUBLE value: 'AUTO'
2008-04-10 15:14:28 +02:00
'#--------------------FN_DYNVARS_018_03------------------------#'
SET @@global.concurrent_insert = 0;
SELECT @@global.concurrent_insert;
@@global.concurrent_insert
2009-12-22 10:35:56 +01:00
NEVER
2008-04-10 15:14:28 +02:00
SET @@global.concurrent_insert = 1;
SELECT @@global.concurrent_insert;
@@global.concurrent_insert
2009-12-22 10:35:56 +01:00
AUTO
2008-04-10 15:14:28 +02:00
SET @@global.concurrent_insert = 2;
SELECT @@global.concurrent_insert;
@@global.concurrent_insert
2009-12-22 10:35:56 +01:00
ALWAYS
SET @@global.concurrent_insert = NEVER;
SELECT @@global.concurrent_insert;
@@global.concurrent_insert
NEVER
SET @@global.concurrent_insert = AUTO;
SELECT @@global.concurrent_insert;
@@global.concurrent_insert
AUTO
SET @@global.concurrent_insert = ALWAYS;
SELECT @@global.concurrent_insert;
@@global.concurrent_insert
ALWAYS
2008-04-10 15:14:28 +02:00
'#--------------------FN_DYNVARS_018_04-------------------------#'
SET @@global.concurrent_insert = -1;
2009-12-22 10:35:56 +01:00
ERROR 42000: Variable 'concurrent_insert' can't be set to the value of '-1'
2008-04-10 15:14:28 +02:00
SET @@global.concurrent_insert = 100;
2009-12-22 10:35:56 +01:00
ERROR 42000: Variable 'concurrent_insert' can't be set to the value of '100'
2008-04-10 15:14:28 +02:00
SET @@global.concurrent_insert = TRUEF;
2009-12-22 10:35:56 +01:00
ERROR 42000: Variable 'concurrent_insert' can't be set to the value of 'TRUEF'
2008-04-10 15:14:28 +02:00
SET @@global.concurrent_insert = TRUE_F;
2009-12-22 10:35:56 +01:00
ERROR 42000: Variable 'concurrent_insert' can't be set to the value of 'TRUE_F'
2008-04-10 15:14:28 +02:00
SET @@global.concurrent_insert = FALSE0;
2009-12-22 10:35:56 +01:00
ERROR 42000: Variable 'concurrent_insert' can't be set to the value of 'FALSE0'
2008-04-10 15:14:28 +02:00
SET @@global.concurrent_insert = OON;
2009-12-22 10:35:56 +01:00
ERROR 42000: Variable 'concurrent_insert' can't be set to the value of 'OON'
2008-04-10 15:14:28 +02:00
SET @@global.concurrent_insert = ONN;
2009-12-22 10:35:56 +01:00
ERROR 42000: Variable 'concurrent_insert' can't be set to the value of 'ONN'
2008-04-10 15:14:28 +02:00
SET @@global.concurrent_insert = OOFF;
2009-12-22 10:35:56 +01:00
ERROR 42000: Variable 'concurrent_insert' can't be set to the value of 'OOFF'
2008-04-10 15:14:28 +02:00
SET @@global.concurrent_insert = 0FF;
2009-12-22 10:35:56 +01:00
ERROR 42000: Variable 'concurrent_insert' can't be set to the value of '0FF'
2008-04-10 15:14:28 +02:00
SET @@global.concurrent_insert = ' ';
2009-12-22 10:35:56 +01:00
ERROR 42000: Variable 'concurrent_insert' can't be set to the value of ' '
2008-04-10 15:14:28 +02:00
SET @@global.concurrent_insert = " ";
2009-12-22 10:35:56 +01:00
ERROR 42000: Variable 'concurrent_insert' can't be set to the value of ' '
2008-04-10 15:14:28 +02:00
SET @@global.concurrent_insert = '';
2009-12-22 10:35:56 +01:00
ERROR 42000: Variable 'concurrent_insert' can't be set to the value of ''
2008-04-10 15:14:28 +02:00
'#-------------------FN_DYNVARS_018_05----------------------------#'
SET @@session.concurrent_insert = 1;
ERROR HY000: Variable 'concurrent_insert' is a GLOBAL variable and should be set with SET GLOBAL
SELECT @@session.concurrent_insert = 1;
ERROR HY000: Variable 'concurrent_insert' is a GLOBAL variable
'#----------------------FN_DYNVARS_018_06------------------------#'
SELECT @@global.concurrent_insert = VARIABLE_VALUE
FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES
WHERE VARIABLE_NAME='concurrent_insert';
@@global.concurrent_insert = VARIABLE_VALUE
1
'#---------------------FN_DYNVARS_018_07----------------------#'
SET @@global.concurrent_insert = OFF;
2009-12-22 10:35:56 +01:00
ERROR 42000: Variable 'concurrent_insert' can't be set to the value of 'OFF'
2008-04-10 15:14:28 +02:00
SET @@global.concurrent_insert = ON;
2009-12-22 10:35:56 +01:00
ERROR 42000: Variable 'concurrent_insert' can't be set to the value of 'ON'
2008-04-10 15:14:28 +02:00
'#---------------------FN_DYNVARS_018_08----------------------#'
SET @@global.concurrent_insert = TRUE;
SELECT @@global.concurrent_insert;
@@global.concurrent_insert
2009-12-22 10:35:56 +01:00
AUTO
2008-04-10 15:14:28 +02:00
SET @@global.concurrent_insert = FALSE;
SELECT @@global.concurrent_insert;
@@global.concurrent_insert
2009-12-22 10:35:56 +01:00
NEVER
2008-04-10 15:14:28 +02:00
'#---------------------FN_DYNVARS_018_09----------------------#'
SET @@global.concurrent_insert = 1;
SELECT @@concurrent_insert = @@global.concurrent_insert;
@@concurrent_insert = @@global.concurrent_insert
1
'#---------------------FN_DYNVARS_018_10----------------------#'
SET concurrent_insert = 1;
ERROR HY000: Variable 'concurrent_insert' is a GLOBAL variable and should be set with SET GLOBAL
SELECT @@concurrent_insert;
@@concurrent_insert
2009-12-22 10:35:56 +01:00
AUTO
2008-04-10 15:14:28 +02:00
SET global.concurrent_insert = 1;
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 'concurrent_insert = 1' at line 1
2008-04-10 15:14:28 +02:00
SELECT global.concurrent_insert;
ERROR 42S02: Unknown table 'global' in field list
SELECT concurrent_insert = @@session.concurrent_insert;
ERROR 42S22: Unknown column 'concurrent_insert' in 'field list'
SET @@global.concurrent_insert = @start_value;
SELECT @@global.concurrent_insert;
@@global.concurrent_insert
2009-12-22 10:35:56 +01:00
AUTO