WL#3303 (RBR: Engine-controlled logging format):

Test case fixes.
parent 4ecdd55b
...@@ -35,9 +35,7 @@ ERROR HY000: Binary logging not possible. Message: Row-based format required for ...@@ -35,9 +35,7 @@ ERROR HY000: Binary logging not possible. Message: Row-based format required for
UPDATE t1m, t1n SET m = 2, e = 3 WHERE n = f; UPDATE t1m, t1n SET m = 2, e = 3 WHERE n = f;
UPDATE t1n, t1b SET e = 2, b = 3 WHERE f = c; UPDATE t1n, t1b SET e = 2, b = 3 WHERE f = c;
ERROR HY000: Binary logging not possible. Message: Statement cannot be logged to the binary log in row-based nor statement-based format ERROR HY000: Binary logging not possible. Message: Statement cannot be logged to the binary log in row-based nor statement-based format
TRUNCATE t1m; DROP TABLE t1m, t1b, t1n;
TRUNCATE t1b;
TRUNCATE t1n;
show binlog events from <binlog_start>; show binlog events from <binlog_start>;
Log_name Pos Event_type Server_id End_log_pos Info Log_name Pos Event_type Server_id End_log_pos Info
master-bin.000001 # Query # # use `test`; CREATE TABLE t1m (m INT, n INT) ENGINE=MYISAM master-bin.000001 # Query # # use `test`; CREATE TABLE t1m (m INT, n INT) ENGINE=MYISAM
...@@ -72,8 +70,6 @@ master-bin.000001 # Write_rows # # table_id: # flags: STMT_END_F ...@@ -72,8 +70,6 @@ master-bin.000001 # Write_rows # # table_id: # flags: STMT_END_F
master-bin.000001 # Table_map # # table_id: # (test.t1m) master-bin.000001 # Table_map # # table_id: # (test.t1m)
master-bin.000001 # Table_map # # table_id: # (test.t1n) master-bin.000001 # Table_map # # table_id: # (test.t1n)
master-bin.000001 # Update_rows # # table_id: # flags: STMT_END_F master-bin.000001 # Update_rows # # table_id: # flags: STMT_END_F
master-bin.000001 # Query # # use `test`; TRUNCATE t1m
master-bin.000001 # Query # # use `test`; TRUNCATE t1b
master-bin.000001 # Query # # BEGIN master-bin.000001 # Query # # BEGIN
master-bin.000001 # Table_map # # table_id: # (test.t1n) master-bin.000001 # Table_map # # table_id: # (test.t1n)
master-bin.000001 # Table_map # # table_id: # (mysql.ndb_apply_status) master-bin.000001 # Table_map # # table_id: # (mysql.ndb_apply_status)
...@@ -83,5 +79,4 @@ master-bin.000001 # Write_rows # # table_id: # ...@@ -83,5 +79,4 @@ master-bin.000001 # Write_rows # # table_id: #
master-bin.000001 # Update_rows # # table_id: # master-bin.000001 # Update_rows # # table_id: #
master-bin.000001 # Update_rows # # table_id: # flags: STMT_END_F master-bin.000001 # Update_rows # # table_id: # flags: STMT_END_F
master-bin.000001 # Query # # COMMIT master-bin.000001 # Query # # COMMIT
master-bin.000001 # Query # # use `test`; TRUNCATE t1n master-bin.000001 # Query # # use `test`; DROP TABLE t1m, t1b, t1n
DROP TABLE t1m, t1b, t1n;
...@@ -8,6 +8,9 @@ create table t1 (a int key, b int) engine innodb; ...@@ -8,6 +8,9 @@ create table t1 (a int key, b int) engine innodb;
create table t2 (a int key, b int) engine innodb; create table t2 (a int key, b int) engine innodb;
alter table t1 engine ndb; alter table t1 engine ndb;
alter table t2 engine ndb; alter table t2 engine ndb;
STOP SLAVE;
SET GLOBAL BINLOG_FORMAT=MIXED;
START SLAVE;
insert into t1 values (1,2); insert into t1 values (1,2);
select @start_pos:=start_pos, @end_pos:=end_pos from mysql.ndb_apply_status; select @start_pos:=start_pos, @end_pos:=end_pos from mysql.ndb_apply_status;
@start_pos:=start_pos @end_pos:=end_pos @start_pos:=start_pos @end_pos:=end_pos
......
source include/have_blackhole.inc; source include/have_blackhole.inc;
source include/have_ndb.inc; source include/have_ndb.inc;
source include/have_binlog_format_mixed_or_row.inc;
CREATE TABLE t1m (m INT, n INT) ENGINE=MYISAM; CREATE TABLE t1m (m INT, n INT) ENGINE=MYISAM;
CREATE TABLE t1b (b INT, c INT) ENGINE=BLACKHOLE; CREATE TABLE t1b (b INT, c INT) ENGINE=BLACKHOLE;
...@@ -50,10 +51,6 @@ UPDATE t1m, t1n SET m = 2, e = 3 WHERE n = f; ...@@ -50,10 +51,6 @@ UPDATE t1m, t1n SET m = 2, e = 3 WHERE n = f;
error ER_BINLOG_LOGGING_IMPOSSIBLE; error ER_BINLOG_LOGGING_IMPOSSIBLE;
UPDATE t1n, t1b SET e = 2, b = 3 WHERE f = c; UPDATE t1n, t1b SET e = 2, b = 3 WHERE f = c;
TRUNCATE t1m; DROP TABLE t1m, t1b, t1n;
TRUNCATE t1b;
TRUNCATE t1n;
source include/show_binlog_events.inc; source include/show_binlog_events.inc;
DROP TABLE t1m, t1b, t1n;
--source include/have_ndb.inc --source include/have_ndb.inc
-- source include/have_binlog_format_mixed_or_row.inc;
let $engine_type=ndbcluster; let $engine_type=ndbcluster;
--source include/loaddata_autocom.inc --source include/loaddata_autocom.inc
-- source include/have_ndb.inc -- source include/have_ndb.inc
-- source include/have_binlog_format_row.inc
-- source include/have_multi_ndb.inc -- source include/have_multi_ndb.inc
-- source include/not_embedded.inc -- source include/not_embedded.inc
......
-- source include/have_ndb.inc -- source include/have_ndb.inc
-- source include/have_binlog_format_row.inc
-- source include/have_multi_ndb.inc -- source include/have_multi_ndb.inc
-- source include/not_embedded.inc -- source include/not_embedded.inc
......
-- source include/have_ndb.inc -- source include/have_ndb.inc
-- source include/have_binlog_format_row.inc
-- source include/have_multi_ndb.inc -- source include/have_multi_ndb.inc
-- source include/not_embedded.inc -- source include/not_embedded.inc
......
-- source include/have_ndb.inc -- source include/have_ndb.inc
-- source include/have_binlog_format_row.inc
-- source include/not_embedded.inc -- source include/not_embedded.inc
--disable_warnings --disable_warnings
......
-- source include/have_ndb.inc -- source include/have_ndb.inc
-- source include/have_binlog_format_row.inc
-- source include/not_embedded.inc -- source include/not_embedded.inc
# #
......
-- source include/have_ndb.inc -- source include/have_ndb.inc
-- source include/have_binlog_format_row.inc
-- source include/have_multi_ndb.inc -- source include/have_multi_ndb.inc
-- source include/ndb_default_cluster.inc -- source include/ndb_default_cluster.inc
-- source include/not_embedded.inc -- source include/not_embedded.inc
......
-- source include/have_ndb.inc -- source include/have_ndb.inc
-- source include/have_binlog_format_row.inc
-- source include/not_embedded.inc -- source include/not_embedded.inc
--disable_warnings --disable_warnings
......
-- source include/have_ndb.inc -- source include/have_ndb.inc
-- source include/have_binlog_format_row.inc
-- source include/have_multi_ndb.inc -- source include/have_multi_ndb.inc
-- source include/have_binlog_format_row.inc -- source include/have_binlog_format_row.inc
......
-- source include/have_ndb.inc -- source include/have_ndb.inc
-- source include/have_binlog_format_row.inc
-- source include/have_multi_ndb.inc -- source include/have_multi_ndb.inc
-- source include/have_binlog_format_row.inc -- source include/have_binlog_format_row.inc
......
-- source include/have_ndb.inc -- source include/have_ndb.inc
-- source include/have_binlog_format_row.inc
-- source include/not_embedded.inc -- source include/not_embedded.inc
--disable_warnings --disable_warnings
......
--source include/have_ndb.inc --source include/have_ndb.inc
-- source include/have_binlog_format_row.inc
-- source include/not_embedded.inc -- source include/not_embedded.inc
--disable_warnings --disable_warnings
......
--source include/have_ndb.inc --source include/have_ndb.inc
-- source include/have_binlog_format_row.inc
-- source include/not_embedded.inc -- source include/not_embedded.inc
--disable_query_log --disable_query_log
......
-- source include/have_query_cache.inc -- source include/have_query_cache.inc
-- source include/have_binlog_format_row.inc
-- source include/have_ndb.inc -- source include/have_ndb.inc
-- source include/not_embedded.inc -- source include/not_embedded.inc
......
-- source include/have_query_cache.inc -- source include/have_query_cache.inc
-- source include/have_binlog_format_row.inc
-- source include/have_ndb.inc -- source include/have_ndb.inc
-- source include/not_embedded.inc -- source include/not_embedded.inc
......
-- source include/have_query_cache.inc -- source include/have_query_cache.inc
-- source include/have_binlog_format_row.inc
-- source include/have_ndb.inc -- source include/have_ndb.inc
-- source include/have_multi_ndb.inc -- source include/have_multi_ndb.inc
-- source include/not_embedded.inc -- source include/not_embedded.inc
......
-- source include/have_query_cache.inc -- source include/have_query_cache.inc
-- source include/have_binlog_format_row.inc
-- source include/have_ndb.inc -- source include/have_ndb.inc
-- source include/have_multi_ndb.inc -- source include/have_multi_ndb.inc
-- source include/not_embedded.inc -- source include/not_embedded.inc
......
--source include/have_ndb.inc --source include/have_ndb.inc
-- source include/have_binlog_format_row.inc
-- source include/not_embedded.inc -- source include/not_embedded.inc
--disable_warnings --disable_warnings
......
-- source include/have_ndb.inc -- source include/have_ndb.inc
-- source include/have_binlog_format_row.inc
-- source include/not_embedded.inc -- source include/not_embedded.inc
--disable_warnings --disable_warnings
......
-- source include/have_ndb.inc -- source include/have_ndb.inc
-- source include/have_binlog_format_row.inc
-- source include/ndb_default_cluster.inc -- source include/ndb_default_cluster.inc
-- source include/not_embedded.inc -- source include/not_embedded.inc
......
-- source include/have_ndb.inc -- source include/have_ndb.inc
-- source include/have_binlog_format_row.inc
-- source include/ndb_default_cluster.inc -- source include/ndb_default_cluster.inc
-- source include/not_embedded.inc -- source include/not_embedded.inc
......
-- source include/have_ndb.inc -- source include/have_ndb.inc
-- source include/have_binlog_format_row.inc
-- source include/not_embedded.inc -- source include/not_embedded.inc
--disable_warnings --disable_warnings
......
-- source include/have_ndb.inc -- source include/have_ndb.inc
-- source include/have_binlog_format_row.inc
-- source include/not_embedded.inc -- source include/not_embedded.inc
--disable_warnings --disable_warnings
......
...@@ -40,6 +40,7 @@ ...@@ -40,6 +40,7 @@
############################################################## ##############################################################
-- source include/have_ndb.inc -- source include/have_ndb.inc
-- source include/have_binlog_format_row.inc
-- source include/have_innodb.inc -- source include/have_innodb.inc
-- source include/not_embedded.inc -- source include/not_embedded.inc
......
...@@ -5,6 +5,7 @@ ...@@ -5,6 +5,7 @@
######################################## ########################################
-- source include/have_ndb.inc -- source include/have_ndb.inc
-- source include/have_binlog_format_row.inc
-- source include/ndb_default_cluster.inc -- source include/ndb_default_cluster.inc
-- source include/not_embedded.inc -- source include/not_embedded.inc
......
...@@ -13,6 +13,7 @@ ...@@ -13,6 +13,7 @@
################################# #################################
-- source include/have_ndb.inc -- source include/have_ndb.inc
-- source include/have_binlog_format_row.inc
--disable_warnings --disable_warnings
DROP TABLE IF EXISTS t1; DROP TABLE IF EXISTS t1;
......
...@@ -27,6 +27,7 @@ ...@@ -27,6 +27,7 @@
-- source include/have_ndb.inc -- source include/have_ndb.inc
-- source include/have_binlog_format_row.inc
--disable_warnings --disable_warnings
DROP TABLE IF EXISTS t1; DROP TABLE IF EXISTS t1;
......
...@@ -6,6 +6,7 @@ ...@@ -6,6 +6,7 @@
######################################## ########################################
-- source include/have_ndb.inc -- source include/have_ndb.inc
-- source include/have_binlog_format_row.inc
--disable_warnings --disable_warnings
DROP TABLE IF EXISTS test.t1; DROP TABLE IF EXISTS test.t1;
......
-- source include/have_ndb.inc -- source include/have_ndb.inc
-- source include/have_binlog_format_row.inc
--disable_warnings --disable_warnings
DROP TABLE IF EXISTS t1, t2, t3; DROP TABLE IF EXISTS t1, t2, t3;
......
...@@ -26,6 +26,7 @@ ...@@ -26,6 +26,7 @@
# gives a better idea of what the test is about # gives a better idea of what the test is about
########################################################### ###########################################################
-- source include/have_ndb.inc -- source include/have_ndb.inc
-- source include/have_binlog_format_row.inc
--disable_warnings --disable_warnings
DROP TABLE IF EXISTS test.t1; DROP TABLE IF EXISTS test.t1;
......
--source include/have_ndb.inc --source include/have_ndb.inc
-- source include/have_binlog_format_row.inc
SET storage_engine=ndbcluster; SET storage_engine=ndbcluster;
--source include/gis_generic.inc --source include/gis_generic.inc
set engine_condition_pushdown = on; set engine_condition_pushdown = on;
......
-- source include/have_ndb.inc -- source include/have_ndb.inc
-- source include/have_binlog_format_row.inc
-- source include/not_embedded.inc -- source include/not_embedded.inc
--disable_warnings --disable_warnings
......
-- source include/have_ndb.inc -- source include/have_ndb.inc
-- source include/have_binlog_format_row.inc
-- source include/not_embedded.inc -- source include/not_embedded.inc
--disable_warnings --disable_warnings
......
-- source include/have_ndb.inc -- source include/have_ndb.inc
-- source include/have_binlog_format_row.inc
-- source include/not_embedded.inc -- source include/not_embedded.inc
--disable_warnings --disable_warnings
......
-- source include/have_ndb.inc -- source include/have_ndb.inc
-- source include/have_binlog_format_row.inc
-- source include/not_embedded.inc -- source include/not_embedded.inc
--disable_warnings --disable_warnings
......
-- source include/have_ndb.inc -- source include/have_ndb.inc
-- source include/have_binlog_format_row.inc
-- source include/not_embedded.inc -- source include/not_embedded.inc
--disable_warnings --disable_warnings
......
-- source include/have_ndb.inc -- source include/have_ndb.inc
-- source include/have_binlog_format_row.inc
-- source include/not_embedded.inc -- source include/not_embedded.inc
--disable_warnings --disable_warnings
......
-- source include/have_ndb.inc -- source include/have_ndb.inc
-- source include/have_binlog_format_row.inc
-- source include/not_embedded.inc -- source include/not_embedded.inc
connect (con1,localhost,root,,); connect (con1,localhost,root,,);
......
-- source include/have_ndb.inc -- source include/have_ndb.inc
-- source include/have_binlog_format_row.inc
-- source include/not_embedded.inc -- source include/not_embedded.inc
--disable_warnings --disable_warnings
......
-- source include/have_ndb.inc -- source include/have_ndb.inc
-- source include/have_multi_ndb.inc -- source include/have_multi_ndb.inc
-- source include/have_binlog_format_row.inc
-- source include/not_embedded.inc -- source include/not_embedded.inc
--disable_warnings --disable_warnings
......
-- source include/have_ndb.inc -- source include/have_ndb.inc
-- source include/have_binlog_format_row.inc
#--disable_abort_on_error #--disable_abort_on_error
# #
# Simple test for the partition storage engine # Simple test for the partition storage engine
......
-- source include/have_ndb.inc -- source include/have_ndb.inc
-- source include/have_binlog_format_row.inc
--disable_warnings --disable_warnings
DROP TABLE IF EXISTS t1; DROP TABLE IF EXISTS t1;
......
--source include/have_ndb.inc --source include/have_ndb.inc
-- source include/have_binlog_format_row.inc
# #
# Simple test for the partition storage engine # Simple test for the partition storage engine
# Focuses on range partitioning tests # Focuses on range partitioning tests
......
-- source include/have_ndb.inc -- source include/have_ndb.inc
-- source include/have_binlog_format_row.inc
#--disable_abort_on_error #--disable_abort_on_error
# #
# Simple test for the partition storage engine # Simple test for the partition storage engine
......
-- source include/have_ndb.inc -- source include/have_ndb.inc
-- source include/have_binlog_format_row.inc
-- source include/not_embedded.inc -- source include/not_embedded.inc
--disable_warnings --disable_warnings
......
-- source include/have_ndb.inc -- source include/have_ndb.inc
-- source include/have_binlog_format_row.inc
-- source include/not_embedded.inc -- source include/not_embedded.inc
--disable_warnings --disable_warnings
......
-- source include/have_ndb.inc -- source include/have_ndb.inc
-- source include/have_binlog_format_row.inc
-- source include/not_embedded.inc -- source include/not_embedded.inc
# #
......
-- source include/have_ndb.inc -- source include/have_ndb.inc
-- source include/have_binlog_format_row.inc
-- source include/ndb_default_cluster.inc -- source include/ndb_default_cluster.inc
-- source include/not_embedded.inc -- source include/not_embedded.inc
......
-- source include/have_ndb.inc -- source include/have_ndb.inc
-- source include/have_binlog_format_row.inc
-- source include/ndb_default_cluster.inc -- source include/ndb_default_cluster.inc
-- source include/not_embedded.inc -- source include/not_embedded.inc
......
-- source include/have_ndb.inc -- source include/have_ndb.inc
-- source include/have_binlog_format_row.inc
-- source include/ndb_default_cluster.inc -- source include/ndb_default_cluster.inc
-- source include/not_embedded.inc -- source include/not_embedded.inc
......
-- source include/have_ndb.inc -- source include/have_ndb.inc
-- source include/have_binlog_format_row.inc
-- source include/not_embedded.inc -- source include/not_embedded.inc
--disable_warnings --disable_warnings
......
-- source include/have_ndb.inc -- source include/have_ndb.inc
-- source include/have_binlog_format_row.inc
-- source include/have_multi_ndb.inc -- source include/have_multi_ndb.inc
-- source include/ndb_default_cluster.inc -- source include/ndb_default_cluster.inc
-- source include/not_embedded.inc -- source include/not_embedded.inc
......
-- source include/have_ndb.inc -- source include/have_ndb.inc
-- source include/have_binlog_format_row.inc
-- source include/not_embedded.inc -- source include/not_embedded.inc
--disable_warnings --disable_warnings
......
-- source include/have_ndb.inc -- source include/have_ndb.inc
-- source include/have_binlog_format_row.inc
-- source include/not_embedded.inc -- source include/not_embedded.inc
--disable_warnings --disable_warnings
......
-- source include/have_ndb.inc -- source include/have_ndb.inc
-- source include/have_binlog_format_row.inc
-- source include/not_embedded.inc -- source include/not_embedded.inc
--disable_warnings --disable_warnings
......
-- source include/have_ndb.inc -- source include/have_ndb.inc
-- source include/have_binlog_format_row.inc
-- source include/not_embedded.inc -- source include/not_embedded.inc
--disable_warnings --disable_warnings
......
# Tests which involve triggers and NDB storage engine # Tests which involve triggers and NDB storage engine
--source include/have_ndb.inc --source include/have_ndb.inc
--source include/have_binlog_format_row.inc
--source include/not_embedded.inc --source include/not_embedded.inc
# #
......
-- source include/have_ndb.inc -- source include/have_ndb.inc
-- source include/have_binlog_format_row.inc
-- source include/not_embedded.inc -- source include/not_embedded.inc
--disable_warnings --disable_warnings
......
--source include/have_ndb.inc --source include/have_ndb.inc
-- source include/have_binlog_format_row.inc
--source include/not_embedded.inc --source include/not_embedded.inc
--disable_warnings --disable_warnings
......
-- source include/have_ndb.inc -- source include/have_ndb.inc
-- source include/have_binlog_format_row.inc
-- source include/not_embedded.inc -- source include/not_embedded.inc
--disable_warnings --disable_warnings
......
-- source include/have_ndb.inc -- source include/have_ndb.inc
-- source include/have_binlog_format_row.inc
-- source include/not_embedded.inc -- source include/not_embedded.inc
--disable_warnings --disable_warnings
......
-- source include/have_ndb.inc -- source include/have_ndb.inc
-- source include/have_binlog_format_row.inc
-- source include/have_ndbapi_examples.inc -- source include/have_ndbapi_examples.inc
--disable_warnings --disable_warnings
......
...@@ -11,6 +11,7 @@ ...@@ -11,6 +11,7 @@
use test; use test;
-- source include/have_ndb.inc -- source include/have_ndb.inc
-- source include/have_binlog_format_row.inc
let $type= 'NDB' ; let $type= 'NDB' ;
-- source include/ps_create.inc -- source include/ps_create.inc
-- source include/ps_renew.inc -- source include/ps_renew.inc
......
...@@ -5,5 +5,6 @@ ...@@ -5,5 +5,6 @@
# By JBM 2004-02-15 # # By JBM 2004-02-15 #
##################################### #####################################
-- source include/have_ndb.inc -- source include/have_ndb.inc
-- source include/have_binlog_format_row.inc
let $engine_type=NDB; let $engine_type=NDB;
-- source extra/rpl_tests/rpl_commit_after_flush.test -- source extra/rpl_tests/rpl_commit_after_flush.test
...@@ -3,6 +3,7 @@ ...@@ -3,6 +3,7 @@
-- source include/have_ndb.inc -- source include/have_ndb.inc
-- source include/have_innodb.inc -- source include/have_innodb.inc
-- source include/master-slave.inc -- source include/master-slave.inc
-- source include/have_binlog_format_row.inc
create table t1 (a int, unique(a)) engine=ndbcluster; create table t1 (a int, unique(a)) engine=ndbcluster;
create table t2 (a int, unique(a)) engine=innodb; create table t2 (a int, unique(a)) engine=innodb;
......
...@@ -12,6 +12,14 @@ create table t2 (a int key, b int) engine innodb; ...@@ -12,6 +12,14 @@ create table t2 (a int key, b int) engine innodb;
alter table t1 engine ndb; alter table t1 engine ndb;
alter table t2 engine ndb; alter table t2 engine ndb;
# We need MIXED mode on the slave in the event that there are
# statements coming in from the master. In this case, NDB can only
# handle row-based format, so it has to be possible to switch to
# this.
STOP SLAVE;
SET GLOBAL BINLOG_FORMAT=MIXED;
START SLAVE;
# check binlog position without begin # check binlog position without begin
--connection master --connection master
insert into t1 values (1,2); insert into t1 values (1,2);
......
-- source include/have_ndb.inc -- source include/have_ndb.inc
-- source include/have_binlog_format_row.inc
# #
# Bug#20573 Strict mode auto-increment # Bug#20573 Strict mode auto-increment
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment