mirror of
https://github.com/MariaDB/server.git
synced 2026-01-06 05:22:24 +03:00
Reviewed fix for bug#37962 also including the revised result files for failing system variable tests.
This commit is contained in:
@@ -36,47 +36,57 @@ SELECT @@global.sync_binlog;
|
||||
65536
|
||||
'#--------------------FN_DYNVARS_168_04-------------------------#'
|
||||
SET @@global.sync_binlog = -1;
|
||||
Warnings:
|
||||
Warning 1292 Truncated incorrect sync_binlog value: '-1'
|
||||
SELECT @@global.sync_binlog;
|
||||
@@global.sync_binlog
|
||||
0
|
||||
SET @@global.sync_binlog = 4294967296;
|
||||
Warnings:
|
||||
Warning 1292 Truncated incorrect sync_binlog value: '4294967296'
|
||||
SELECT @@global.sync_binlog;
|
||||
@@global.sync_binlog
|
||||
0
|
||||
4294967295
|
||||
SET @@global.sync_binlog = 10240022115;
|
||||
Warnings:
|
||||
Warning 1292 Truncated incorrect sync_binlog value: '10240022115'
|
||||
SELECT @@global.sync_binlog;
|
||||
@@global.sync_binlog
|
||||
1650087523
|
||||
4294967295
|
||||
SET @@global.sync_binlog = 10000.01;
|
||||
ERROR 42000: Incorrect argument type to variable 'sync_binlog'
|
||||
SELECT @@global.sync_binlog;
|
||||
@@global.sync_binlog
|
||||
1650087523
|
||||
4294967295
|
||||
SET @@global.sync_binlog = -1024;
|
||||
Warnings:
|
||||
Warning 1292 Truncated incorrect sync_binlog value: '-1024'
|
||||
SELECT @@global.sync_binlog;
|
||||
@@global.sync_binlog
|
||||
0
|
||||
SET @@global.sync_binlog = 42949672950;
|
||||
Warnings:
|
||||
Warning 1292 Truncated incorrect sync_binlog value: '42949672950'
|
||||
SELECT @@global.sync_binlog;
|
||||
@@global.sync_binlog
|
||||
4294967286
|
||||
4294967295
|
||||
'Bug # 34837: Errors are not coming on assigning invalid values to variable';
|
||||
SET @@global.sync_binlog = ON;
|
||||
ERROR 42000: Incorrect argument type to variable 'sync_binlog'
|
||||
SELECT @@global.sync_binlog;
|
||||
@@global.sync_binlog
|
||||
4294967286
|
||||
4294967295
|
||||
SET @@global.sync_binlog = 'test';
|
||||
ERROR 42000: Incorrect argument type to variable 'sync_binlog'
|
||||
SELECT @@global.sync_binlog;
|
||||
@@global.sync_binlog
|
||||
4294967286
|
||||
4294967295
|
||||
'#-------------------FN_DYNVARS_168_05----------------------------#'
|
||||
SET @@session.sync_binlog = 0;
|
||||
ERROR HY000: Variable 'sync_binlog' is a GLOBAL variable and should be set with SET GLOBAL
|
||||
SELECT @@sync_binlog;
|
||||
@@sync_binlog
|
||||
4294967286
|
||||
4294967295
|
||||
'#----------------------FN_DYNVARS_168_06------------------------#'
|
||||
SELECT @@global.sync_binlog = VARIABLE_VALUE
|
||||
FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES
|
||||
@@ -88,7 +98,7 @@ SET sync_binlog = 1;
|
||||
ERROR HY000: Variable 'sync_binlog' is a GLOBAL variable and should be set with SET GLOBAL
|
||||
SELECT @@sync_binlog;
|
||||
@@sync_binlog
|
||||
4294967286
|
||||
4294967295
|
||||
SET local.sync_binlog = 1;
|
||||
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 'sync_binlog = 1' at line 1
|
||||
SELECT local.sync_binlog;
|
||||
|
||||
Reference in New Issue
Block a user