Check the attachment handle for persistent errors.
| 3814 | |
| 3815 | // Check the attachment handle for persistent errors. |
| 3816 | ISC_STATUS API_ROUTINE fb_ping(ISC_STATUS* userStatus, isc_db_handle* dbHandle) |
| 3817 | { |
| 3818 | StatusVector status(userStatus); |
| 3819 | CheckStatusWrapper statusWrapper(&status); |
| 3820 | |
| 3821 | try |
| 3822 | { |
| 3823 | RefPtr<YAttachment> attachment(translateHandle(attachments, dbHandle)); |
| 3824 | attachment->ping(&statusWrapper); |
| 3825 | } |
| 3826 | catch (const Exception& e) |
| 3827 | { |
| 3828 | e.stuffException(&statusWrapper); |
| 3829 | } |
| 3830 | |
| 3831 | return status[1]; |
| 3832 | } |
| 3833 | |
| 3834 | |
| 3835 | // Get the legacy handle of a database. |
nothing calls this directly
no test coverage detected