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

Function validateHandle

src/jrd/jrd.cpp:641–651  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

639 };
640
641 inline void validateHandle(thread_db* tdbb, Jrd::Attachment* const attachment)
642 {
643 if (attachment && attachment == tdbb->getAttachment())
644 return;
645
646 if (!attachment || !attachment->att_database)
647 status_exception::raise(Arg::Gds(isc_bad_db_handle));
648
649 tdbb->setAttachment(attachment);
650 tdbb->setDatabase(attachment->att_database);
651 }
652
653 inline void validateHandle(thread_db* tdbb, jrd_tra* const transaction)
654 {

Callers 15

EngineContextHolderMethod · 0.85
createBlobMethod · 0.85
getSliceMethod · 0.85
openBlobMethod · 0.85
putSliceMethod · 0.85
freeEngineDataMethod · 0.85
queryMethod · 0.85
startMethod · 0.85
startAndSendMethod · 0.85
transactRequestMethod · 0.85
executeMethod · 0.85
openCursorMethod · 0.85

Calls 8

raiseFunction · 0.85
GdsClass · 0.85
setDatabaseMethod · 0.80
getAttachmentMethod · 0.45
setAttachmentMethod · 0.45
setTransactionMethod · 0.45
getTransactionMethod · 0.45
getHandleMethod · 0.45

Tested by

no test coverage detected