Close down a database and then purge it.
| 2117 | |
| 2118 | // Close down a database and then purge it. |
| 2119 | ISC_STATUS API_ROUTINE isc_drop_database(ISC_STATUS* userStatus, isc_db_handle* handle) |
| 2120 | { |
| 2121 | StatusVector status(userStatus); |
| 2122 | CheckStatusWrapper statusWrapper(&status); |
| 2123 | |
| 2124 | try |
| 2125 | { |
| 2126 | RefPtr<YAttachment> attachment(translateHandle(attachments, handle)); |
| 2127 | attachment->dropDatabase(&statusWrapper); |
| 2128 | |
| 2129 | if ((!(status.getState() & IStatus::STATE_ERRORS)) || |
| 2130 | status[1] == isc_drdb_completed_with_errs) |
| 2131 | { |
| 2132 | *handle = 0; |
| 2133 | } |
| 2134 | } |
| 2135 | catch (const Exception& e) |
| 2136 | { |
| 2137 | e.stuffException(&statusWrapper); |
| 2138 | } |
| 2139 | |
| 2140 | return status[1]; |
| 2141 | } |
| 2142 | |
| 2143 | |
| 2144 | ISC_STATUS API_ROUTINE isc_dsql_alloc_statement(ISC_STATUS* userStatus, isc_db_handle* dbHandle, |
nothing calls this directly
no test coverage detected