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". */
| 16128 | ** nuisance compiler warnings about "defined but not used". |
| 16129 | */ |
| 16130 | void shellFinalize( |
| 16131 | int *pRc, |
| 16132 | sqlite3_stmt *pStmt |
| 16133 | ){ |
| 16134 | if( pStmt ){ |
| 16135 | sqlite3 *db = sqlite3_db_handle(pStmt); |
| 16136 | int rc = sqlite3_finalize(pStmt); |
| 16137 | if( *pRc==SQLITE_OK ){ |
| 16138 | if( rc!=SQLITE_OK ){ |
| 16139 | raw_printf(stderr, "SQL error: %s\n", sqlite3_errmsg(db)); |
| 16140 | } |
| 16141 | *pRc = rc; |
| 16142 | } |
| 16143 | } |
| 16144 | } |
| 16145 | |
| 16146 | /* Reset the prepared statement created using shellPreparePrintf(). |
| 16147 | ** |
no outgoing calls
no test coverage detected