| 226 | } |
| 227 | |
| 228 | void 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 | |
| 248 | bool IscConnection::cancelExecution(bool forced) |
| 249 | { |
nothing calls this directly
no test coverage detected