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

Function shellReset

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

Reset 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

16150** nuisance compiler warnings about "defined but not used".
16151*/
16152void shellReset(
16153 int *pRc,
16154 sqlite3_stmt *pStmt
16155){
16156 int rc = sqlite3_reset(pStmt);
16157 if( *pRc==SQLITE_OK ){
16158 if( rc!=SQLITE_OK ){
16159 sqlite3 *db = sqlite3_db_handle(pStmt);
16160 raw_printf(stderr, "SQL error: %s\n", sqlite3_errmsg(db));
16161 }
16162 *pRc = rc;
16163 }
16164}
16165#endif /* !defined SQLITE_OMIT_VIRTUALTABLE */
16166
16167#if !defined(SQLITE_OMIT_VIRTUALTABLE) && defined(SQLITE_HAVE_ZLIB)

Callers 4

arCheckEntriesFunction · 0.85
arExtractCommandFunction · 0.85
recoverOrphanTableFunction · 0.85
recoverDatabaseCmdFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected