** 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. */
| 13994 | ** handle and return a copy of the error code. |
| 13995 | */ |
| 13996 | static 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 |
no test coverage detected