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

Function shellExec

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

** If (*pRc) is not SQLITE_OK when this function is called, it is a no-op. ** Otherwise, the SQL statement or statements in zSql are executed using ** database connection db and the error code written to *pRc before ** this function returns. */

Source from the content-addressed store, hash-verified

16866** this function returns.
16867*/
16868static void shellExec(sqlite3 *db, int *pRc, const char *zSql){
16869 int rc = *pRc;
16870 if( rc==SQLITE_OK ){
16871 char *zErr = 0;
16872 rc = sqlite3_exec(db, zSql, 0, 0, &zErr);
16873 if( rc!=SQLITE_OK ){
16874 raw_printf(stderr, "SQL error: %s\n", zErr);
16875 }
16876 *pRc = rc;
16877 }
16878}
16879
16880/*
16881** Like shellExec(), except that zFmt is a printf() style format string.

Callers 2

shellExecPrintfFunction · 0.85
recoverDatabaseCmdFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected