Skip to content
Snippets Groups Projects
Commit 69b044f1 authored by Steven Murray's avatar Steven Murray
Browse files

Select of ARCHIVE_FILE_ID_SEQ.NEXTVAL no longer autocommits

parent 83408c6f
No related branches found
No related tags found
No related merge requests found
......@@ -161,7 +161,7 @@ uint64_t OracleCatalogue::getNextArchiveFileId(rdbms::Conn &conn) {
"ARCHIVE_FILE_ID_SEQ.NEXTVAL AS ARCHIVE_FILE_ID "
"FROM "
"DUAL";
auto stmt = conn.createStmt(sql, rdbms::Stmt::AutocommitMode::ON);
auto stmt = conn.createStmt(sql, rdbms::Stmt::AutocommitMode::OFF);
auto rset = stmt->executeQuery();
if (!rset->next()) {
throw exception::Exception(std::string("Result set is unexpectedly empty"));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment