summaryrefslogtreecommitdiff
path: root/mysql-test/t/mysqlbinlog.test
diff options
context:
space:
mode:
authorunknown <mats@mysql.com>2005-02-04 14:29:54 +0100
committerunknown <mats@mysql.com>2005-02-04 14:29:54 +0100
commit00a71ae83ae3ddc6448852c31ad486025b5e197c (patch)
tree9fa50ef781df0de702f7c7d3f1ec64220ff94b08 /mysql-test/t/mysqlbinlog.test
parent98f97f22603bed9d134a6312471a183d70fba5ba (diff)
downloadmariadb-git-00a71ae83ae3ddc6448852c31ad486025b5e197c.tar.gz
Bug#7853 (mysqlbinlog does not accept input from stdin)
The utility 'mysqlbinlog' now accepts input from stdin. It can now be used to read the output from, e.g., 'zcat' or other utility. client/mysqlbinlog.cc: Reading from stdin instead of stdout [sic]. Not repositioning manually since my_b_read does that correctly. mysql-test/r/mysqlbinlog.result: Adding tests for reading from stdin. mysql-test/t/mysqlbinlog.test: Adding tests for reading from stdin.
Diffstat (limited to 'mysql-test/t/mysqlbinlog.test')
-rw-r--r--mysql-test/t/mysqlbinlog.test10
1 files changed, 10 insertions, 0 deletions
diff --git a/mysql-test/t/mysqlbinlog.test b/mysql-test/t/mysqlbinlog.test
index a8bbe60d58e..7f0a963adde 100644
--- a/mysql-test/t/mysqlbinlog.test
+++ b/mysql-test/t/mysqlbinlog.test
@@ -95,5 +95,15 @@ select "--- --position --" as "";
--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
+# Bug#7853 (mysqlbinlog does not accept input from stdin)
+--disable_query_log
+select "--- reading stdin --" as "";
+--enable_query_log
+--replace_result $MYSQL_TEST_DIR MYSQL_TEST_DIR
+--exec cat $MYSQL_TEST_DIR/std_data/trunc_binlog.000001 | $MYSQL_BINLOG --short-form -
+
+--replace_result $MYSQL_TEST_DIR MYSQL_TEST_DIR
+--exec cat $MYSQL_TEST_DIR/std_data/trunc_binlog.000001 | $MYSQL_BINLOG --short-form --position=79 -
+
# clean up
drop table t1, t2;