MCPcopy Create free account
hub / github.com/SOCI/soci / commit

Method commit

src/backends/odbc/session.cpp:404–412  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

402}
403
404void odbc_session_backend::commit()
405{
406 SQLRETURN rc = SQLEndTran(SQL_HANDLE_DBC, hdbc_, SQL_COMMIT);
407 if (is_odbc_error(rc))
408 {
409 throw odbc_soci_error(SQL_HANDLE_DBC, hdbc_, "committing transaction");
410 }
411 reset_transaction();
412}
413
414void odbc_session_backend::rollback()
415{

Callers

nothing calls this directly

Calls 1

is_odbc_errorFunction · 0.85

Tested by

no test coverage detected