1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-01 03:47:19 +03:00

Version substitution so that tests pass on any build, independently of the

version is '-log', '-debug' etc.
This commit is contained in:
guilhem@mysql.com
2003-05-20 10:16:26 +02:00
parent d58b4bed4c
commit b0062813e5
2 changed files with 5 additions and 2 deletions

View File

@ -5,6 +5,7 @@
#
source include/master-slave.inc;
let $VERSION=`select version()`;
create table t1 (a int);
insert into t1 values (10);
create table t2 (a int);
@ -17,12 +18,14 @@ rename table t1 to t5, t2 to t1;
# first don't write it to the binlog, to test the NO_WRITE_TO_BINLOG keyword.
flush no_write_to_binlog tables;
# Check that it's not in the binlog.
--replace_result $VERSION VERSION
show binlog events;
# Check that the master is not confused.
select * from t3;
# This FLUSH should go into the binlog to not confuse the slave.
flush tables;
# Check that it's in the binlog.
--replace_result $VERSION VERSION
show binlog events;
save_master_pos;
connection slave;