1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-29 05:21:33 +03:00

Bug #49837 mysqltest exec cannot handle multi-line command correctly

Since the exec command line is passed on externally, it cannot take newlines
Simply replace \n with space
Now also added test case
This commit is contained in:
Bjorn Munch
2010-01-20 12:51:18 +01:00
parent be128c547f
commit 128216d35b
3 changed files with 19 additions and 0 deletions

View File

@ -605,6 +605,15 @@ echo ;
--error 1
--exec echo "--exec " | $MYSQL_TEST 2>&1
# Multi-line exec
exec $MYSQL
test -e "select 1";
exec $MYSQL test -e "select
2";
let $query = select 3
as X;
exec $MYSQL test -e "$query";
# ----------------------------------------------------------------------------
# Test let command
# ----------------------------------------------------------------------------