Commit dead0ccb authored by iggy@rolltop.ignatz42.dyndns.org's avatar iggy@rolltop.ignatz42.dyndns.org

Merge rolltop.ignatz42.dyndns.org:/mnt/storeage/bug19799/my50-bug19799

into  rolltop.ignatz42.dyndns.org:/mnt/storeage/bug19799/my51-bug19799
parents 7673a2d4 bface97e
...@@ -51,7 +51,8 @@ char *batch_readline(LINE_BUFFER *line_buff) ...@@ -51,7 +51,8 @@ char *batch_readline(LINE_BUFFER *line_buff)
if (!(pos=intern_read_line(line_buff,&out_length))) if (!(pos=intern_read_line(line_buff,&out_length)))
return 0; return 0;
if (out_length && pos[out_length-1] == '\n') if (out_length && pos[out_length-1] == '\n')
out_length--; /* Remove '\n' */ if (--out_length && pos[out_length-1] == '\r') /* Remove '\n' */
out_length--; /* Remove '\r' */
line_buff->read_length=out_length; line_buff->read_length=out_length;
pos[out_length]=0; pos[out_length]=0;
return pos; return pos;
......
...@@ -36,6 +36,10 @@ Tables_in_test ...@@ -36,6 +36,10 @@ Tables_in_test
t1 t1
t2 t2
t3 t3
Database
information_schema
mysql
test
_ _
Test delimiter : from command line Test delimiter : from command line
a a
......
...@@ -49,3 +49,12 @@ delimiter ; # Reset delimiter ...@@ -49,3 +49,12 @@ delimiter ; # Reset delimiter
# Bug #11523: \d works differently than delimiter # Bug #11523: \d works differently than delimiter
# #
source t/mysql_delimiter_source.sql 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
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment