MCPcopy Create free account
hub / github.com/audacity/audacity / shellFinalize

Function shellFinalize

lib-src/sqlite/shell.c:16130–16144  ·  view source on GitHub ↗

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". */

Source from the content-addressed store, hash-verified

16128** nuisance compiler warnings about "defined but not used".
16129*/
16130void 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**

Callers 7

arCheckEntriesFunction · 0.85
arListCommandFunction · 0.85
arExtractCommandFunction · 0.85
recoverNewTableFunction · 0.85
recoverFindTableFunction · 0.85
recoverOrphanTableFunction · 0.85
recoverDatabaseCmdFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected