Merge aelkin@bk-internal.mysql.com:/home/bk/mysql-5.1-rpl

into  dsl-hkibras1-ff1dc300-249.dhcp.inet.fi:/home/elkin/MySQL/TEAM/FIXES/5.1/bugBug27015-s_query_q_append
parents cc403587 f418475e
...@@ -2517,7 +2517,8 @@ print_table_data_xml(MYSQL_RES *result) ...@@ -2517,7 +2517,8 @@ print_table_data_xml(MYSQL_RES *result)
tee_fputs("<?xml version=\"1.0\"?>\n\n<resultset statement=\"", PAGER); tee_fputs("<?xml version=\"1.0\"?>\n\n<resultset statement=\"", PAGER);
xmlencode_print(glob_buffer.ptr(), (int)strlen(glob_buffer.ptr())); xmlencode_print(glob_buffer.ptr(), (int)strlen(glob_buffer.ptr()));
tee_fputs("\">", PAGER); tee_fputs("\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\">",
PAGER);
fields = mysql_fetch_fields(result); fields = mysql_fetch_fields(result);
while ((cur = mysql_fetch_row(result))) while ((cur = mysql_fetch_row(result)))
......
...@@ -7,7 +7,7 @@ insert into t1 values (1, 2, 'a&b a<b a>b'); ...@@ -7,7 +7,7 @@ insert into t1 values (1, 2, 'a&b a<b a>b');
<?xml version="1.0"?> <?xml version="1.0"?>
<resultset statement="select * from t1 <resultset statement="select * from t1
"> " xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<row> <row>
<field name="a&amp;b">1</field> <field name="a&amp;b">1</field>
<field name="a&lt;b">2</field> <field name="a&lt;b">2</field>
...@@ -34,7 +34,7 @@ insert into t1 values (1, 2, 'a&b a<b a>b'); ...@@ -34,7 +34,7 @@ insert into t1 values (1, 2, 'a&b a<b a>b');
<?xml version="1.0"?> <?xml version="1.0"?>
<resultset statement="select count(*) from t1 <resultset statement="select count(*) from t1
"> " xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<row> <row>
<field name="count(*)">1</field> <field name="count(*)">1</field>
</row> </row>
...@@ -42,7 +42,7 @@ insert into t1 values (1, 2, 'a&b a<b a>b'); ...@@ -42,7 +42,7 @@ insert into t1 values (1, 2, 'a&b a<b a>b');
<?xml version="1.0"?> <?xml version="1.0"?>
<resultset statement="select 1 &lt; 2 from dual <resultset statement="select 1 &lt; 2 from dual
"> " xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<row> <row>
<field name="1 &lt; 2">1</field> <field name="1 &lt; 2">1</field>
</row> </row>
...@@ -50,7 +50,7 @@ insert into t1 values (1, 2, 'a&b a<b a>b'); ...@@ -50,7 +50,7 @@ insert into t1 values (1, 2, 'a&b a<b a>b');
<?xml version="1.0"?> <?xml version="1.0"?>
<resultset statement="select 1 &gt; 2 from dual <resultset statement="select 1 &gt; 2 from dual
"> " xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<row> <row>
<field name="1 &gt; 2">0</field> <field name="1 &gt; 2">0</field>
</row> </row>
...@@ -58,7 +58,7 @@ insert into t1 values (1, 2, 'a&b a<b a>b'); ...@@ -58,7 +58,7 @@ insert into t1 values (1, 2, 'a&b a<b a>b');
<?xml version="1.0"?> <?xml version="1.0"?>
<resultset statement="select 1 &amp; 3 from dual <resultset statement="select 1 &amp; 3 from dual
"> " xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<row> <row>
<field name="1 &amp; 3">1</field> <field name="1 &amp; 3">1</field>
</row> </row>
...@@ -66,7 +66,7 @@ insert into t1 values (1, 2, 'a&b a<b a>b'); ...@@ -66,7 +66,7 @@ insert into t1 values (1, 2, 'a&b a<b a>b');
<?xml version="1.0"?> <?xml version="1.0"?>
<resultset statement="select null from dual <resultset statement="select null from dual
"> " xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<row> <row>
<field name="NULL" xsi:nil="true" /> <field name="NULL" xsi:nil="true" />
</row> </row>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment