List:Commits« Previous MessageNext Message »
From:jonas Date:March 5 2007 6:27pm
Subject:bk commit into 5.1 tree (jonas:1.2108)
View as plain text  
Below is the list of changes that have just been committed into a local
5.1 repository of jonas. When jonas 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-03-05 19:27:41+01:00, jonas@stripped +1 -0
  fix unportable code in testScanFilter

  storage/ndb/test/ndbapi/testScanFilter.cpp@stripped, 2007-03-05 19:27:39+01:00, jonas@stripped +8 -9
    fix unportable code

# 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:	jonas
# Host:	perch.ndb.mysql.com
# Root:	/home/jonas/src/drop5

--- 1.1/storage/ndb/test/ndbapi/testScanFilter.cpp	2007-03-05 19:27:44 +01:00
+++ 1.2/storage/ndb/test/ndbapi/testScanFilter.cpp	2007-03-05 19:27:44 +01:00
@@ -767,16 +767,14 @@
 */
 bool compare_cal_ndb(char *str, Ndb *ndb)
 {
-  bool res_cal[TUPLE_NUM], res_ndb[TUPLE_NUM];
+  Vector<bool> res_cal;
+  Vector<bool> res_ndb;
+  bool tmp = false;
+  res_cal.fill(TUPLE_NUM, tmp);
+  res_ndb.fill(TUPLE_NUM, tmp);
 
-  for(int i = 0; i < TUPLE_NUM; i++)
-  {
-    res_cal[i] = false;
-    res_ndb[i] = false;
-  }
-
-  check_all_tuples(str, res_cal);
-  ndbapi_tuples(ndb, str, res_ndb);
+  check_all_tuples(str, res_cal.getBase());
+  ndbapi_tuples(ndb, str, res_ndb.getBase());
 
   for(int i = 0; i < TUPLE_NUM; i++)
   {
@@ -786,6 +784,7 @@
   return true;
 }
 
+template class Vector<bool>;
 
 int runCreateTables(NDBT_Context* ctx, NDBT_Step* step)
 {
Thread
bk commit into 5.1 tree (jonas:1.2108)jonas5 Mar