summaryrefslogtreecommitdiff
path: root/mysql-test/t/mysqldump-nl.test
diff options
context:
space:
mode:
authorSergei Golubchik <serg@mariadb.org>2018-01-23 23:19:09 +0100
committerSergei Golubchik <serg@mariadb.org>2018-01-24 09:35:07 +0100
commite2da680c5119d78eb152394d521b898337ea5836 (patch)
treebe3d6f0c8576e670cef19a2a81532fc9eae4e1cd /mysql-test/t/mysqldump-nl.test
parent8637931f118b53ff6fdadf6006ccdb8dedd6f732 (diff)
downloadmariadb-git-e2da680c5119d78eb152394d521b898337ea5836.tar.gz
MDEV-13187 incorrect backslash parsing in clients
also cover USE and other built-in commands
Diffstat (limited to 'mysql-test/t/mysqldump-nl.test')
-rw-r--r--mysql-test/t/mysqldump-nl.test20
1 files changed, 20 insertions, 0 deletions
diff --git a/mysql-test/t/mysqldump-nl.test b/mysql-test/t/mysqldump-nl.test
index 311996e77c3..4513fb2c637 100644
--- a/mysql-test/t/mysqldump-nl.test
+++ b/mysql-test/t/mysqldump-nl.test
@@ -36,3 +36,23 @@ show tables from `mysqltest1
drop database `mysqltest1
1tsetlqsym`;
+
+create database `test```;
+create database `test\``
+\! ls
+#`;
+
+show databases like 'test%';
+
+exec $MYSQL_DUMP --compact --comment --add-drop-database --databases 'test`' 'test\`
+\! ls
+#';
+
+exec $MYSQL_DUMP --compact --comment --add-drop-database --databases 'test`' 'test\`
+\! ls
+#' | $MYSQL;
+
+drop database `test```;
+drop database `test\``
+\! ls
+#`;