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

Function shellPrepare

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

Source from the content-addressed store, hash-verified

16074
16075#if !defined SQLITE_OMIT_VIRTUALTABLE
16076static void shellPrepare(
16077 sqlite3 *db,
16078 int *pRc,
16079 const char *zSql,
16080 sqlite3_stmt **ppStmt
16081){
16082 *ppStmt = 0;
16083 if( *pRc==SQLITE_OK ){
16084 int rc = sqlite3_prepare_v2(db, zSql, -1, ppStmt, 0);
16085 if( rc!=SQLITE_OK ){
16086 raw_printf(stderr, "sql error: %s (%d)\n",
16087 sqlite3_errmsg(db), sqlite3_errcode(db)
16088 );
16089 *pRc = rc;
16090 }
16091 }
16092}
16093
16094/*
16095** Create a prepared statement using printf-style arguments for the SQL.

Callers 3

shellPreparePrintfFunction · 0.85
recoverOrphanTableFunction · 0.85
recoverDatabaseCmdFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected