summaryrefslogtreecommitdiff
path: root/mysql-test/t/mysqlbinlog2.test
diff options
context:
space:
mode:
authorsven@riska.(none) <>2008-03-07 13:59:36 +0100
committersven@riska.(none) <>2008-03-07 13:59:36 +0100
commit81b1d712bf3dea51c776fba7ac228bf28e4930f7 (patch)
tree60bc25fc3ff824c603da4b1857c28dd9b43f5f41 /mysql-test/t/mysqlbinlog2.test
parent9c2ef8377fd8a3d96f1a194346878281e3fc5762 (diff)
downloadmariadb-git-81b1d712bf3dea51c776fba7ac228bf28e4930f7.tar.gz
BUG#31168: @@hostname does not replicate
Problem: in mixed and statement mode, a query that refers to a system variable will use the slave's value when replayed on slave. So if the value of a system variable is inserted into a table, the slave will differ from the master. Fix: mark statements that refer to a system variable as "unsafe", meaning they will be replicated by row in mixed mode and produce a warning in statement mode. There are some exceptions: some variables are actually replicated. Those should *not* be marked as unsafe. BUG#34732: mysqlbinlog does not print default values for auto_increment variables Problem: mysqlbinlog does not print default values for some variables, including auto_increment_increment and others. So if a client executing the output of mysqlbinlog has different default values, replication will be wrong. Fix: Always print default values for all variables that are replicated. I need to fix the two bugs at the same time, because the test cases would fail if I only fixed one of them.
Diffstat (limited to 'mysql-test/t/mysqlbinlog2.test')
-rw-r--r--mysql-test/t/mysqlbinlog2.test3
1 files changed, 1 insertions, 2 deletions
diff --git a/mysql-test/t/mysqlbinlog2.test b/mysql-test/t/mysqlbinlog2.test
index 2ac16f4c590..59017b09c54 100644
--- a/mysql-test/t/mysqlbinlog2.test
+++ b/mysql-test/t/mysqlbinlog2.test
@@ -41,8 +41,7 @@ select "--- Local --" as "";
# be time dependent (the Start events). Better than nothing.
#
---replace_regex /[[:<:]][0-9]{6} [0-9 ][0-9]:[0-9]{2}:[0-9]{2}[[:>:]]/{yymmdd} {HH:MM:SS}/ /=[0-9]+ /={integer} / /# at [0-9]+/# at {pos}/ /(pos:?) [0-9]+/\1 {pos}/ /binlog v [0-9]+, server v [^ ]* created/binlog v #, server v ## created/
---exec $MYSQL_BINLOG --base64-output=never $MYSQLTEST_VARDIR/log/master-bin.000001
+--exec $MYSQL_BINLOG --short-form --base64-output=never $MYSQLTEST_VARDIR/log/master-bin.000001
--disable_query_log
select "--- offset --" as "";