summaryrefslogtreecommitdiff
path: root/mysql-test/suite/sys_vars/t/binlog_commit_wait_count_basic.test
blob: ebce0da77fea43c3972ab4354127e43982bce0a0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
--source include/not_embedded.inc

SET @save_binlog_commit_wait_count= @@GLOBAL.binlog_commit_wait_count;

SELECT @@GLOBAL.binlog_commit_wait_count as 'must be zero because of default';
--error ER_INCORRECT_GLOBAL_LOCAL_VAR
SELECT @@SESSION.binlog_commit_wait_count  as 'no session var';

SET GLOBAL binlog_commit_wait_count= 0;
SET GLOBAL binlog_commit_wait_count= DEFAULT;
SET GLOBAL binlog_commit_wait_count= 10;
SELECT @@GLOBAL.binlog_commit_wait_count;

SET GLOBAL binlog_commit_wait_count = @save_binlog_commit_wait_count;