summaryrefslogtreecommitdiff
path: root/client
diff options
context:
space:
mode:
authormats@romeo.(none) <>2007-04-20 10:35:27 +0200
committermats@romeo.(none) <>2007-04-20 10:35:27 +0200
commitf1caa9559cae091c45281c8af6094dc69a62990b (patch)
treebd08208448c240ed7ccba699e7ca724c190b92ff /client
parent82e4afb89f958eb86a991ff8194e28c38fec3df5 (diff)
parentbb7385883570a17b9c68c25659898538d031b055 (diff)
downloadmariadb-git-f1caa9559cae091c45281c8af6094dc69a62990b.tar.gz
Merge romeo.(none):/home/bkroot/mysql-5.0-rpl
into romeo.(none):/home/bk/merge-mysql-5.0
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
{