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

Function shellFinalize

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

21881** nuisance compiler warnings about "defined but not used".
21882*/
21883void shellFinalize(
21884 int *pRc,
21885 sqlite3_stmt *pStmt
21886){
21887 if( pStmt ){
21888 sqlite3 *db = sqlite3_db_handle(pStmt);
21889 int rc = sqlite3_finalize(pStmt);
21890 if( *pRc==SQLITE_OK ){
21891 if( rc!=SQLITE_OK ){
21892 raw_printf(stderr, "SQL error: %s\n", sqlite3_errmsg(db));
21893 }
21894 *pRc = rc;
21895 }
21896 }
21897}
21898
21899/* Reset the prepared statement created using shellPreparePrintf().
21900**

Callers 3

arCheckEntriesFunction · 0.85
arListCommandFunction · 0.85
arExtractCommandFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected