X-Git-Url: https://git.teslayout.com/public/public/public/?p=anna.git;a=blobdiff_plain;f=source%2Fdbms.mysql%2FDatabase.cpp;fp=source%2Fdbms.mysql%2FDatabase.cpp;h=ccc64f19241ce2dbc7d04d5c76f186aa90edd591;hp=9508158a80d2c01c2e793f20235fc56b43351b0d;hb=5a6cba5fde2b2f538a7515f8293cc0a8d9589dfa;hpb=af9c86ffb0e28d35ad94d99c5f77e41578c972b4 diff --git a/source/dbms.mysql/Database.cpp b/source/dbms.mysql/Database.cpp index 9508158..ccc64f1 100644 --- a/source/dbms.mysql/Database.cpp +++ b/source/dbms.mysql/Database.cpp @@ -31,7 +31,7 @@ mysql::Database::Database(const char* componentName, const char* dbmsName, const } void mysql::Database::do_initialize() -throw(RuntimeException) { +noexcept(false) { LOGMETHOD(TraceMethod tm("anna::dbms::mysql::Database", "do_initialize", ANNA_FILE_LOCATION)); dbms::Database::do_initialize(); } @@ -47,31 +47,31 @@ mysql::Database::~Database() { } dbms::Connection* mysql::Database::allocateConnection(const std::string& name, const char* user, const char* password) -throw(RuntimeException) { +noexcept(false) { return new Connection(*this, name, user, password); } dbms::Statement* mysql::Database::allocateStatement(const char* name, const std::string& expression, const bool isCritical) -throw(RuntimeException) { +noexcept(false) { return new Statement(*this, name, expression, isCritical); } dbms::InputBind* mysql::Database::allocateInputBind(const char* name, Data& data) -throw(RuntimeException) { +noexcept(false) { return new InputBind(name, data); } void mysql::Database::deallocate(dbms::InputBind* inputBind) -throw() { +{ delete(InputBind*) inputBind; } dbms::OutputBind* mysql::Database::allocateOutputBind(const char* name, Data& data) -throw(RuntimeException) { +noexcept(false) { return new OutputBind(name, data); } void mysql::Database::deallocate(dbms::OutputBind* outputBind) -throw() { +{ delete(OutputBind*) outputBind; }