MCPcopy Create free account
hub / github.com/GaijinEntertainment/daScript / shellReset

Function shellReset

modules/dasSQLITE/sqlite/shell.c:21905–21917  ·  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

21903** nuisance compiler warnings about "defined but not used".
21904*/
21905void shellReset(
21906 int *pRc,
21907 sqlite3_stmt *pStmt
21908){
21909 int rc = sqlite3_reset(pStmt);
21910 if( *pRc==SQLITE_OK ){
21911 if( rc!=SQLITE_OK ){
21912 sqlite3 *db = sqlite3_db_handle(pStmt);
21913 raw_printf(stderr, "SQL error: %s\n", sqlite3_errmsg(db));
21914 }
21915 *pRc = rc;
21916 }
21917}
21918#endif /* !defined SQLITE_OMIT_VIRTUALTABLE */
21919
21920#if !defined(SQLITE_OMIT_VIRTUALTABLE) && defined(SQLITE_HAVE_ZLIB)

Callers 2

arCheckEntriesFunction · 0.85
arExtractCommandFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected