mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
Bug #31060: MySQL CLI parser bug 2
There was a problem when a DELIMITER COMMAND is not the first command on the line. I this case an extra line feed was added to the glob buffer and this was causing subsequent attempts to enter this delimiter to fail. Fixed by not adding a new line to the glob buffer if the command being added is a DELIMITER
This commit is contained in:
@ -314,4 +314,21 @@ remove_file $MYSQLTEST_VARDIR/tmp/bug38158.sql;
|
||||
#
|
||||
--exec $MYSQL -e "select @z:='1',@z=database()"
|
||||
|
||||
|
||||
#
|
||||
# Bug #31060: MySQL CLI parser bug 2
|
||||
#
|
||||
|
||||
--write_file $MYSQLTEST_VARDIR/tmp/bug31060.sql
|
||||
;DELIMITER DELIMITER
|
||||
;
|
||||
SELECT 1DELIMITER
|
||||
DELIMITER ;
|
||||
SELECT 1;
|
||||
EOF
|
||||
|
||||
--exec $MYSQL < $MYSQLTEST_VARDIR/tmp/bug31060.sql 2>&1
|
||||
|
||||
remove_file $MYSQLTEST_VARDIR/tmp/bug31060.sql;
|
||||
|
||||
--echo End of 5.0 tests
|
||||
|
Reference in New Issue
Block a user