| 246 | } |
| 247 | |
| 248 | bool IscConnection::cancelExecution(bool forced) |
| 249 | { |
| 250 | FbLocalStatus status; |
| 251 | |
| 252 | if (m_handle) |
| 253 | { |
| 254 | m_iscProvider.fb_cancel_operation(&status, &m_handle, |
| 255 | forced ? fb_cancel_abort : fb_cancel_raise); |
| 256 | |
| 257 | if (!forced && m_handle && |
| 258 | (status->getState() & IStatus::STATE_ERRORS) && |
| 259 | (status->getErrors()[1] != isc_bad_db_handle)) |
| 260 | { |
| 261 | status->init(); |
| 262 | m_iscProvider.fb_cancel_operation(&status, &m_handle, fb_cancel_abort); |
| 263 | } |
| 264 | } |
| 265 | return !(status->getState() & IStatus::STATE_ERRORS); |
| 266 | } |
| 267 | |
| 268 | bool IscConnection::resetSession(thread_db* tdbb) |
| 269 | { |
no test coverage detected