| 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 | { |
no test coverage detected