mirror of
https://github.com/MariaDB/server.git
synced 2025-08-01 03:47:19 +03:00
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
This commit is contained in:
@ -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
|
||||
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
@ -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)
|
||||
|
Reference in New Issue
Block a user