X-Git-Url: https://git.teslayout.com/public/public/public/?p=anna.git;a=blobdiff_plain;f=source%2Fdbms.oracle%2FDatabase.cpp;fp=source%2Fdbms.oracle%2FDatabase.cpp;h=2ff1553e8d334a539a3d0899c6ab1da9693f7c08;hp=a90785e4cc8240bec8dafffdf6b9f3973bfa53f4;hb=5a6cba5fde2b2f538a7515f8293cc0a8d9589dfa;hpb=af9c86ffb0e28d35ad94d99c5f77e41578c972b4 diff --git a/source/dbms.oracle/Database.cpp b/source/dbms.oracle/Database.cpp index a90785e..2ff1553 100644 --- a/source/dbms.oracle/Database.cpp +++ b/source/dbms.oracle/Database.cpp @@ -37,7 +37,7 @@ oracle::Database::Database(const char* componentName, const char* dbmsName) : } void oracle::Database::do_initialize() -throw(RuntimeException) { +noexcept(false) { LOGMETHOD(TraceMethod tm("anna::dbms::oracle::Database", "do_initialize", ANNA_FILE_LOCATION)); if(a_env != NULL) { @@ -89,32 +89,32 @@ oracle::Database::~Database() { } dbms::Connection* oracle::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* oracle::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* oracle::Database::allocateInputBind(const char* name, Data& data) -throw(RuntimeException) { +noexcept(false) { return new InputBind(name, data); } void oracle::Database::deallocate(dbms::InputBind* inputBind) -throw() { +{ delete(InputBind*) inputBind; } dbms::OutputBind* oracle::Database::allocateOutputBind(const char* name, Data& data) -throw(RuntimeException) { +noexcept(false) { return new OutputBind(name, data); } void oracle::Database::deallocate(dbms::OutputBind* outputBind) -throw() { +{ delete(OutputBind*) outputBind; } @@ -128,7 +128,7 @@ throw() { */ /*static*/ void oracle::Database::initializeDecimalPoint() -throw(RuntimeException) { +noexcept(false) { setlocale(LC_NUMERIC, ""); struct lconv *locale = localeconv();