Close down an attachment.
| 2086 | |
| 2087 | // Close down an attachment. |
| 2088 | ISC_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 |
nothing calls this directly
no test coverage detected