MCPcopy Create free account
hub / github.com/FirebirdSQL/firebird / API_ROUTINE fb_ping

Function API_ROUTINE fb_ping

src/yvalve/why.cpp:3816–3832  ·  view source on GitHub ↗

Check the attachment handle for persistent errors.

Source from the content-addressed store, hash-verified

3814
3815// Check the attachment handle for persistent errors.
3816ISC_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.

Callers

nothing calls this directly

Calls 3

translateHandleFunction · 0.85
pingMethod · 0.45
stuffExceptionMethod · 0.45

Tested by

no test coverage detected