mirror of
https://github.com/MariaDB/server.git
synced 2025-01-29 02:05:57 +01:00
Fix for MDEV-15538, '-N' Produce html output wrong
This commit is contained in:
parent
0dd12b4f2a
commit
f00e25b4c4
3 changed files with 12 additions and 1 deletions
|
@ -3754,9 +3754,10 @@ print_table_data_html(MYSQL_RES *result)
|
|||
MYSQL_FIELD *field;
|
||||
|
||||
mysql_field_seek(result,0);
|
||||
(void) tee_fputs("<TABLE BORDER=1><TR>", PAGER);
|
||||
(void) tee_fputs("<TABLE BORDER=1>", PAGER);
|
||||
if (column_names)
|
||||
{
|
||||
(void) tee_fputs("<TR>", PAGER);
|
||||
while((field = mysql_fetch_field(result)))
|
||||
{
|
||||
tee_fputs("<TH>", PAGER);
|
||||
|
|
|
@ -613,3 +613,7 @@ count(*)
|
|||
0
|
||||
truncate table t1;
|
||||
drop table t1;
|
||||
#
|
||||
# MDEV-15538 '-N' Produce html output wrong
|
||||
#
|
||||
<TABLE BORDER=1><TR><TD>1</TD></TR></TABLE>
|
|
@ -678,3 +678,9 @@ select count(*) from t1; truncate table t1;
|
|||
--exec $MYSQL --disable-local-infile -e "/*q*/$ldli"
|
||||
select count(*) from t1; truncate table t1;
|
||||
drop table t1;
|
||||
|
||||
|
||||
--echo #
|
||||
--echo # MDEV-15538 '-N' Produce html output wrong
|
||||
--echo #
|
||||
--exec $MYSQL -NHe "select 1 as a"
|
||||
|
|
Loading…
Add table
Reference in a new issue