mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
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.
This commit is contained in:
@ -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;
|
||||
|
Reference in New Issue
Block a user