mirror of
https://github.com/MariaDB/server.git
synced 2025-01-19 05:22:25 +01:00
print test tables
This commit is contained in:
parent
b5c14cf8e1
commit
6244a24cfb
3 changed files with 5 additions and 4 deletions
|
@ -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();
|
||||
}
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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 "
|
||||
|
|
Loading…
Reference in a new issue