summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorunknown <cmiller@zippy.(none)>2006-05-15 14:58:48 -0400
committerunknown <cmiller@zippy.(none)>2006-05-15 14:58:48 -0400
commitb75d8b66a1aad873b3bf4a5e23ce245918a17f70 (patch)
treeeed3643121a89406e3d968c67ab0a2242c2a8e7e
parent3ad33d058e6b62106f014f9332dd4a118142e827 (diff)
downloadmariadb-git-b75d8b66a1aad873b3bf4a5e23ce245918a17f70.tar.gz
Porting fix of Bug#19564 from 5.0/5.1 trees.
client/mysql.cc: No longer use the length of data to infer whether it is null.
-rw-r--r--client/mysql.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/client/mysql.cc b/client/mysql.cc
index 1557d5cae2a..80fee6f0995 100644
--- a/client/mysql.cc
+++ b/client/mysql.cc
@@ -2338,8 +2338,7 @@ print_table_data(MYSQL_RES *result)
uint visible_length;
uint extra_padding;
- /* If this column may have a null value, use "NULL" for empty. */
- if (! not_null_flag[off] && (lengths[off] == 0))
+ if (! not_null_flag[off] && (cur[off] == NULL))
{
buffer= "NULL";
data_length= 4;