diff options
author | Sergei Golubchik <serg@mariadb.org> | 2017-02-21 11:07:42 +0100 |
---|---|---|
committer | Sergei Golubchik <serg@mariadb.org> | 2017-02-27 12:35:10 +0100 |
commit | 44534487d4b1364e34a072a67130fe1848636c99 (patch) | |
tree | 8f121666903524db29be75bdf18c274c78b1f3ac /mysql-test | |
parent | d72dbb41229ceb6434ecd3e23d559bb7b39dd15f (diff) | |
download | mariadb-git-44534487d4b1364e34a072a67130fe1848636c99.tar.gz |
MDEV-11505 wrong databasename in mysqldump comment
fix_for_comment() uses a static buffer. cannot have two
fix_for_comment() calls as arguments to one printf().
Diffstat (limited to 'mysql-test')
-rw-r--r-- | mysql-test/t/mysqldump.test | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/mysql-test/t/mysqldump.test b/mysql-test/t/mysqldump.test index f0ada44fafd..7b517a7ce59 100644 --- a/mysql-test/t/mysqldump.test +++ b/mysql-test/t/mysqldump.test @@ -2509,3 +2509,11 @@ if (`select convert(@@version_compile_os using latin1) IN ("Win32","Win64","Wind } --exec $MYSQL_DUMP --routines --compact $shell_ready_db_name DROP DATABASE `a\"'``b`; + +#" +# MDEV-11505 wrong databasename in mysqldump comment +# +let SEARCH_FILE=$MYSQLTEST_VARDIR/tmp/bug11505.sql; +let SEARCH_PATTERN=Database: mysql; +exec $MYSQL_DUMP mysql func > $SEARCH_FILE; +source include/search_pattern_in_file.inc; |