diff options
Diffstat (limited to 'sql/sql_class.cc')
-rw-r--r-- | sql/sql_class.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sql/sql_class.cc b/sql/sql_class.cc index 059b17c6d84..2db08045d89 100644 --- a/sql/sql_class.cc +++ b/sql/sql_class.cc @@ -553,11 +553,11 @@ bool select_dump::send_data(List<Item> &items) } while ((item=li++)) { - Item_result result_type=item->result_type(); res=item->str_result(&tmp); - if (!res) + if (!res) // If NULL { - if (my_b_write(&cache,(byte*) "",1)) goto err; // NULL + if (my_b_write(&cache,(byte*) "",1)) + goto err; } else if (my_b_write(&cache,(byte*) res->ptr(),res->length())) { |