MCPcopy Create free account
hub / github.com/FirebirdSQL/firebird / API_ROUTINE isc_drop_database

Function API_ROUTINE isc_drop_database

src/yvalve/why.cpp:2119–2141  ·  view source on GitHub ↗

Close down a database and then purge it.

Source from the content-addressed store, hash-verified

2117
2118// Close down a database and then purge it.
2119ISC_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
2144ISC_STATUS API_ROUTINE isc_dsql_alloc_statement(ISC_STATUS* userStatus, isc_db_handle* dbHandle,

Callers

nothing calls this directly

Calls 4

translateHandleFunction · 0.85
dropDatabaseMethod · 0.45
getStateMethod · 0.45
stuffExceptionMethod · 0.45

Tested by

no test coverage detected