summaryrefslogtreecommitdiff
path: root/client
diff options
context:
space:
mode:
authorlars/lthalmann@mysql.com/dl145h.mysql.com <>2007-04-10 18:25:27 +0200
committerlars/lthalmann@mysql.com/dl145h.mysql.com <>2007-04-10 18:25:27 +0200
commit904c75ede50e912ab267b52723daf37a3d8d3189 (patch)
tree855c9d2206d9c11ff118769420a1af81363885d7 /client
parentbd461b01f05aa08062b75bffab38ff3299d1e08c (diff)
parent11ccfd80e69f59d74f59bb75cdc081c1ce6c5b14 (diff)
downloadmariadb-git-904c75ede50e912ab267b52723daf37a3d8d3189.tar.gz
Merge mysql.com:/nfsdisk1/lars/bkroot/mysql-5.0-rpl
into mysql.com:/nfsdisk1/lars/MERGE/mysql-5.0-merge
Diffstat (limited to 'client')
-rw-r--r--client/mysql.cc11
1 files changed, 11 insertions, 0 deletions
diff --git a/client/mysql.cc b/client/mysql.cc
index 510420fdf3d..6b37bb7b6f5 100644
--- a/client/mysql.cc
+++ b/client/mysql.cc
@@ -2117,6 +2117,17 @@ com_go(String *buffer,char *line __attribute__((unused)))
if (!mysql_num_rows(result) && ! quick && !info_flag)
{
strmov(buff, "Empty set");
+ if (opt_xml)
+ {
+ /*
+ We must print XML header and footer
+ to produce a well-formed XML even if
+ the result set is empty (Bug#27608).
+ */
+ init_pager();
+ print_table_data_xml(result);
+ end_pager();
+ }
}
else
{