Commit a transaction.
| 1837 | |
| 1838 | // Commit a transaction. |
| 1839 | ISC_STATUS API_ROUTINE isc_commit_transaction(ISC_STATUS* userStatus, isc_tr_handle* traHandle) |
| 1840 | { |
| 1841 | StatusVector status(userStatus); |
| 1842 | CheckStatusWrapper statusWrapper(&status); |
| 1843 | |
| 1844 | try |
| 1845 | { |
| 1846 | RefPtr<YTransaction> transaction(translateHandle(transactions, traHandle)); |
| 1847 | transaction->commit(&statusWrapper); |
| 1848 | |
| 1849 | if (!(status.getState() & IStatus::STATE_ERRORS)) |
| 1850 | *traHandle = 0; |
| 1851 | } |
| 1852 | catch (const Exception& e) |
| 1853 | { |
| 1854 | e.stuffException(&statusWrapper); |
| 1855 | } |
| 1856 | |
| 1857 | return status[1]; |
| 1858 | } |
| 1859 | |
| 1860 | |
| 1861 | // Do a commit retaining. |
nothing calls this directly
no test coverage detected