summaryrefslogtreecommitdiff
path: root/storage/rocksdb/mysql-test/rocksdb/r/mariadb_misc_binlog.result
blob: c37ab9461af8e1e193699160e6670971d4f161f1 (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
create table t1 (a int) engine=rocksdb;
# Should have binlog ON
select @@log_bin;
@@log_bin
1
set binlog_format='row';
# Should succeed
optimize table t1;
Table	Op	Msg_type	Msg_text
test.t1	optimize	status	OK
#
# MDEV-13602: rocksdb.index_merge_rocksdb2 failed in buildbot
#
lock tables t1 write;
insert into t1 values(1);
unlock tables;
set @tmp_bf= @@binlog_format;
set binlog_format='STATEMENT';
lock tables t1 write;
insert into t1 values(1);
ERROR HY000: Cannot execute statement: impossible to write to binary log since BINLOG_FORMAT = STATEMENT and at least one table uses a storage engine limited to row-based logging.
unlock tables;
set @@binlog_format=@tmp_bf;
drop table t1;
#
# MDEV-17045: MyRocks tables cannot be updated when binlog_format=MIXED.
#
set @tmp_bf= @@binlog_format;
set binlog_format='MIXED';
create table t1 (pk int primary key) engine=rocksdb;
insert into t1 values (1);
drop table t1;
set @@binlog_format=@tmp_bf;