Commit 82767a0a authored by joerg@trift2's avatar joerg@trift2

Merge trift2.:/MySQL/M50/mysql-5.0

into  trift2.:/MySQL/M50/push-5.0
parents 583a3ef3 6515a7f4
...@@ -772,18 +772,20 @@ void ndbapi_tuples(Ndb *ndb, char *str, bool *res) ...@@ -772,18 +772,20 @@ void ndbapi_tuples(Ndb *ndb, char *str, bool *res)
* str: a random string of scan opearation and condition * str: a random string of scan opearation and condition
* return: true stands for ndbapi ok, false stands for ndbapi failed * return: true stands for ndbapi ok, false stands for ndbapi failed
*/ */
template class Vector<bool>;
bool compare_cal_ndb(char *str, Ndb *ndb) 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++) for(int i = 0; i < TUPLE_NUM; i++)
{ {
res_cal[i] = false; res_cal.push_back(false);
res_ndb[i] = false; res_ndb.push_back(false);
} }
check_all_tuples(str, res_cal); check_all_tuples(str, res_cal.getBase());
ndbapi_tuples(ndb, str, res_ndb); ndbapi_tuples(ndb, str, res_ndb.getBase());
for(int i = 0; i < TUPLE_NUM; i++) for(int i = 0; i < TUPLE_NUM; i++)
{ {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment