diff options
author | unknown <tsmith@ramayana.hindu.god> | 2007-10-10 14:12:36 -0600 |
---|---|---|
committer | unknown <tsmith@ramayana.hindu.god> | 2007-10-10 14:12:36 -0600 |
commit | c7ca2283a97b3ff8df693b02cec682e24b86dc61 (patch) | |
tree | f6768e14c6b33469e5461e1d148265be515118fe /ndb | |
parent | 80ace294160241e48e211965ad412ad1d4806f73 (diff) | |
parent | f4b6234c489c4b8c3242828953b8ae71e5653c59 (diff) | |
download | mariadb-git-c7ca2283a97b3ff8df693b02cec682e24b86dc61.tar.gz |
Merge ramayana.hindu.god:/home/tsmith/m/bk/50
into ramayana.hindu.god:/home/tsmith/m/bk/maint/50
mysql-test/mysql-test-run.pl:
Auto merged
scripts/mysql_system_tables_data.sql:
Auto merged
Diffstat (limited to 'ndb')
-rw-r--r-- | ndb/test/ndbapi/testScanFilter.cpp | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/ndb/test/ndbapi/testScanFilter.cpp b/ndb/test/ndbapi/testScanFilter.cpp index 81aa6b82fa0..48a7027eb66 100644 --- a/ndb/test/ndbapi/testScanFilter.cpp +++ b/ndb/test/ndbapi/testScanFilter.cpp @@ -772,18 +772,20 @@ void ndbapi_tuples(Ndb *ndb, char *str, bool *res) * str: a random string of scan opearation and condition * return: true stands for ndbapi ok, false stands for ndbapi failed */ +template class Vector<bool>; 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; for(int i = 0; i < TUPLE_NUM; i++) { - res_cal[i] = false; - res_ndb[i] = false; + res_cal.push_back(false); + res_ndb.push_back(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++) { |