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

Function API_ROUTINE isc_detach_database

src/yvalve/why.cpp:2088–2107  ·  view source on GitHub ↗

Close down an attachment.

Source from the content-addressed store, hash-verified

2086
2087// Close down an attachment.
2088ISC_STATUS API_ROUTINE isc_detach_database(ISC_STATUS* userStatus, isc_db_handle* handle)
2089{
2090 StatusVector status(userStatus);
2091 CheckStatusWrapper statusWrapper(&status);
2092
2093 try
2094 {
2095 RefPtr<YAttachment> attachment(translateHandle(attachments, handle));
2096 attachment->detach(&statusWrapper);
2097
2098 if (!(status.getState() & IStatus::STATE_ERRORS))
2099 *handle = 0;
2100 }
2101 catch (const Exception& e)
2102 {
2103 e.stuffException(&statusWrapper);
2104 }
2105
2106 return status[1];
2107}
2108
2109
2110// Disable access to a specific subsystem. If no subsystem has been explicitly disabled, all are

Callers

nothing calls this directly

Calls 4

translateHandleFunction · 0.85
detachMethod · 0.45
getStateMethod · 0.45
stuffExceptionMethod · 0.45

Tested by

no test coverage detected