diff options
author | unknown <joreland@mysql.com> | 2004-08-12 08:54:21 +0200 |
---|---|---|
committer | unknown <joreland@mysql.com> | 2004-08-12 08:54:21 +0200 |
commit | db2db3c0884a0ffe4fa10e2b46b463633af3cdd3 (patch) | |
tree | a618513810ee54992dd6cf7c87349f7159a4983b /ndb | |
parent | 2ff7f9345d5e43107b8615735675f4d8882fb9a4 (diff) | |
download | mariadb-git-db2db3c0884a0ffe4fa10e2b46b463633af3cdd3.tar.gz |
testScan -n ScanRandomTable
testDict -n FragmentType
ndb/test/ndbapi/testDict.cpp:
Drop table before trying to create with special fragmentation
ndb/test/ndbapi/testScan.cpp:
testScan -n ScanRandomTable
ndb/test/src/NDBT_Tables.cpp:
testScan -n ScanRandomTable
Diffstat (limited to 'ndb')
-rw-r--r-- | ndb/test/ndbapi/testDict.cpp | 1 | ||||
-rw-r--r-- | ndb/test/ndbapi/testScan.cpp | 2 | ||||
-rw-r--r-- | ndb/test/src/NDBT_Tables.cpp | 1 |
3 files changed, 3 insertions, 1 deletions
diff --git a/ndb/test/ndbapi/testDict.cpp b/ndb/test/ndbapi/testDict.cpp index 1451c942362..e7597c26960 100644 --- a/ndb/test/ndbapi/testDict.cpp +++ b/ndb/test/ndbapi/testDict.cpp @@ -537,6 +537,7 @@ int runTestFragmentTypes(NDBT_Context* ctx, NDBT_Step* step){ } const NdbDictionary::Table* pTab = ctx->getTab(); + pNdb->getDictionary()->dropTable(pTab->getName()); NdbDictionary::Table newTab(* pTab); // Set fragment type for table diff --git a/ndb/test/ndbapi/testScan.cpp b/ndb/test/ndbapi/testScan.cpp index de60d68f213..3da0ceb6d8c 100644 --- a/ndb/test/ndbapi/testScan.cpp +++ b/ndb/test/ndbapi/testScan.cpp @@ -65,7 +65,7 @@ int runDropAllTablesExceptTestTable(NDBT_Context* ctx, NDBT_Step* step){ } int res = GETNDB(step)->getDictionary()->dropTable(tab->getName()); - if(res != -1){ + if(res == -1){ return NDBT_FAILED; } } diff --git a/ndb/test/src/NDBT_Tables.cpp b/ndb/test/src/NDBT_Tables.cpp index d0a46604316..8af72a75efa 100644 --- a/ndb/test/src/NDBT_Tables.cpp +++ b/ndb/test/src/NDBT_Tables.cpp @@ -803,6 +803,7 @@ int NDBT_Tables::createAllTables(Ndb* pNdb, bool _temp, bool existsOk){ for (int i=0; i < NDBT_Tables::getNumTables(); i++){ + pNdb->getDictionary()->dropTable(NDBT_Tables::getTable(i)->getName()); int ret= createTable(pNdb, NDBT_Tables::getTable(i)->getName(), _temp, existsOk); if(ret) |