MCPcopy Create free account
hub / github.com/FirebirdSQL/firebird / getIscDbHandle

Method getIscDbHandle

src/include/firebird/Interface.h:353–370  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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)

Callers

nothing calls this directly

Calls 3

setErrorsMethod · 0.45
getAttachmentMethod · 0.45
releaseMethod · 0.45

Tested by

no test coverage detected