List:Commits« Previous MessageNext Message »
From:Ole John Aske Date:February 28 2011 11:38am
Subject:bzr commit into mysql-5.1-telco-7.0 branch (ole.john.aske:4235)
View as plain text  
#At file:///net/fimafeng09/export/home/tmp/oleja/mysql/mysql-5.1-telco-7.0/ based on revid:ole.john.aske@stripped

 4235 Ole John Aske	2011-02-28
      Fixed compiler warnings introduced by last push.

    modified:
      sql/ha_ndbcluster.cc
=== modified file 'sql/ha_ndbcluster.cc'
--- a/sql/ha_ndbcluster.cc	2011-02-28 10:42:04 +0000
+++ b/sql/ha_ndbcluster.cc	2011-02-28 11:38:19 +0000
@@ -11256,7 +11256,7 @@ ha_ndbcluster::records_in_range(uint inx
         if (eq_fraction >= 1.0)        // Exact match -> 1 row
           DBUG_RETURN(1);
 
-        rows = (Uint64)(table_rows / pow(table_rows, eq_fraction));
+        rows = (Uint64)((double)table_rows / pow(table_rows, eq_fraction));
         if (rows > (table_rows/50))    // EQ-range: Max 2% of rows
           rows= (table_rows/50);
 


Attachment: [text/bzr-bundle] bzr/ole.john.aske@oracle.com-20110228113819-4u8kpcbm1mqjwtmq.bundle
Thread
bzr commit into mysql-5.1-telco-7.0 branch (ole.john.aske:4235) Ole John Aske28 Feb