From 88bd301d36dd00735f6380d37a93594cc8539fe1 Mon Sep 17 00:00:00 2001 From: unknown Date: Sun, 16 Jan 2005 13:16:23 +0100 Subject: XA (not completely polished out yet) include/my_pthread.h: cleanup. don't use gcc extensions innobase/include/trx0sys.ic: Jan's fix for innobase_xa_prepare innobase/read/read0read.c: Jan's fix for innobase_xa_prepare innobase/trx/trx0trx.c: Jan's fix for innobase_xa_prepare mysql-test/include/varchar.inc: test fix mysql-test/r/ctype_ucs.result: new log event - all binlog positions are changed :( mysql-test/r/drop_temp_table.result: new log event - all binlog positions are changed :( mysql-test/r/insert_select.result: new log event - all binlog positions are changed :( mysql-test/r/mix_innodb_myisam_binlog.result: new log event - all binlog positions are changed :( mysql-test/r/myisam.result: test fix mysql-test/r/rpl000015.result: new log event - all binlog positions are changed :( mysql-test/r/rpl_change_master.result: new log event - all binlog positions are changed :( mysql-test/r/rpl_charset.result: new log event - all binlog positions are changed :( mysql-test/r/rpl_error_ignored_table.result: new log event - all binlog positions are changed :( mysql-test/r/rpl_flush_log_loop.result: new log event - all binlog positions are changed :( mysql-test/r/rpl_flush_tables.result: new log event - all binlog positions are changed :( mysql-test/r/rpl_loaddata.result: new log event - all binlog positions are changed :( mysql-test/r/rpl_loaddata_rule_m.result: new log event - all binlog positions are changed :( mysql-test/r/rpl_loaddata_rule_s.result: new log event - all binlog positions are changed :( mysql-test/r/rpl_log.result: new log event - all binlog positions are changed :( mysql-test/r/rpl_log_pos.result: new log event - all binlog positions are changed :( mysql-test/r/rpl_max_relay_size.result: new log event - all binlog positions are changed :( mysql-test/r/rpl_relayrotate.result: new log event - all binlog positions are changed :( mysql-test/r/rpl_replicate_do.result: new log event - all binlog positions are changed :( mysql-test/r/rpl_reset_slave.result: new log event - all binlog positions are changed :( mysql-test/r/rpl_rotate_logs.result: new log event - all binlog positions are changed :( mysql-test/r/rpl_server_id1.result: new log event - all binlog positions are changed :( mysql-test/r/rpl_server_id2.result: new log event - all binlog positions are changed :( mysql-test/r/rpl_temporary.result: new log event - all binlog positions are changed :( mysql-test/r/rpl_timezone.result: new log event - all binlog positions are changed :( mysql-test/r/rpl_until.result: new log event - all binlog positions are changed :( mysql-test/r/rpl_user_variables.result: new log event - all binlog positions are changed :( mysql-test/r/user_var.result: new log event - all binlog positions are changed :( mysql-test/t/ctype_ucs.test: new log event - all binlog positions are changed :( mysql-test/t/mix_innodb_myisam_binlog.test: new log event - all binlog positions are changed :( mysql-test/t/mysqlbinlog.test: new log event - all binlog positions are changed :( mysql-test/t/mysqlbinlog2.test: new log event - all binlog positions are changed :( mysql-test/t/rpl_charset.test: new log event - all binlog positions are changed :( mysql-test/t/rpl_error_ignored_table.test: new log event - all binlog positions are changed :( mysql-test/t/rpl_loaddata_rule_m.test: new log event - all binlog positions are changed :( mysql-test/t/rpl_loaddata_rule_s.test: new log event - all binlog positions are changed :( mysql-test/t/rpl_log.test: new log event - all binlog positions are changed :( mysql-test/t/rpl_log_pos.test: new log event - all binlog positions are changed :( mysql-test/t/rpl_user_variables.test: new log event - all binlog positions are changed :( mysql-test/t/user_var.test: new log event - all binlog positions are changed :( mysys/hash.c: typo fixed sql/ha_berkeley.cc: handlerton framework sql/ha_berkeley.h: handlerton framework sql/ha_innodb.cc: handlerton framework sql/ha_innodb.h: handlerton framework sql/handler.cc: new transaction handling, handlerton framework, two-phase commit, XA support sql/handler.h: new transaction handling, handlerton framework, two-phase commit, XA support sql/lex.h: XA commands sql/log.cc: new transaction handling, handlerton framework, two-phase commit, XA support, tc-logging, TC_LOG_MMAP class sql/log_event.cc: Xid_log_event sql/log_event.h: Xid_log_event, LOG_EVENT_BINLOG_CLOSED_F flag sql/mysql_priv.h: wrapper for query_id++ sql/mysqld.cc: new command-line options --log-tc, --log-tc-size, --tc-heuristic-recover, new status variables Tc_log_page_size, Tc_log_max_pages_used, Tc_log_page_waits. init/stop tc logging sql/set_var.h: warning fixed sql/share/errmsg.txt: XA error messages sql/sp_head.cc: s/query_id++/next_query_id()/ sql/sql_base.cc: typo fixed. new transaction handling. sql/sql_class.cc: cleanup of THD.transaction sql/sql_class.h: TC_LOG classes, new status variables, new savepoint handling, XA support sql/sql_insert.cc: comments sql/sql_lex.cc: s/found_colon/found_semicolon/ sql/sql_lex.h: SQLCOM_XA_xxx, XA related changes in Lex sql/sql_parse.cc: cleanup, XA commands, new savepoint handling sql/sql_repl.cc: two functions moved to log.cc sql/sql_repl.h: two functions moved to log.cc sql/sql_trigger.cc: s/lex.name_and_length/lex.ident/ sql/sql_yacc.yy: XA commands, cleanup --- mysql-test/t/ctype_ucs.test | 2 +- mysql-test/t/mix_innodb_myisam_binlog.test | 24 ++++++++++++------------ mysql-test/t/mysqlbinlog.test | 4 ++-- mysql-test/t/mysqlbinlog2.test | 16 ++++++++-------- mysql-test/t/rpl_charset.test | 6 +++--- mysql-test/t/rpl_error_ignored_table.test | 2 +- mysql-test/t/rpl_loaddata_rule_m.test | 2 +- mysql-test/t/rpl_loaddata_rule_s.test | 2 +- mysql-test/t/rpl_log.test | 6 +++--- mysql-test/t/rpl_log_pos.test | 2 +- mysql-test/t/rpl_user_variables.test | 2 +- mysql-test/t/user_var.test | 2 +- 12 files changed, 35 insertions(+), 35 deletions(-) (limited to 'mysql-test/t') diff --git a/mysql-test/t/ctype_ucs.test b/mysql-test/t/ctype_ucs.test index 597b364dbb1..56b85d5a1d5 100644 --- a/mysql-test/t/ctype_ucs.test +++ b/mysql-test/t/ctype_ucs.test @@ -338,7 +338,7 @@ create table t2 (c char(30)) charset=ucs2; set @v=convert('abc' using ucs2); reset master; insert into t2 values (@v); -show binlog events from 95; +show binlog events from 96; # more important than SHOW BINLOG EVENTS, mysqlbinlog (where we # absolutely need variables names to be quoted and strings to be # escaped). diff --git a/mysql-test/t/mix_innodb_myisam_binlog.test b/mysql-test/t/mix_innodb_myisam_binlog.test index 11d3af11c42..d8872fa6a1a 100644 --- a/mysql-test/t/mix_innodb_myisam_binlog.test +++ b/mysql-test/t/mix_innodb_myisam_binlog.test @@ -26,7 +26,7 @@ insert into t2 select * from t1; commit; --replace_column 5 # -show binlog events from 95; +show binlog events from 96; delete from t1; delete from t2; @@ -39,7 +39,7 @@ insert into t2 select * from t1; rollback; --replace_column 5 # -show binlog events from 95; +show binlog events from 96; delete from t1; delete from t2; @@ -54,7 +54,7 @@ rollback to savepoint my_savepoint; commit; --replace_column 5 # -show binlog events from 95; +show binlog events from 96; delete from t1; delete from t2; @@ -71,7 +71,7 @@ commit; select a from t1 order by a; # check that savepoints work :) --replace_column 5 # -show binlog events from 95; +show binlog events from 96; # and when ROLLBACK is not explicit? delete from t1; @@ -92,7 +92,7 @@ connection con2; # logging has been done, we use a user lock. select get_lock("a",10); --replace_column 5 # -show binlog events from 95; +show binlog events from 96; # and when not in a transact1on? delete from t1; @@ -103,7 +103,7 @@ insert into t1 values(9); insert into t2 select * from t1; --replace_column 5 # -show binlog events from 95; +show binlog events from 96; # Check that when the query updat1ng the MyISAM table is the first in the # transaction, we log it immediately. @@ -115,12 +115,12 @@ insert into t1 values(10); # first make t1 non-empty begin; insert into t2 select * from t1; --replace_column 5 # -show binlog events from 95; +show binlog events from 96; insert into t1 values(11); commit; --replace_column 5 # -show binlog events from 95; +show binlog events from 96; # Check that things work like before this BEGIN/ROLLBACK code was added, @@ -138,7 +138,7 @@ insert into t2 select * from t1; commit; --replace_column 5 # -show binlog events from 95; +show binlog events from 96; delete from t1; delete from t2; @@ -150,7 +150,7 @@ insert into t2 select * from t1; rollback; --replace_column 5 # -show binlog events from 95; +show binlog events from 96; delete from t1; delete from t2; @@ -165,7 +165,7 @@ rollback to savepoint my_savepoint; commit; --replace_column 5 # -show binlog events from 95; +show binlog events from 96; delete from t1; delete from t2; @@ -182,7 +182,7 @@ commit; select a from t1 order by a; # check that savepoints work :) --replace_column 5 # -show binlog events from 95; +show binlog events from 96; # Test for BUG#5714, where a MyISAM update in the transaction used to # release row-level locks in InnoDB diff --git a/mysql-test/t/mysqlbinlog.test b/mysql-test/t/mysqlbinlog.test index a8bbe60d58e..14a9813da5b 100644 --- a/mysql-test/t/mysqlbinlog.test +++ b/mysql-test/t/mysqlbinlog.test @@ -61,7 +61,7 @@ select "--- --database --" as ""; select "--- --position --" as ""; --enable_query_log --replace_result $MYSQL_TEST_DIR MYSQL_TEST_DIR ---exec $MYSQL_BINLOG --short-form --local-load=$MYSQL_TEST_DIR/var/tmp/ --position=118 $MYSQL_TEST_DIR/var/log/master-bin.000002 +--exec $MYSQL_BINLOG --short-form --local-load=$MYSQL_TEST_DIR/var/tmp/ --position=119 $MYSQL_TEST_DIR/var/log/master-bin.000002 # These are tests for remote binlog. # They should return the same as previous test. @@ -93,7 +93,7 @@ select "--- --database --" as ""; select "--- --position --" as ""; --enable_query_log --replace_result $MYSQL_TEST_DIR MYSQL_TEST_DIR ---exec $MYSQL_BINLOG --short-form --local-load=$MYSQL_TEST_DIR/var/tmp/ --read-from-remote-server --position=118 --user=root --host=127.0.0.1 --port=$MASTER_MYPORT master-bin.000002 +--exec $MYSQL_BINLOG --short-form --local-load=$MYSQL_TEST_DIR/var/tmp/ --read-from-remote-server --position=119 --user=root --host=127.0.0.1 --port=$MASTER_MYPORT master-bin.000002 # clean up drop table t1, t2; diff --git a/mysql-test/t/mysqlbinlog2.test b/mysql-test/t/mysqlbinlog2.test index 6a4c99c746d..f2360d51c16 100644 --- a/mysql-test/t/mysqlbinlog2.test +++ b/mysql-test/t/mysqlbinlog2.test @@ -46,11 +46,11 @@ select "--- offset --" as ""; --disable_query_log select "--- start-position --" as ""; --enable_query_log ---exec $MYSQL_BINLOG --short-form --start-position=601 $MYSQL_TEST_DIR/var/log/master-bin.000001 +--exec $MYSQL_BINLOG --short-form --start-position=602 $MYSQL_TEST_DIR/var/log/master-bin.000001 --disable_query_log select "--- stop-position --" as ""; --enable_query_log ---exec $MYSQL_BINLOG --short-form --stop-position=601 $MYSQL_TEST_DIR/var/log/master-bin.000001 +--exec $MYSQL_BINLOG --short-form --stop-position=602 $MYSQL_TEST_DIR/var/log/master-bin.000001 --disable_query_log select "--- start-datetime --" as ""; --enable_query_log @@ -75,11 +75,11 @@ select "--- offset --" as ""; --disable_query_log select "--- start-position --" as ""; --enable_query_log ---exec $MYSQL_BINLOG --short-form --start-position=601 $MYSQL_TEST_DIR/var/log/master-bin.000001 $MYSQL_TEST_DIR/var/log/master-bin.000002 +--exec $MYSQL_BINLOG --short-form --start-position=602 $MYSQL_TEST_DIR/var/log/master-bin.000001 $MYSQL_TEST_DIR/var/log/master-bin.000002 --disable_query_log select "--- stop-position --" as ""; --enable_query_log ---exec $MYSQL_BINLOG --short-form --stop-position=123 $MYSQL_TEST_DIR/var/log/master-bin.000001 $MYSQL_TEST_DIR/var/log/master-bin.000002 +--exec $MYSQL_BINLOG --short-form --stop-position=124 $MYSQL_TEST_DIR/var/log/master-bin.000001 $MYSQL_TEST_DIR/var/log/master-bin.000002 --disable_query_log select "--- start-datetime --" as ""; --enable_query_log @@ -102,11 +102,11 @@ select "--- offset --" as ""; --disable_query_log select "--- start-position --" as ""; --enable_query_log ---exec $MYSQL_BINLOG --short-form --start-position=601 --read-from-remote-server --user=root --host=127.0.0.1 --port=$MASTER_MYPORT master-bin.000001 +--exec $MYSQL_BINLOG --short-form --start-position=602 --read-from-remote-server --user=root --host=127.0.0.1 --port=$MASTER_MYPORT master-bin.000001 --disable_query_log select "--- stop-position --" as ""; --enable_query_log ---exec $MYSQL_BINLOG --short-form --stop-position=601 --read-from-remote-server --user=root --host=127.0.0.1 --port=$MASTER_MYPORT master-bin.000001 +--exec $MYSQL_BINLOG --short-form --stop-position=602 --read-from-remote-server --user=root --host=127.0.0.1 --port=$MASTER_MYPORT master-bin.000001 --disable_query_log select "--- start-datetime --" as ""; --enable_query_log @@ -129,11 +129,11 @@ select "--- offset --" as ""; --disable_query_log select "--- start-position --" as ""; --enable_query_log ---exec $MYSQL_BINLOG --short-form --start-position=601 --read-from-remote-server --user=root --host=127.0.0.1 --port=$MASTER_MYPORT master-bin.000001 master-bin.000002 +--exec $MYSQL_BINLOG --short-form --start-position=602 --read-from-remote-server --user=root --host=127.0.0.1 --port=$MASTER_MYPORT master-bin.000001 master-bin.000002 --disable_query_log select "--- stop-position --" as ""; --enable_query_log ---exec $MYSQL_BINLOG --short-form --stop-position=123 --read-from-remote-server --user=root --host=127.0.0.1 --port=$MASTER_MYPORT master-bin.000001 master-bin.000002 +--exec $MYSQL_BINLOG --short-form --stop-position=124 --read-from-remote-server --user=root --host=127.0.0.1 --port=$MASTER_MYPORT master-bin.000001 master-bin.000002 --disable_query_log select "--- start-datetime --" as ""; --enable_query_log diff --git a/mysql-test/t/rpl_charset.test b/mysql-test/t/rpl_charset.test index 52ace9a6aa5..492bf3d8abb 100644 --- a/mysql-test/t/rpl_charset.test +++ b/mysql-test/t/rpl_charset.test @@ -107,7 +107,7 @@ connection master; drop database mysqltest2; drop database mysqltest3; --replace_column 2 # 5 # -show binlog events from 95; +show binlog events from 96; sync_slave_with_master; # Check that we can't change global.collation_server @@ -163,14 +163,14 @@ delete from t1; # command just before the INSERT. # You can find it by doing: # ../client/mysqlbinlog var/log/master-bin.000001 | grep -3 CHARACTER_SET | tail -7 -change master to master_log_pos=6809; +change master to master_log_pos=6810; # This position should be position of the INSERT command. # You can find it by doing: # # ../client/mysqlbinlog var/log/master-bin.000001 | grep -3 INSERT | tail -4 -start slave until master_log_file='master-bin.000001', master_log_pos=6967; +start slave until master_log_file='master-bin.000001', master_log_pos=6968; # Slave is supposed to stop _after_ the INSERT, even though 'master_log_pos' is # the position of the beginning of the INSERT; after SET slave is not diff --git a/mysql-test/t/rpl_error_ignored_table.test b/mysql-test/t/rpl_error_ignored_table.test index 487869e5fef..a520024b7da 100644 --- a/mysql-test/t/rpl_error_ignored_table.test +++ b/mysql-test/t/rpl_error_ignored_table.test @@ -48,7 +48,7 @@ connection master; --error 0,1053; reap; connection master1; -show binlog events from 95; +show binlog events from 96; save_master_pos; connection slave; # SQL slave thread should not have stopped (because table of the killed diff --git a/mysql-test/t/rpl_loaddata_rule_m.test b/mysql-test/t/rpl_loaddata_rule_m.test index 3f19a09c6f7..ff00e8f4925 100644 --- a/mysql-test/t/rpl_loaddata_rule_m.test +++ b/mysql-test/t/rpl_loaddata_rule_m.test @@ -19,5 +19,5 @@ create database mysqltest; create table t1(a int, b int, unique(b)); use mysqltest; load data infile '../../std_data/rpl_loaddata.dat' into table test.t1; -show binlog events from 95; # should be nothing +show binlog events from 96; # should be nothing drop database mysqltest; diff --git a/mysql-test/t/rpl_loaddata_rule_s.test b/mysql-test/t/rpl_loaddata_rule_s.test index 8163cd20f00..71a3929da32 100644 --- a/mysql-test/t/rpl_loaddata_rule_s.test +++ b/mysql-test/t/rpl_loaddata_rule_s.test @@ -17,4 +17,4 @@ save_master_pos; connection slave; sync_with_master; select count(*) from t1; # check that LOAD was replicated -show binlog events from 95; # should be nothing +show binlog events from 96; # should be nothing diff --git a/mysql-test/t/rpl_log.test b/mysql-test/t/rpl_log.test index 178199d6160..055c1a7c93a 100644 --- a/mysql-test/t/rpl_log.test +++ b/mysql-test/t/rpl_log.test @@ -38,9 +38,9 @@ select count(*) from t1; drop table t1; --replace_result $VERSION VERSION show binlog events; -show binlog events from 95 limit 1; -show binlog events from 95 limit 2; -show binlog events from 95 limit 2,1; +show binlog events from 96 limit 1; +show binlog events from 96 limit 2; +show binlog events from 96 limit 2,1; flush logs; # We need an extra update before doing save_master_pos. diff --git a/mysql-test/t/rpl_log_pos.test b/mysql-test/t/rpl_log_pos.test index 634bf9449fd..c9d7056924f 100644 --- a/mysql-test/t/rpl_log_pos.test +++ b/mysql-test/t/rpl_log_pos.test @@ -38,7 +38,7 @@ insert into t1 values (1),(2),(3); save_master_pos; connection slave; stop slave; -change master to master_log_pos=95; +change master to master_log_pos=96; start slave; sync_with_master; select * from t1; diff --git a/mysql-test/t/rpl_user_variables.test b/mysql-test/t/rpl_user_variables.test index 01d4b0e033c..131574c3b1a 100644 --- a/mysql-test/t/rpl_user_variables.test +++ b/mysql-test/t/rpl_user_variables.test @@ -46,7 +46,7 @@ save_master_pos; connection slave; sync_with_master; select * from t1; -show binlog events from 179; +show binlog events from 180; connection master; drop table t1; save_master_pos; diff --git a/mysql-test/t/user_var.test b/mysql-test/t/user_var.test index ae8e3ccf841..ee61cd10c3c 100644 --- a/mysql-test/t/user_var.test +++ b/mysql-test/t/user_var.test @@ -109,7 +109,7 @@ SET @`a b`='hello'; INSERT INTO t1 VALUES(@`a b`); set @var1= "';aaa"; insert into t1 values (@var1); -show binlog events from 95; +show binlog events from 96; # more important than SHOW BINLOG EVENTS, mysqlbinlog (where we # absolutely need variables names to be quoted and strings to be # escaped). -- cgit v1.2.1 From 9297872d75f4754df8bbf607e380fc6cf68251f1 Mon Sep 17 00:00:00 2001 From: unknown Date: Wed, 9 Feb 2005 20:04:28 +0100 Subject: auto-ROLLBACK if binlog was not closed properly auto-commit on Xid_log_event client/mysqlbinlog.cc: auto-ROLLBACK if binlog was not closed properly. mysql-test/r/ctype_ucs.result: results updated mysql-test/r/mix_innodb_myisam_binlog.result: results updated mysql-test/r/mysqlbinlog2.result: results updated mysql-test/r/rpl_relayrotate.result: results updated mysql-test/r/user_var.result: results updated mysql-test/t/ctype_ucs.test: finalize binlog before calling mysqlbinlog mysql-test/t/user_var.test: finalize binlog before calling mysqlbinlog sql/log_event.cc: commit at Xid_log_event comments edited sql/mysqld.cc: free(0) fixed sql/slave.cc: rollback at fake Rotate_log_event sql/sql_class.h: no commit_or_rollback argument for binlog->write(THD *thd, IO_CACHE *cache) sql/log.cc: don't write "COMMIT" query, Xid_log_event is enough sql/log_event.h: more comments for LOG_EVENT_BINLOG_IN_USE_F LOG_EVENT_FORCE_ROLLBACK_F added sql/sql_repl.cc: rollback at Rotate_log_event. don't consider binlog corrupted if it was open when we read Formar_description but closed when we got to the end sql/sql_repl.h: style fix --- mysql-test/t/ctype_ucs.test | 1 + mysql-test/t/user_var.test | 1 + 2 files changed, 2 insertions(+) (limited to 'mysql-test/t') diff --git a/mysql-test/t/ctype_ucs.test b/mysql-test/t/ctype_ucs.test index 56b85d5a1d5..54db7b83826 100644 --- a/mysql-test/t/ctype_ucs.test +++ b/mysql-test/t/ctype_ucs.test @@ -339,6 +339,7 @@ set @v=convert('abc' using ucs2); reset master; insert into t2 values (@v); show binlog events from 96; +flush logs; # more important than SHOW BINLOG EVENTS, mysqlbinlog (where we # absolutely need variables names to be quoted and strings to be # escaped). diff --git a/mysql-test/t/user_var.test b/mysql-test/t/user_var.test index ee61cd10c3c..ffaafaaff25 100644 --- a/mysql-test/t/user_var.test +++ b/mysql-test/t/user_var.test @@ -110,6 +110,7 @@ INSERT INTO t1 VALUES(@`a b`); set @var1= "';aaa"; insert into t1 values (@var1); show binlog events from 96; +flush logs; # more important than SHOW BINLOG EVENTS, mysqlbinlog (where we # absolutely need variables names to be quoted and strings to be # escaped). -- cgit v1.2.1 From de1dcee97e34f43b810a9329479e7e68b120eb55 Mon Sep 17 00:00:00 2001 From: unknown Date: Wed, 16 Feb 2005 17:34:02 +0100 Subject: after merge fixes --- mysql-test/t/innodb.test | 2 +- mysql-test/t/strict.test | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'mysql-test/t') diff --git a/mysql-test/t/innodb.test b/mysql-test/t/innodb.test index da27fcfc734..d3f775bb3a8 100644 --- a/mysql-test/t/innodb.test +++ b/mysql-test/t/innodb.test @@ -139,7 +139,7 @@ select n from t1; rollback to savepoint `savept2`; release savepoint `my_savepoint`; select n from t1; --- error 1181 +-- error 1305 rollback to savepoint `my_savepoint`; set autocommit=1; # nop diff --git a/mysql-test/t/strict.test b/mysql-test/t/strict.test index 2c15edb5fc3..15373f59149 100644 --- a/mysql-test/t/strict.test +++ b/mysql-test/t/strict.test @@ -569,12 +569,12 @@ DROP TABLE t1; CREATE TABLE t1 (col1 CHAR(5), col2 VARCHAR(6)); INSERT INTO t1 VALUES ('hello', 'hello'),('he', 'he'),('hello ', 'hello '); ---error 1400 +--error 1406 INSERT INTO t1 (col1) VALUES ('hellobob'); --error 1265 INSERT INTO t1 (col2) VALUES ('hellobob'); INSERT INTO t1 (col2) VALUES ('hello '); ---error 1400 +--error 1406 UPDATE t1 SET col1 ='hellobob' WHERE col1 ='he'; --error 1265 UPDATE t1 SET col2 ='hellobob' WHERE col2 ='he'; -- cgit v1.2.1 From c5c497164fbc48bcc50770ced833a07788082aaf Mon Sep 17 00:00:00 2001 From: unknown Date: Thu, 17 Feb 2005 13:52:16 +0100 Subject: post-review fixes. Now ROLLBACK is done in Format_description_log_event mysql-test/t/mix_innodb_myisam_binlog.test: fix for --ps-protocol --- mysql-test/t/ctype_ucs.test | 1 - mysql-test/t/mix_innodb_myisam_binlog.test | 9 +++++++++ mysql-test/t/user_var.test | 1 - 3 files changed, 9 insertions(+), 2 deletions(-) (limited to 'mysql-test/t') diff --git a/mysql-test/t/ctype_ucs.test b/mysql-test/t/ctype_ucs.test index a648e78a3c7..05552fcc6c5 100644 --- a/mysql-test/t/ctype_ucs.test +++ b/mysql-test/t/ctype_ucs.test @@ -339,7 +339,6 @@ set @v=convert('abc' using ucs2); reset master; insert into t2 values (@v); show binlog events from 96; -flush logs; # more important than SHOW BINLOG EVENTS, mysqlbinlog (where we # absolutely need variables names to be quoted and strings to be # escaped). diff --git a/mysql-test/t/mix_innodb_myisam_binlog.test b/mysql-test/t/mix_innodb_myisam_binlog.test index d8872fa6a1a..08a81c850eb 100644 --- a/mysql-test/t/mix_innodb_myisam_binlog.test +++ b/mysql-test/t/mix_innodb_myisam_binlog.test @@ -26,6 +26,7 @@ insert into t2 select * from t1; commit; --replace_column 5 # +--replace_result "xid=12" "xid=7" show binlog events from 96; delete from t1; @@ -54,6 +55,7 @@ rollback to savepoint my_savepoint; commit; --replace_column 5 # +--replace_result "xid=45" "xid=24" show binlog events from 96; delete from t1; @@ -71,6 +73,7 @@ commit; select a from t1 order by a; # check that savepoints work :) --replace_column 5 # +--replace_result "xid=67" "xid=36" show binlog events from 96; # and when ROLLBACK is not explicit? @@ -103,6 +106,7 @@ insert into t1 values(9); insert into t2 select * from t1; --replace_column 5 # +--replace_result "xid=116" "xid=59" show binlog events from 96; # Check that when the query updat1ng the MyISAM table is the first in the @@ -115,11 +119,13 @@ insert into t1 values(10); # first make t1 non-empty begin; insert into t2 select * from t1; --replace_column 5 # +--replace_result "xid=130" "xid=65" show binlog events from 96; insert into t1 values(11); commit; --replace_column 5 # +--replace_result "xid=130" "xid=65" "xid=133" "xid=67" show binlog events from 96; @@ -138,6 +144,7 @@ insert into t2 select * from t1; commit; --replace_column 5 # +--replace_result "xid=152" "xid=77" show binlog events from 96; delete from t1; @@ -165,6 +172,7 @@ rollback to savepoint my_savepoint; commit; --replace_column 5 # +--replace_result "xid=184" "xid=93" show binlog events from 96; delete from t1; @@ -182,6 +190,7 @@ commit; select a from t1 order by a; # check that savepoints work :) --replace_column 5 # +--replace_result "xid=205" "xid=104" show binlog events from 96; # Test for BUG#5714, where a MyISAM update in the transaction used to diff --git a/mysql-test/t/user_var.test b/mysql-test/t/user_var.test index 07c38094fe1..5dc24bde21f 100644 --- a/mysql-test/t/user_var.test +++ b/mysql-test/t/user_var.test @@ -111,7 +111,6 @@ set @var1= "';aaa"; SET @var2=char(ascii('a')); insert into t1 values (@var1),(@var2); show binlog events from 96; -flush logs; # more important than SHOW BINLOG EVENTS, mysqlbinlog (where we # absolutely need variables names to be quoted and strings to be # escaped). -- cgit v1.2.1