summaryrefslogtreecommitdiff
path: root/mysql-test/r/client_xml.result
diff options
context:
space:
mode:
authorunknown <bar@mysql.com>2007-04-09 17:53:10 +0500
committerunknown <bar@mysql.com>2007-04-09 17:53:10 +0500
commit33ac50f0769a01028bdb57a741eb449140ca5504 (patch)
tree8c65ae4e849cc30cb02aeb1d9c439bd31470df97 /mysql-test/r/client_xml.result
parent0c6731fdfa2438d20a027099b1038d0bea12a010 (diff)
downloadmariadb-git-33ac50f0769a01028bdb57a741eb449140ca5504.tar.gz
bug#27608 XML output is not well-formed
Problem: output was empty if the result is empty. Fix: print XML header and footer, even if the result is empty, to produce well-formed XML output. client/mysql.cc: Print header and footer even on empty set, when --xml mysql-test/r/client_xml.result: Adding test case mysql-test/t/client_xml.test: Adding test case
Diffstat (limited to 'mysql-test/r/client_xml.result')
-rw-r--r--mysql-test/r/client_xml.result14
1 files changed, 14 insertions, 0 deletions
diff --git a/mysql-test/r/client_xml.result b/mysql-test/r/client_xml.result
index 6a148954fcd..ed5e8f2c1b8 100644
--- a/mysql-test/r/client_xml.result
+++ b/mysql-test/r/client_xml.result
@@ -71,4 +71,18 @@ insert into t1 values (1, 2, 'a&b a<b a>b');
<field name="NULL" xsi:nil="true" />
</row>
</resultset>
+<?xml version="1.0"?>
+
+<resultset statement="select 1 limit 0
+" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"></resultset>
+--------------
+select 1 limit 0
+--------------
+
+<?xml version="1.0"?>
+
+<resultset statement="select 1 limit 0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"></resultset>
+Empty set
+
+Bye
drop table t1;