From 3e925554ece25332a21125233a13c0e10253d482 Mon Sep 17 00:00:00 2001 From: unknown Date: Mon, 16 Jul 2007 00:59:47 +0400 Subject: item_cmpfunc.cc: Fixed compiler warning. sql/item_cmpfunc.cc: Fixed compiler warning. --- sql/item_cmpfunc.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'sql/item_cmpfunc.cc') diff --git a/sql/item_cmpfunc.cc b/sql/item_cmpfunc.cc index 161a3f7bb19..a89f6337f5f 100644 --- a/sql/item_cmpfunc.cc +++ b/sql/item_cmpfunc.cc @@ -707,8 +707,7 @@ get_time_value(THD *thd, Item ***item_arg, Item **cache_arg, else { *is_null= item->get_time(<ime); - if (!is_null) - value= TIME_to_ulonglong_datetime(<ime); + value= !is_null ? TIME_to_ulonglong_datetime(<ime) : 0; } /* Do not cache GET_USER_VAR() function as its const_item() may return TRUE -- cgit v1.2.1