diff options
author | cmiller@zippy.cornsilk.net <> | 2007-04-23 17:58:33 -0400 |
---|---|---|
committer | cmiller@zippy.cornsilk.net <> | 2007-04-23 17:58:33 -0400 |
commit | d81f116534da25fda68e61d7641cf3a05186daf2 (patch) | |
tree | e00fbe7afe272a3fc90f10889b77fda3834daaff /mysql-test/t/mysqlbinlog2.test | |
parent | dfdc475a579e7448b68c36c4cb3d43a16fd121cb (diff) | |
download | mariadb-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.test | 3 |
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 ""; |