Finalize 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". */
| 21881 | ** nuisance compiler warnings about "defined but not used". |
| 21882 | */ |
| 21883 | void shellFinalize( |
| 21884 | int *pRc, |
| 21885 | sqlite3_stmt *pStmt |
| 21886 | ){ |
| 21887 | if( pStmt ){ |
| 21888 | sqlite3 *db = sqlite3_db_handle(pStmt); |
| 21889 | int rc = sqlite3_finalize(pStmt); |
| 21890 | if( *pRc==SQLITE_OK ){ |
| 21891 | if( rc!=SQLITE_OK ){ |
| 21892 | raw_printf(stderr, "SQL error: %s\n", sqlite3_errmsg(db)); |
| 21893 | } |
| 21894 | *pRc = rc; |
| 21895 | } |
| 21896 | } |
| 21897 | } |
| 21898 | |
| 21899 | /* Reset the prepared statement created using shellPreparePrintf(). |
| 21900 | ** |
no outgoing calls
no test coverage detected