Skip to content

Commit 82767a0

Browse files
author
joerg@trift2.
committed
Merge trift2.:/MySQL/M50/mysql-5.0
into trift2.:/MySQL/M50/push-5.0
2 parents 583a3ef + 6515a7f commit 82767a0

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

ndb/test/ndbapi/testScanFilter.cpp

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -772,18 +772,20 @@ void ndbapi_tuples(Ndb *ndb, char *str, bool *res)
772772
* str: a random string of scan opearation and condition
773773
* return: true stands for ndbapi ok, false stands for ndbapi failed
774774
*/
775+
template class Vector<bool>;
775776
bool compare_cal_ndb(char *str, Ndb *ndb)
776777
{
777-
bool res_cal[TUPLE_NUM], res_ndb[TUPLE_NUM];
778+
Vector<bool> res_cal;
779+
Vector<bool> res_ndb;
778780

779781
for(int i = 0; i < TUPLE_NUM; i++)
780782
{
781-
res_cal[i] = false;
782-
res_ndb[i] = false;
783+
res_cal.push_back(false);
784+
res_ndb.push_back(false);
783785
}
784786

785-
check_all_tuples(str, res_cal);
786-
ndbapi_tuples(ndb, str, res_ndb);
787+
check_all_tuples(str, res_cal.getBase());
788+
ndbapi_tuples(ndb, str, res_ndb.getBase());
787789

788790
for(int i = 0; i < TUPLE_NUM; i++)
789791
{

0 commit comments

Comments
 (0)