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

Function recoverExec

modules/dasSQLITE/sqlite/shell.c:13996–14004  ·  view source on GitHub ↗

** This function is a no-op if recover handle p already contains an error ** (if p->errCode!=SQLITE_OK). A copy of p->errCode is returned in this ** case. ** ** Otherwise, execute SQL script zSql. If successful, return SQLITE_OK. ** Or, if an error occurs, leave an error code and message in the recover ** handle and return a copy of the error code. */

Source from the content-addressed store, hash-verified

13994** handle and return a copy of the error code.
13995*/
13996static int recoverExec(sqlite3_recover *p, sqlite3 *db, const char *zSql){
13997 if( p->errCode==SQLITE_OK ){
13998 int rc = sqlite3_exec(db, zSql, 0, 0, 0);
13999 if( rc ){
14000 recoverDbError(p, db);
14001 }
14002 }
14003 return p->errCode;
14004}
14005
14006/*
14007** Bind the value pVal to parameter iBind of statement pStmt. Leave an

Callers 6

recoverCacheSchemaFunction · 0.85
recoverTransferSettingsFunction · 0.85
recoverOpenRecoveryFunction · 0.85
recoverWriteDataStepFunction · 0.85
recoverStepFunction · 0.85

Calls 2

sqlite3_execFunction · 0.85
recoverDbErrorFunction · 0.85

Tested by

no test coverage detected