diff options
author | bar@mysql.com <> | 2007-04-09 17:53:10 +0500 |
---|---|---|
committer | bar@mysql.com <> | 2007-04-09 17:53:10 +0500 |
commit | 9faaec9e1ba52e338a900fcd599ba52ad66b0c81 (patch) | |
tree | 8c65ae4e849cc30cb02aeb1d9c439bd31470df97 /mysql-test/r/client_xml.result | |
parent | cec17aa0ba1ff3252efaadc0e52ee3a90eba37cd (diff) | |
download | mariadb-git-9faaec9e1ba52e338a900fcd599ba52ad66b0c81.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.
Diffstat (limited to 'mysql-test/r/client_xml.result')
-rw-r--r-- | mysql-test/r/client_xml.result | 14 |
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; |