1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-08 11:22:35 +03:00

Bug#25946 Namespace not include for xsi usage within --xml output with null/nil values

Fix: adding namespace reference into "mysql --xml" output,
to make it work similary to "mysqldump --xml".
This commit is contained in:
bar@mysql.com
2007-03-27 13:30:43 +05:00
parent f0a95a4e20
commit 5e52cd3650
2 changed files with 8 additions and 7 deletions

View File

@@ -2529,7 +2529,8 @@ print_table_data_xml(MYSQL_RES *result)
tee_fputs("<?xml version=\"1.0\"?>\n\n<resultset statement=\"", PAGER);
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);
while ((cur = mysql_fetch_row(result)))