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

Method doDetach

src/jrd/extds/IscDS.cpp:228–246  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

226}
227
228void IscConnection::doDetach(thread_db* tdbb)
229{
230 FbLocalStatus status;
231 if (m_handle)
232 {
233 EngineCallbackGuard guard(tdbb, *this, FB_FUNCTION);
234
235 FB_API_HANDLE h = m_handle;
236 m_handle = 0;
237 m_iscProvider.isc_detach_database(&status, &h);
238 m_handle = h;
239 }
240
241 if ((status->getState() & IStatus::STATE_ERRORS) &&
242 !isConnectionBrokenError(&status))
243 {
244 raise(&status, tdbb, "detach");
245 }
246}
247
248bool IscConnection::cancelExecution(bool forced)
249{

Callers

nothing calls this directly

Calls 4

isConnectionBrokenErrorFunction · 0.85
raiseFunction · 0.85
isc_detach_databaseMethod · 0.80
getStateMethod · 0.45

Tested by

no test coverage detected