summaryrefslogtreecommitdiff
path: root/mysql-test/t/mysqlbinlog2.test
diff options
context:
space:
mode:
authorcmiller@zippy.cornsilk.net <>2007-04-23 17:58:33 -0400
committercmiller@zippy.cornsilk.net <>2007-04-23 17:58:33 -0400
commitd81f116534da25fda68e61d7641cf3a05186daf2 (patch)
treee00fbe7afe272a3fc90f10889b77fda3834daaff /mysql-test/t/mysqlbinlog2.test
parentdfdc475a579e7448b68c36c4cb3d43a16fd121cb (diff)
downloadmariadb-git-d81f116534da25fda68e61d7641cf3a05186daf2.tar.gz
Contributed patch from Jorge Bernal Ordovás. CLA#42
Bug#27894: mysqlbinlog formats timestamp wrong in comment Date stamps lack zero padding, and so are meaningless. Implement minimum-width zero padding for the percent-escape sequences used in the logging code.
Diffstat (limited to 'mysql-test/t/mysqlbinlog2.test')
-rw-r--r--mysql-test/t/mysqlbinlog2.test3
1 files changed, 2 insertions, 1 deletions
diff --git a/mysql-test/t/mysqlbinlog2.test b/mysql-test/t/mysqlbinlog2.test
index ac647f772b1..3dadc970069 100644
--- a/mysql-test/t/mysqlbinlog2.test
+++ b/mysql-test/t/mysqlbinlog2.test
@@ -43,7 +43,8 @@ select "--- Local --" as "";
# be time dependent (the Start events). Better than nothing.
#
---exec $MYSQL_BINLOG --short-form $MYSQLTEST_VARDIR/log/master-bin.000001
+--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}/
+--exec $MYSQL_BINLOG $MYSQLTEST_VARDIR/log/master-bin.000001
--disable_query_log
select "--- offset --" as "";