mirror of
https://github.com/MariaDB/server.git
synced 2025-01-30 02:30:06 +01:00
Change "exec echo" commands with different delimiters that are also
escape chars to use "write_file" to avoid confusion about what's what.
This commit is contained in:
parent
0b5c41acc7
commit
a799f2b637
1 changed files with 10 additions and 4 deletions
|
@ -250,16 +250,22 @@ drop table t17583;
|
|||
#
|
||||
|
||||
# This should work just fine...
|
||||
--exec echo "DELIMITER /" > $MYSQLTEST_VARDIR/tmp/bug21412.sql
|
||||
--exec echo "SELECT 1/" >> $MYSQLTEST_VARDIR/tmp/bug21412.sql
|
||||
--write_file $MYSQLTEST_VARDIR/tmp/bug21412.sql
|
||||
DELIMITER /
|
||||
SELECT 1/
|
||||
EOF
|
||||
--exec $MYSQL < $MYSQLTEST_VARDIR/tmp/bug21412.sql 2>&1
|
||||
|
||||
# This should give an error...
|
||||
--exec echo "DELIMITER \\" > $MYSQLTEST_VARDIR/tmp/bug21412.sql
|
||||
--write_file $MYSQLTEST_VARDIR/tmp/bug21412.sql
|
||||
DELIMITER \
|
||||
EOF
|
||||
--exec $MYSQL < $MYSQLTEST_VARDIR/tmp/bug21412.sql 2>&1
|
||||
|
||||
# As should this...
|
||||
--exec echo "DELIMITER \\\\" > $MYSQLTEST_VARDIR/tmp/bug21412.sql
|
||||
--write_file $MYSQLTEST_VARDIR/tmp/bug21412.sql
|
||||
DELIMITER \\
|
||||
EOF
|
||||
--exec $MYSQL < $MYSQLTEST_VARDIR/tmp/bug21412.sql 2>&1
|
||||
|
||||
--echo End of 5.0 tests
|
||||
|
|
Loading…
Add table
Reference in a new issue