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

Bug#19564: mysql displays NULL instead of space

Correct a bug (that I introduced, after using Oracle's database software for 
too many years) where the length of the database-sent data is incorrectly 
used to infer NULLness.
This commit is contained in:
cmiller@zippy.(none)
2006-05-09 22:35:51 -04:00
parent 999bcbfe37
commit 18754b0a97
3 changed files with 19 additions and 3 deletions

View File

@@ -2319,7 +2319,7 @@ print_table_data(MYSQL_RES *result)
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;