summaryrefslogtreecommitdiff
path: root/mysql-test/t/mysqldump-no-binlog.test
diff options
context:
space:
mode:
authorunknown <gkodinov/kgeorge@magare.gmz>2008-03-07 11:15:49 +0200
committerunknown <gkodinov/kgeorge@magare.gmz>2008-03-07 11:15:49 +0200
commit99c0b5e10ff2f64df6b3d90096be0ece31130dcb (patch)
treeef121e1746fd1e03d95bdb7f579dfffeb25a171a /mysql-test/t/mysqldump-no-binlog.test
parent4e7c4ab929b85eaaa91a8c678872c44fc421c396 (diff)
downloadmariadb-git-99c0b5e10ff2f64df6b3d90096be0ece31130dcb.tar.gz
Bug #34909: mysqldump returns a 0 status on error when using
--master-data No error code was returned by mysqldump if it detects that binary logging is not enabled on the server. Fixed by returning error code. client/mysqldump.c: Bug #34909: add error code mysql-test/r/mysqldump-no-binlog.result: Bug #34909: test case mysql-test/t/mysqldump-no-binlog-master.opt: Bug #34909: test case mysql-test/t/mysqldump-no-binlog.test: Bug #34909: test case
Diffstat (limited to 'mysql-test/t/mysqldump-no-binlog.test')
-rw-r--r--mysql-test/t/mysqldump-no-binlog.test6
1 files changed, 6 insertions, 0 deletions
diff --git a/mysql-test/t/mysqldump-no-binlog.test b/mysql-test/t/mysqldump-no-binlog.test
new file mode 100644
index 00000000000..434b2931792
--- /dev/null
+++ b/mysql-test/t/mysqldump-no-binlog.test
@@ -0,0 +1,6 @@
+# Embedded server doesn't support external clients
+--source include/not_embedded.inc
+
+--replace_regex /MASTER_LOG_POS=[0-9]+/XX/
+--error 2
+--exec $MYSQL_DUMP --compact --master-data=2 test 2>&1