Commit d569cd27 authored by Steven Murray's avatar Steven Murray
Browse files

Constructor of OcciConn turns off the Oracle recycle bin

parent fddfdefc
......@@ -38,6 +38,13 @@ OcciConn::OcciConn(oracle::occi::Environment *const env, oracle::occi::Connectio
throw exception::Exception(std::string(__FUNCTION__) + " failed"
": The OCCI connection is a nullptr pointer");
}
try {
const std::string sql = "ALTER SESSION SET recyclebin = OFF";
executeNonQuery(sql, Stmt::AutocommitMode::OFF);
} catch(exception::Exception &ex) {
throw exception::Exception(std::string(__FUNCTION__) + " failed: " + ex.getMessage().str());
}
}
//------------------------------------------------------------------------------
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment