mariadb/mysql-test/r/max_write_lock_count_basic_64.result
hhunger@hh-nb.hungers 313e6c7757 Fixes for bug#36522.
2008-05-08 20:13:39 +02:00

104 lines
3.8 KiB
Text

SET @start_global_value = @@global.max_write_lock_count;
SELECT @start_global_value;
@start_global_value
18446744073709551615
'#--------------------FN_DYNVARS_088_01-------------------------#'
SET @@global.max_write_lock_count = 1000;
SET @@global.max_write_lock_count = DEFAULT;
SELECT @@global.max_write_lock_count;
@@global.max_write_lock_count
18446744073709551615
'#--------------------FN_DYNVARS_088_02-------------------------#'
SET @@global.max_write_lock_count = DEFAULT;
SELECT @@global.max_write_lock_count = 4294967295;
@@global.max_write_lock_count = 4294967295
0
'#--------------------FN_DYNVARS_088_03-------------------------#'
SET @@global.max_write_lock_count = 1;
SELECT @@global.max_write_lock_count;
@@global.max_write_lock_count
1
SET @@global.max_write_lock_count = 2;
SELECT @@global.max_write_lock_count;
@@global.max_write_lock_count
2
SET @@global.max_write_lock_count = 65536;
SELECT @@global.max_write_lock_count;
@@global.max_write_lock_count
65536
SET @@global.max_write_lock_count = 4294967295;
SELECT @@global.max_write_lock_count;
@@global.max_write_lock_count
4294967295
SET @@global.max_write_lock_count = 4294967294;
SELECT @@global.max_write_lock_count;
@@global.max_write_lock_count
4294967294
'#------------------FN_DYNVARS_088_04-----------------------#'
SET @@global.max_write_lock_count = -1024;
Warnings:
Warning 1292 Truncated incorrect max_write_lock_count value: '0'
SELECT @@global.max_write_lock_count;
@@global.max_write_lock_count
1
SET @@global.max_write_lock_count = 4294967296;
SELECT @@global.max_write_lock_count;
@@global.max_write_lock_count
4294967296
SET @@global.max_write_lock_count = -1;
Warnings:
Warning 1292 Truncated incorrect max_write_lock_count value: '0'
SELECT @@global.max_write_lock_count;
@@global.max_write_lock_count
1
SET @@global.max_write_lock_count = 429496729500;
SELECT @@global.max_write_lock_count;
@@global.max_write_lock_count
429496729500
SET @@global.max_write_lock_count = 65530.34.;
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '.' at line 1
SELECT @@global.max_write_lock_count;
@@global.max_write_lock_count
429496729500
SET @@global.max_write_lock_count = test;
ERROR 42000: Incorrect argument type to variable 'max_write_lock_count'
SELECT @@global.max_write_lock_count;
@@global.max_write_lock_count
429496729500
'#------------------FN_DYNVARS_088_05-----------------------#'
SELECT @@global.max_write_lock_count = VARIABLE_VALUE
FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES
WHERE VARIABLE_NAME='max_write_lock_count';
@@global.max_write_lock_count = VARIABLE_VALUE
1
'#------------------FN_DYNVARS_088_06-----------------------#'
SET @@global.max_write_lock_count = TRUE;
SELECT @@global.max_write_lock_count;
@@global.max_write_lock_count
1
SET @@global.max_write_lock_count = FALSE;
Warnings:
Warning 1292 Truncated incorrect max_write_lock_count value: '0'
SELECT @@global.max_write_lock_count;
@@global.max_write_lock_count
1
'#---------------------FN_DYNVARS_088_07----------------------#'
SET @@global.max_write_lock_count = 20;
SELECT @@max_write_lock_count = @@global.max_write_lock_count;
@@max_write_lock_count = @@global.max_write_lock_count
1
'#---------------------FN_DYNVARS_088_08----------------------#'
SET @@global.max_write_lock_count = 102;
SELECT @@max_write_lock_count;
@@max_write_lock_count
102
SELECT local.max_write_lock_count;
ERROR 42S02: Unknown table 'local' in field list
SELECT global.max_write_lock_count;
ERROR 42S02: Unknown table 'global' in field list
SELECT max_write_lock_count = @@global.max_write_lock_count;
ERROR 42S22: Unknown column 'max_write_lock_count' in 'field list'
SET @@global.max_write_lock_count = @start_global_value;
SELECT @@global.max_write_lock_count;
@@global.max_write_lock_count
18446744073709551615