diff --git a/sql/item_cmpfunc.cc b/sql/item_cmpfunc.cc index a89f6337f5f..86eb10d50b0 100644 --- a/sql/item_cmpfunc.cc +++ b/sql/item_cmpfunc.cc @@ -707,7 +707,7 @@ get_time_value(THD *thd, Item ***item_arg, Item **cache_arg, else { *is_null= item->get_time(<ime); - value= !is_null ? TIME_to_ulonglong_datetime(<ime) : 0; + value= !*is_null ? TIME_to_ulonglong_datetime(<ime) : 0; } /* Do not cache GET_USER_VAR() function as its const_item() may return TRUE