MCPcopy Create free account
hub / github.com/Kitware/VTK / shellFinalize

Function shellFinalize

ThirdParty/sqlite/vtksqlite/shell.c:27001–27015  ·  view source on GitHub ↗

** Finalize the prepared statement created using shellPreparePrintf(). */

Source from the content-addressed store, hash-verified

26999** Finalize the prepared statement created using shellPreparePrintf().
27000*/
27001static 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().

Callers 5

arCheckEntriesFunction · 0.85
arListCommandFunction · 0.85
arExtractCommandFunction · 0.85
outputDumpWarningFunction · 0.85
doAutoDetectRestoreFunction · 0.85

Calls 1

sqlite3_fprintfFunction · 0.85

Tested by

no test coverage detected