summaryrefslogtreecommitdiff
path: root/mysql-test/t/ndb_binlog_log_bin.test
blob: b2dbaa797b63ba9fc5720740af09108848b13ceb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
-- source include/have_ndb.inc
-- source include/have_multi_ndb.inc
-- source include/have_binlog_format_row.inc

--disable_warnings
connection server2;
drop table if exists t1,t2,t3;
reset master;
connection server1;
drop table if exists t1,t2,t3;
reset master;
--enable_warnings

# basic SQL_LOG_BIN functionality
# see updates from one thread but not the other
connect (con1,localhost,root,,);
connect (con2,localhost,root,,);
# do some stuff with SQL_LOG_BIN=0
connection con2;
set SQL_LOG_BIN=0;
create database mysqltest;
use mysqltest;
create table t1 (a int key, b int) engine=ndb;
create table t2 (a int key, b int) engine=ndb;
insert into t1 values (1,1);
alter table t1 add c int;
# we should not see it in the local server
-- source include/show_binlog_events2.inc
reset master;
# we should not see it in another server
connection server2;
use mysqltest;
insert into t2 values (1,1);
-- source include/show_binlog_events2.inc
reset master;
# but if you do stuff in "default" client setting
connection con1;
use mysqltest;
drop table t1;
drop table t2;
create table t1 (d int key, e int) engine=ndb;
create table t2 (d int key, e int) engine=ndb;
insert into t1 values (1,1);
-- source include/show_binlog_events2.inc
# and in another server
connection server2;
use mysqltest;
insert into t2 values (1,1);
-- source include/show_binlog_events2.inc
drop database mysqltest;