diff options
Diffstat (limited to 'sql/item.cc')
-rw-r--r-- | sql/item.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sql/item.cc b/sql/item.cc index bb8cf9a33cf..ff287a70d01 100644 --- a/sql/item.cc +++ b/sql/item.cc @@ -750,6 +750,8 @@ longlong Item_param::val_int() String *Item_param::val_str(String* str) { DBUG_ASSERT(value_is_set == 1); + if (null_value) + return NULL; switch (item_result_type) { case INT_RESULT: str->set(int_value, &my_charset_bin); |