~mysql/mysql-server/mysql-6.0

« back to all changes in this revision

Viewing changes to mysql-test/suite/sys_vars/r/sync_binlog_basic_32.result

  • Committer: Alexander Nozdrin
  • Date: 2009-04-24 10:04:14 UTC
  • mfrom: (2651.1.45 mysql-6.0)
  • Revision ID: alik@sun.com-20090424100414-92m55kfywauveb56
PullĀ fromĀ 6.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
36
36
65536
37
37
'#--------------------FN_DYNVARS_168_04-------------------------#'
38
38
SET @@global.sync_binlog = -1;
 
39
Warnings:
 
40
Warning 1292    Truncated incorrect sync_binlog value: '-1'
39
41
SELECT @@global.sync_binlog;
40
42
@@global.sync_binlog
41
43
0
42
44
SET @@global.sync_binlog = 4294967296;
 
45
Warnings:
 
46
Warning 1292    Truncated incorrect sync_binlog value: '4294967296'
43
47
SELECT @@global.sync_binlog;
44
48
@@global.sync_binlog
45
 
0
 
49
4294967295
46
50
SET @@global.sync_binlog = 10240022115;
 
51
Warnings:
 
52
Warning 1292    Truncated incorrect sync_binlog value: '10240022115'
47
53
SELECT @@global.sync_binlog;
48
54
@@global.sync_binlog
49
 
1650087523
 
55
4294967295
50
56
SET @@global.sync_binlog = 10000.01;
51
57
ERROR 42000: Incorrect argument type to variable 'sync_binlog'
52
58
SELECT @@global.sync_binlog;
53
59
@@global.sync_binlog
54
 
1650087523
 
60
4294967295
55
61
SET @@global.sync_binlog = -1024;
 
62
Warnings:
 
63
Warning 1292    Truncated incorrect sync_binlog value: '-1024'
56
64
SELECT @@global.sync_binlog;
57
65
@@global.sync_binlog
58
66
0
59
67
SET @@global.sync_binlog = 42949672950;
 
68
Warnings:
 
69
Warning 1292    Truncated incorrect sync_binlog value: '42949672950'
60
70
SELECT @@global.sync_binlog;
61
71
@@global.sync_binlog
62
 
4294967286
 
72
4294967295
63
73
'Bug # 34837: Errors are not coming on assigning invalid values to variable';
64
74
SET @@global.sync_binlog = ON;
65
75
ERROR 42000: Incorrect argument type to variable 'sync_binlog'
66
76
SELECT @@global.sync_binlog;
67
77
@@global.sync_binlog
68
 
4294967286
 
78
4294967295
69
79
SET @@global.sync_binlog = 'test';
70
80
ERROR 42000: Incorrect argument type to variable 'sync_binlog'
71
81
SELECT @@global.sync_binlog;
72
82
@@global.sync_binlog
73
 
4294967286
 
83
4294967295
74
84
'#-------------------FN_DYNVARS_168_05----------------------------#'
75
85
SET @@session.sync_binlog = 0;
76
86
ERROR HY000: Variable 'sync_binlog' is a GLOBAL variable and should be set with SET GLOBAL
77
87
SELECT @@sync_binlog;
78
88
@@sync_binlog
79
 
4294967286
 
89
4294967295
80
90
'#----------------------FN_DYNVARS_168_06------------------------#'
81
91
SELECT @@global.sync_binlog = VARIABLE_VALUE
82
92
FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES
88
98
ERROR HY000: Variable 'sync_binlog' is a GLOBAL variable and should be set with SET GLOBAL
89
99
SELECT @@sync_binlog;
90
100
@@sync_binlog
91
 
4294967286
 
101
4294967295
92
102
SET local.sync_binlog = 1;
93
103
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
94
104
SELECT local.sync_binlog;