Reset the prepared statement created using shellPreparePrintf(). ** ** This routine is could be marked "static". But it is not always used, ** depending on compile-time options. By omitting the "static", we avoid ** nuisance compiler warnings about "defined but not used". */
| 27022 | ** nuisance compiler warnings about "defined but not used". |
| 27023 | */ |
| 27024 | void shellReset( |
| 27025 | int *pRc, |
| 27026 | sqlite3_stmt *pStmt |
| 27027 | ){ |
| 27028 | int rc = sqlite3_reset(pStmt); |
| 27029 | if( *pRc==SQLITE_OK ){ |
| 27030 | if( rc!=SQLITE_OK ){ |
| 27031 | sqlite3 *db = sqlite3_db_handle(pStmt); |
| 27032 | sqlite3_fprintf(stderr,"SQL error: %s\n", sqlite3_errmsg(db)); |
| 27033 | } |
| 27034 | *pRc = rc; |
| 27035 | } |
| 27036 | } |
| 27037 | #endif /* !defined SQLITE_OMIT_VIRTUALTABLE */ |
| 27038 | |
| 27039 | #if !defined(SQLITE_OMIT_VIRTUALTABLE) && defined(SQLITE_HAVE_ZLIB) |
no test coverage detected