From eca1b560aeb53ee6a476e564e99f70c2e4af2b67 Mon Sep 17 00:00:00 2001 From: "cmiller@zippy.(none)" <> Date: Mon, 15 May 2006 14:58:48 -0400 Subject: [PATCH] Porting fix of Bug#19564 from 5.0/5.1 trees. --- client/mysql.cc | 3 +-- 1 file changed, 1 insertion(+), 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;