| 351 | public: |
| 352 | template <typename StatusType> |
| 353 | static isc_db_handle getIscDbHandle(StatusType* status, IAttachment* attachment) |
| 354 | { |
| 355 | if (!attachment) |
| 356 | return 0; |
| 357 | |
| 358 | ISC_STATUS_ARRAY statusVector = {0}; |
| 359 | isc_db_handle handle = 0; |
| 360 | |
| 361 | fb_get_database_handle(statusVector, &handle, attachment); |
| 362 | |
| 363 | if (!handle) |
| 364 | { |
| 365 | status->setErrors(statusVector); |
| 366 | StatusType::checkException(status); |
| 367 | } |
| 368 | |
| 369 | return handle; |
| 370 | } |
| 371 | |
| 372 | template <typename StatusType> |
| 373 | static isc_db_handle getIscDbHandle(StatusType* status, IExternalContext* context) |
nothing calls this directly
no test coverage detected