diff options
author | lars/lthalmann@mysql.com/dl145h.mysql.com <> | 2007-04-10 18:25:27 +0200 |
---|---|---|
committer | lars/lthalmann@mysql.com/dl145h.mysql.com <> | 2007-04-10 18:25:27 +0200 |
commit | 904c75ede50e912ab267b52723daf37a3d8d3189 (patch) | |
tree | 855c9d2206d9c11ff118769420a1af81363885d7 /client | |
parent | bd461b01f05aa08062b75bffab38ff3299d1e08c (diff) | |
parent | 11ccfd80e69f59d74f59bb75cdc081c1ce6c5b14 (diff) | |
download | mariadb-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.cc | 11 |
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 { |