List:Commits« Previous MessageNext Message »
From:Davi Arnaut Date:March 15 2010 12:07pm
Subject:bzr commit into mysql-5.1-bugteam branch (davi:3400) Bug#51289
View as plain text  
# At a local mysql-5.1-bugteam repository of davi

 3400 Davi Arnaut	2010-03-15
      Bug#51289: double Item_cache_decimal::val_real() is broken
      
      Fix up function return value, it must return a double.

    modified:
      sql/item.cc
=== modified file 'sql/item.cc'
--- a/sql/item.cc	2010-03-12 06:33:16 +0000
+++ b/sql/item.cc	2010-03-15 12:07:16 +0000
@@ -7159,7 +7159,7 @@ double Item_cache_decimal::val_real()
   DBUG_ASSERT(fixed);
   double res;
   if (!value_cached && !cache_value())
-    return NULL;
+    return 0.0;
   my_decimal2double(E_DEC_FATAL_ERROR, &decimal_value, &res);
   return res;
 }


Attachment: [text/bzr-bundle] bzr/davi.arnaut@sun.com-20100315120716-9u53xvihg1pbr4v2.bundle
Thread
bzr commit into mysql-5.1-bugteam branch (davi:3400) Bug#51289Davi Arnaut15 Mar