summaryrefslogtreecommitdiff
path: root/client
diff options
context:
space:
mode:
authorunknown <mats@romeo.(none)>2007-04-20 10:35:27 +0200
committerunknown <mats@romeo.(none)>2007-04-20 10:35:27 +0200
commit8bc4d1828989af457864483e11186bc172d677bf (patch)
treebd08208448c240ed7ccba699e7ca724c190b92ff /client
parent4eecb58fd65e77091c930f0a039a59e85d2c1b5d (diff)
parentb6451440b704985831b6d95182b120bf5143efce (diff)
downloadmariadb-git-8bc4d1828989af457864483e11186bc172d677bf.tar.gz
Merge romeo.(none):/home/bkroot/mysql-5.0-rpl
into romeo.(none):/home/bk/merge-mysql-5.0 client/mysql.cc: Auto merged sql/mysql_priv.h: Auto merged sql/mysqld.cc: Auto merged sql/set_var.cc: Auto merged sql/slave.cc: Auto merged sql/sql_class.cc: Auto merged
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
{