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

Function shellPrepare

modules/dasSQLITE/sqlite/shell.c:21829–21845  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

21827
21828#if !defined SQLITE_OMIT_VIRTUALTABLE
21829static void shellPrepare(
21830 sqlite3 *db,
21831 int *pRc,
21832 const char *zSql,
21833 sqlite3_stmt **ppStmt
21834){
21835 *ppStmt = 0;
21836 if( *pRc==SQLITE_OK ){
21837 int rc = sqlite3_prepare_v2(db, zSql, -1, ppStmt, 0);
21838 if( rc!=SQLITE_OK ){
21839 raw_printf(stderr, "sql error: %s (%d)\n",
21840 sqlite3_errmsg(db), sqlite3_errcode(db)
21841 );
21842 *pRc = rc;
21843 }
21844 }
21845}
21846
21847/*
21848** Create a prepared statement using printf-style arguments for the SQL.

Callers 1

shellPreparePrintfFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected