MCPcopy Create free account
hub / github.com/GaijinEntertainment/daScript / recoverFinalize

Function recoverFinalize

modules/dasSQLITE/sqlite/shell.c:13979–13985  ·  view source on GitHub ↗

** Finalize SQLite statement handle pStmt. If the call to sqlite3_reset() ** indicates that an error occurred, and there is not already an error ** in the recover handle passed as the first argument, set the error ** code and error message appropriately. */

Source from the content-addressed store, hash-verified

13977** code and error message appropriately.
13978*/
13979static void recoverFinalize(sqlite3_recover *p, sqlite3_stmt *pStmt){
13980 sqlite3 *db = sqlite3_db_handle(pStmt);
13981 int rc = sqlite3_finalize(pStmt);
13982 if( rc!=SQLITE_OK && p->errCode==SQLITE_OK ){
13983 recoverDbError(p, db);
13984 }
13985}
13986
13987/*
13988** This function is a no-op if recover handle p already contains an error

Callers 10

recoverPageCountFunction · 0.85
recoverTransferSettingsFunction · 0.85
recoverAddTableFunction · 0.85
recoverWriteSchema1Function · 0.85
recoverWriteSchema2Function · 0.85
recoverWriteDataCleanupFunction · 0.85
recoverWriteDataStepFunction · 0.85
recoverLostAndFound1StepFunction · 0.85
recoverLostAndFound2StepFunction · 0.85

Calls 1

recoverDbErrorFunction · 0.85

Tested by

no test coverage detected