diff options
author | unknown <joreland@mysql.com> | 2005-01-01 19:25:31 +0100 |
---|---|---|
committer | unknown <joreland@mysql.com> | 2005-01-01 19:25:31 +0100 |
commit | 11a2a3562396ca59b67193056ac2ba4740b8ed0c (patch) | |
tree | 9e2e7fef2c5322221973630ba079cb3b47386946 /ndb/tools/drop_tab.cpp | |
parent | a61ef10262a327ce0c622f6c9b6e99e902e885a6 (diff) | |
download | mariadb-git-11a2a3562396ca59b67193056ac2ba4740b8ed0c.tar.gz |
ndb - removed deprecated Ndb constructor
ndb/include/ndbapi/Ndb.hpp:
removed deprecated methods
ndb/src/ndbapi/NdbPool.cpp:
removed deprecated methods
ndb/src/ndbapi/NdbPoolImpl.cpp:
removed deprecated methods
ndb/src/ndbapi/NdbPoolImpl.hpp:
removed deprecated methods
ndb/src/ndbapi/Ndbinit.cpp:
removed deprecated methods
ndb/tools/delete_all.cpp:
removed deprecated methods
ndb/tools/desc.cpp:
removed deprecated methods
ndb/tools/drop_index.cpp:
removed deprecated methods
ndb/tools/drop_tab.cpp:
removed deprecated methods
ndb/tools/restore/consumer_restore.cpp:
removed deprecated methods
ndb/tools/restore/consumer_restore.hpp:
removed deprecated methods
ndb/tools/restore/restore_main.cpp:
removed deprecated methods
ndb/tools/select_all.cpp:
removed deprecated methods
ndb/tools/select_count.cpp:
removed deprecated methods
Diffstat (limited to 'ndb/tools/drop_tab.cpp')
-rw-r--r-- | ndb/tools/drop_tab.cpp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/ndb/tools/drop_tab.cpp b/ndb/tools/drop_tab.cpp index 2b0b6908449..81131c9060a 100644 --- a/ndb/tools/drop_tab.cpp +++ b/ndb/tools/drop_tab.cpp @@ -78,8 +78,13 @@ int main(int argc, char** argv){ return NDBT_ProgramExit(NDBT_WRONGARGS); } - Ndb::setConnectString(opt_connect_str); - Ndb MyNdb(_dbname); + Ndb_cluster_connection con(opt_connect_str); + if(con.connect(12, 5, 1) != 0) + { + return NDBT_ProgramExit(NDBT_FAILED); + } + Ndb MyNdb(&con, _dbname ); + if(MyNdb.init() != 0){ ERR(MyNdb.getNdbError()); return NDBT_ProgramExit(NDBT_FAILED); |