summaryrefslogtreecommitdiff
path: root/mysql-test/t/mysql_delimiter.sql
diff options
context:
space:
mode:
authoriggy@rolltop.ignatz42.dyndns.org <>2006-11-21 21:10:02 -0500
committeriggy@rolltop.ignatz42.dyndns.org <>2006-11-21 21:10:02 -0500
commitbface97eccb59026abe425dc753b61aece72b7dd (patch)
treec505244d4f29337835050d6689727ea7df80c669 /mysql-test/t/mysql_delimiter.sql
parentf25590d8b7607c44ea6e207274bbd059d2649440 (diff)
downloadmariadb-git-bface97eccb59026abe425dc753b61aece72b7dd.tar.gz
Bug#19799 delimiter command not working correctly when sourcing a sql file
- Client side readline functions unconditionally search for Unix '\n' line endings. In this case, the delimiter statement was set to '//\r' instead of the intended '//'. When removing the '\n' check for and remove preceeding '\r' character as well.
Diffstat (limited to 'mysql-test/t/mysql_delimiter.sql')
-rw-r--r--mysql-test/t/mysql_delimiter.sql9
1 files changed, 9 insertions, 0 deletions
diff --git a/mysql-test/t/mysql_delimiter.sql b/mysql-test/t/mysql_delimiter.sql
index fa80c980b29..67075091c01 100644
--- a/mysql-test/t/mysql_delimiter.sql
+++ b/mysql-test/t/mysql_delimiter.sql
@@ -49,3 +49,12 @@ delimiter ; # Reset delimiter
# Bug #11523: \d works differently than delimiter
#
source t/mysql_delimiter_source.sql
+delimiter ; # Reset delimiter
+
+#
+# Bug #19799: delimiter command not working correctly when sourcing a sql file
+# with Windows style line endings.
+#
+source t/mysql_delimiter_19799.sql
+show databases//
+delimiter ; # Reset delimiter