diff options
Diffstat (limited to 'ndb/tools/desc.cpp')
-rw-r--r-- | ndb/tools/desc.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ndb/tools/desc.cpp b/ndb/tools/desc.cpp index e5b98c4c8e9..9eed1485a6d 100644 --- a/ndb/tools/desc.cpp +++ b/ndb/tools/desc.cpp @@ -22,6 +22,7 @@ int main(int argc, const char** argv){ + ndb_init(); const char* _tabname = NULL; const char* _dbname = "TEST_DB"; int _unqualified = 0; @@ -50,7 +51,6 @@ int main(int argc, const char** argv){ Ndb* pMyNdb; pMyNdb = new Ndb(_dbname); - pMyNdb->useFullyQualifiedNames(!_unqualified); pMyNdb->init(); ndbout << "Waiting..."; @@ -74,11 +74,11 @@ int main(int argc, const char** argv){ ndbout << "-- Indexes -- " << endl; ndbout << "PRIMARY KEY("; unsigned j; - for (j= 0; j < pTab->getNoOfPrimaryKeys(); j++) + for (j= 0; (int)j < pTab->getNoOfPrimaryKeys(); j++) { const NdbDictionary::Column * col = pTab->getColumn(j); ndbout << col->getName(); - if (j < pTab->getNoOfPrimaryKeys()-1) + if ((int)j < pTab->getNoOfPrimaryKeys()-1) ndbout << ", "; } ndbout << ") - UniqueHashIndex" << endl; |