Commit b75d8b66 authored by unknown's avatar unknown
Browse files

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.
parent 3ad33d05
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -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;