| 343 | } |
| 344 | |
| 345 | void InternalTransaction::doCommit(FbStatusVector* status, thread_db* tdbb, bool retain) |
| 346 | { |
| 347 | fb_assert(m_transaction); |
| 348 | |
| 349 | if (m_scope == traCommon && m_IntConnection.isCurrent()) |
| 350 | { |
| 351 | if (!retain) { |
| 352 | m_transaction = NULL; // release and nullify |
| 353 | } |
| 354 | } |
| 355 | else |
| 356 | { |
| 357 | EngineCallbackGuard guard(tdbb, *this, FB_FUNCTION); |
| 358 | if (retain) |
| 359 | m_transaction->commitRetaining(status); |
| 360 | else |
| 361 | { |
| 362 | m_transaction->commit(status); |
| 363 | if (!(status->getState() & IStatus::STATE_ERRORS)) |
| 364 | m_transaction.clear(); |
| 365 | } |
| 366 | } |
| 367 | } |
| 368 | |
| 369 | void InternalTransaction::doRollback(FbStatusVector* status, thread_db* tdbb, bool retain) |
| 370 | { |
nothing calls this directly
no test coverage detected