mirror of
https://github.com/MariaDB/server.git
synced 2025-09-02 09:41:40 +03:00
Fixes for bug#36522.
BitKeeper/etc/ignore: Added mysql-test/bug36522-64.tar mysql-test/bug36522.tar mysql-test/t.log mysql-test/tps.log to the ignore list
This commit is contained in:
108
mysql-test/r/max_write_lock_count_basic_32.result
Normal file
108
mysql-test/r/max_write_lock_count_basic_32.result
Normal file
@@ -0,0 +1,108 @@
|
||||
SET @start_global_value = @@global.max_write_lock_count;
|
||||
SELECT @start_global_value;
|
||||
@start_global_value
|
||||
4294967295
|
||||
'#--------------------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
|
||||
4294967295
|
||||
'#--------------------FN_DYNVARS_088_02-------------------------#'
|
||||
SET @@global.max_write_lock_count = DEFAULT;
|
||||
SELECT @@global.max_write_lock_count = 4294967295;
|
||||
@@global.max_write_lock_count = 4294967295
|
||||
1
|
||||
'#--------------------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;
|
||||
Warnings:
|
||||
Warning 1292 Truncated incorrect max_write_lock_count value: '4294967296'
|
||||
SELECT @@global.max_write_lock_count;
|
||||
@@global.max_write_lock_count
|
||||
4294967295
|
||||
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;
|
||||
Warnings:
|
||||
Warning 1292 Truncated incorrect max_write_lock_count value: '429496729500'
|
||||
SELECT @@global.max_write_lock_count;
|
||||
@@global.max_write_lock_count
|
||||
4294967295
|
||||
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
|
||||
4294967295
|
||||
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
|
||||
4294967295
|
||||
'#------------------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
|
||||
4294967295
|
Reference in New Issue
Block a user