List:Commits« Previous MessageNext Message »
From:Gunnar von Boehn Date:January 14 2006 8:53am
Subject:bk commit into 4.1 tree (gvb:1.2482) BUG#15828
View as plain text  
Below is the list of changes that have just been committed into a local
4.1 repository of gvb. When gvb 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
  1.2482 06/01/14 09:53:12 gvb@phoenix.(none) +1 -0
  item_timefunc.cc:
    fix for bug#15828 after review

  sql/item_timefunc.cc
    1.95 06/01/14 09:51:39 gvb@phoenix.(none) +2 -1
    fix for bug#15828 after review

# This is a BitKeeper patch.  What follows are the unified diffs for the
# set of deltas contained in the patch.  The rest of the patch, the part
# that BitKeeper cares about, is below these diffs.
# User:	gvb
# Host:	phoenix.(none)
# Root:	/data/mysql-4.1-BK

--- 1.94/sql/item_timefunc.cc	2006-01-13 14:40:51 +01:00
+++ 1.95/sql/item_timefunc.cc	2006-01-14 09:51:39 +01:00
@@ -2750,7 +2750,8 @@
   cached_field_type= MYSQL_TYPE_STRING;
   max_length= MAX_DATETIME_FULL_WIDTH*MY_CHARSET_BIN_MB_MAXLEN;
   cached_timestamp_type= MYSQL_TIMESTAMP_NONE;
-  if ((const_item= args[1]->const_item()) && !args[1]->null_value)
+  if (!args[1]->null_value && (const_item= args[1]->const_item()))
+  //if ((const_item= args[1]->const_item()) && !args[1]->null_value)
   {
     format= args[1]->val_str(&format_str);
     cached_format_type= get_date_time_result_type(format->ptr(),
Thread
bk commit into 4.1 tree (gvb:1.2482) BUG#15828Gunnar von Boehn14 Jan