| 392 | |
| 393 | template <typename StatusType> |
| 394 | static isc_tr_handle getIscTrHandle(StatusType* status, ITransaction* transaction) |
| 395 | { |
| 396 | if (!transaction) |
| 397 | return 0; |
| 398 | |
| 399 | ISC_STATUS_ARRAY statusVector = {0}; |
| 400 | isc_tr_handle handle = 0; |
| 401 | |
| 402 | fb_get_transaction_handle(statusVector, &handle, transaction); |
| 403 | |
| 404 | if (!handle) |
| 405 | { |
| 406 | status->setErrors(statusVector); |
| 407 | StatusType::checkException(status); |
| 408 | } |
| 409 | |
| 410 | return handle; |
| 411 | } |
| 412 | |
| 413 | template <typename StatusType> |
| 414 | static isc_tr_handle getIscTrHandle(StatusType* status, IExternalContext* context) |
nothing calls this directly
no test coverage detected