From: Date: September 13 2006 7:35am Subject: bk commit into 5.0 tree (bar:1.2236) BUG#21263 List-Archive: http://lists.mysql.com/commits/11814 X-Bug: 21263 Message-Id: <200609130535.k8D5ZYAR099592@bar.intranet.mysql.r18.ru> Below is the list of changes that have just been committed into a local 5.0 repository of bar. When bar does a push these changes will be propagated to the main repository and, within 24 hours after the push, to the public repository. For information on how to access the public repository see http://dev.mysql.com/doc/mysql/en/installing-source-tree.html ChangeSet@stripped, 2006-09-13 10:35:27+05:00, bar@stripped +2 -0 Bug#21263 mysql client XML output does not distinguish between NULL and string 'NULL' Fix: "mysql --xml" now print NULL values the same way that "mysqldump --xml" does: to distinguish from empty strings: and from string "NULL": NULL client/mysql.cc@stripped, 2006-09-13 10:35:22+05:00, bar@stripped +8 -3 Fixing to print NULLs differently from empty strings mysql-test/r/client_xml.result@stripped, 2006-09-13 10:35:22+05:00, bar@stripped +1 -1 Fixing test result accordingly # This is a BitKeeper patch. What follows are the unified diffs for the # set of deltas contained in the patch. The rest of the patch, the part # that BitKeeper cares about, is below these diffs. # User: bar # Host: bar.intranet.mysql.r18.ru # Root: /usr/home/bar/mysql-5.0.b21263 --- 1.217/client/mysql.cc 2006-09-13 10:35:35 +05:00 +++ 1.218/client/mysql.cc 2006-09-13 10:35:35 +05:00 @@ -2513,9 +2513,14 @@ { tee_fprintf(PAGER, "\t"); - xmlencode_print(cur[i], lengths[i]); - tee_fprintf(PAGER, "\n"); + if (cur[i]) + { + tee_fprintf(PAGER, "\">"); + xmlencode_print(cur[i], lengths[i]); + tee_fprintf(PAGER, "\n"); + } + else + tee_fprintf(PAGER, "\" xsi:nil=\"true\" />\n"); } (void) tee_fputs(" \n", PAGER); } --- 1.3/mysql-test/r/client_xml.result 2006-09-13 10:35:36 +05:00 +++ 1.4/mysql-test/r/client_xml.result 2006-09-13 10:35:36 +05:00 @@ -68,7 +68,7 @@ - NULL + drop table t1;