List:Internals« Previous MessageNext Message »
From:gluh Date:July 13 2005 12:23pm
Subject:bk commit into 5.0 tree (gluh:1.1918)
View as plain text  
Below is the list of changes that have just been committed into a local
5.0 repository of gluh. When gluh 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.1918 05/07/13 15:23:36 gluh@stripped +1 -0
  Post-merge fix

  sql/item_strfunc.cc
    1.241 05/07/13 15:23:31 gluh@stripped +3 -2
    Post-merge fix

# 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:	gluh
# Host:	eagle.intranet.mysql.r18.ru
# Root:	/home/gluh/MySQL/Merge/5.0

--- 1.240/sql/item_strfunc.cc	Wed Jul 13 14:36:14 2005
+++ 1.241/sql/item_strfunc.cc	Wed Jul 13 15:23:31 2005
@@ -2383,9 +2383,10 @@
     ulonglong dec;
     char ans[65],*ptr;
     /* Return hex of unsigned longlong value */
-    if (args[0]->result_type() == REAL_RESULT)
+    if (args[0]->result_type() == REAL_RESULT ||
+        args[0]->result_type() == DECIMAL_RESULT)
     {
-      double val= args[0]->val();
+      double val= args[0]->val_real();
       if ((val <= (double) LONGLONG_MIN) || 
           (val >= (double) (ulonglong) ULONGLONG_MAX))
         dec=  ~(longlong) 0;
Thread
bk commit into 5.0 tree (gluh:1.1918)gluh13 Jul