mirror of
https://github.com/MariaDB/server.git
synced 2026-05-09 16:44:29 +02:00
Fixed a bug in mysql.cc
client/mysql.cc: Fixed a bug in mysql.cc in xml.
This commit is contained in:
parent
ddefe21d24
commit
5b5139527c
1 changed files with 2 additions and 2 deletions
|
|
@ -38,7 +38,7 @@
|
|||
#include <signal.h>
|
||||
#include <violite.h>
|
||||
|
||||
const char *VER="11.21";
|
||||
const char *VER="11.22";
|
||||
|
||||
/* Don't try to make a nice table if the data is too big */
|
||||
#define MAX_COLUMN_LENGTH 1024
|
||||
|
|
@ -1714,7 +1714,7 @@ print_table_data_xml(MYSQL_RES *result)
|
|||
mysql_field_seek(result,0);
|
||||
|
||||
tee_fputs("<?xml version=\"1.0\"?>\n\n<resultset statement=\"", PAGER);
|
||||
xmlencode_print(glob_buffer.ptr(), strlen(glob_buffer.ptr()) - 1);
|
||||
xmlencode_print(glob_buffer.ptr(), strlen(glob_buffer.ptr()));
|
||||
tee_fputs("\">", PAGER);
|
||||
|
||||
fields = mysql_fetch_fields(result);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue