print test tables

This commit is contained in:
joreland@mysql.com 2004-08-11 08:21:31 +02:00
parent b5c14cf8e1
commit 6244a24cfb
3 changed files with 5 additions and 4 deletions

View file

@ -63,9 +63,10 @@ int main(int argc, const char** argv){
/**
* Print instead of creating
*/
if(argv[optind] != NULL){
for(int i = optind; i<argc; i++)
if(optind < argc){
for(int i = optind; i<argc; i++){
NDBT_Tables::print(argv[i]);
}
} else {
NDBT_Tables::printAll();
}

View file

@ -41,7 +41,7 @@ args: -n PkInsertTwice T1 T6 T10
max-time: 1500
cmd: testBasic
args: -n Fill T1
args: -n Fill T13
max-time: 1500
cmd: testBasic

View file

@ -832,7 +832,7 @@ NDBT_Tables::dropAllTables(Ndb* pNdb){
int
NDBT_Tables::print(const char * _name){
const NdbDictionary::Table* tab = NDBT_Tables::getTable(_name);
const NDBT_Table * tab = (const NDBT_Table*)NDBT_Tables::getTable(_name);
if (tab == NULL){
ndbout << "Could not print table " << _name
<< ", it doesn't exist in list of tables "