Commit 6244a24c authored by joreland@mysql.com's avatar joreland@mysql.com

print test tables

parent b5c14cf8
...@@ -63,9 +63,10 @@ int main(int argc, const char** argv){ ...@@ -63,9 +63,10 @@ int main(int argc, const char** argv){
/** /**
* Print instead of creating * Print instead of creating
*/ */
if(argv[optind] != NULL){ if(optind < argc){
for(int i = optind; i<argc; i++) for(int i = optind; i<argc; i++){
NDBT_Tables::print(argv[i]); NDBT_Tables::print(argv[i]);
}
} else { } else {
NDBT_Tables::printAll(); NDBT_Tables::printAll();
} }
......
...@@ -41,7 +41,7 @@ args: -n PkInsertTwice T1 T6 T10 ...@@ -41,7 +41,7 @@ args: -n PkInsertTwice T1 T6 T10
max-time: 1500 max-time: 1500
cmd: testBasic cmd: testBasic
args: -n Fill T1 args: -n Fill T13
max-time: 1500 max-time: 1500
cmd: testBasic cmd: testBasic
......
...@@ -832,7 +832,7 @@ NDBT_Tables::dropAllTables(Ndb* pNdb){ ...@@ -832,7 +832,7 @@ NDBT_Tables::dropAllTables(Ndb* pNdb){
int int
NDBT_Tables::print(const char * _name){ 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){ if (tab == NULL){
ndbout << "Could not print table " << _name ndbout << "Could not print table " << _name
<< ", it doesn't exist in list of tables " << ", it doesn't exist in list of tables "
......
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