** 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. */
| 13977 | ** code and error message appropriately. |
| 13978 | */ |
| 13979 | static 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 |
no test coverage detected