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. client/mysql.cc: No longer use the length of the data to infer whether it is NULL or not. mysql-test/r/mysql.result: Add result and version marker, and correct previous result. mysql-test/t/mysql.test: Add test and version marker
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user