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

Function shellReset

ThirdParty/sqlite/vtksqlite/shell.c:27024–27036  ·  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

27022** nuisance compiler warnings about "defined but not used".
27023*/
27024void shellReset(
27025 int *pRc,
27026 sqlite3_stmt *pStmt
27027){
27028 int rc = sqlite3_reset(pStmt);
27029 if( *pRc==SQLITE_OK ){
27030 if( rc!=SQLITE_OK ){
27031 sqlite3 *db = sqlite3_db_handle(pStmt);
27032 sqlite3_fprintf(stderr,"SQL error: %s\n", sqlite3_errmsg(db));
27033 }
27034 *pRc = rc;
27035 }
27036}
27037#endif /* !defined SQLITE_OMIT_VIRTUALTABLE */
27038
27039#if !defined(SQLITE_OMIT_VIRTUALTABLE) && defined(SQLITE_HAVE_ZLIB)

Callers 2

arCheckEntriesFunction · 0.85
arExtractCommandFunction · 0.85

Calls 1

sqlite3_fprintfFunction · 0.85

Tested by

no test coverage detected