** Finalize the prepared statement created using shellPreparePrintf(). */
| 26999 | ** Finalize the prepared statement created using shellPreparePrintf(). |
| 27000 | */ |
| 27001 | static void shellFinalize( |
| 27002 | int *pRc, |
| 27003 | sqlite3_stmt *pStmt |
| 27004 | ){ |
| 27005 | if( pStmt ){ |
| 27006 | sqlite3 *db = sqlite3_db_handle(pStmt); |
| 27007 | int rc = sqlite3_finalize(pStmt); |
| 27008 | if( *pRc==SQLITE_OK ){ |
| 27009 | if( rc!=SQLITE_OK ){ |
| 27010 | sqlite3_fprintf(stderr,"SQL error: %s\n", sqlite3_errmsg(db)); |
| 27011 | } |
| 27012 | *pRc = rc; |
| 27013 | } |
| 27014 | } |
| 27015 | } |
| 27016 | |
| 27017 | #if !defined SQLITE_OMIT_VIRTUALTABLE |
| 27018 | /* Reset the prepared statement created using shellPreparePrintf(). |
no test coverage detected