List:Commits« Previous MessageNext Message »
From:eugene Date:July 15 2007 10:59pm
Subject:bk commit into 5.0 tree (evgen:1.2528)
View as plain text  
Below is the list of changes that have just been committed into a local
5.0 repository of evgen. When evgen does a push these changes will
be propagated to the main repository and, within 24 hours after the
push, to the public repository.
For information on how to access the public repository
see http://dev.mysql.com/doc/mysql/en/installing-source-tree.html

ChangeSet@stripped, 2007-07-16 00:59:47+04:00, evgen@stripped +1 -0
  item_cmpfunc.cc:
    Fixed compiler warning.

  sql/item_cmpfunc.cc@stripped, 2007-07-16 00:59:18+04:00, evgen@stripped +1 -2
    Fixed compiler warning.

diff -Nrup a/sql/item_cmpfunc.cc b/sql/item_cmpfunc.cc
--- a/sql/item_cmpfunc.cc	2007-07-15 23:39:40 +04:00
+++ b/sql/item_cmpfunc.cc	2007-07-16 00:59:18 +04:00
@@ -707,8 +707,7 @@ get_time_value(THD *thd, Item ***item_ar
   else
   {
     *is_null= item->get_time(&ltime);
-    if (!is_null)
-      value= TIME_to_ulonglong_datetime(&ltime);
+    value= !is_null ? TIME_to_ulonglong_datetime(&ltime) : 0;
   }
   /*
     Do not cache GET_USER_VAR() function as its const_item() may return TRUE
Thread
bk commit into 5.0 tree (evgen:1.2528)eugene18 Jul