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

Function idxPrepareStmt

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

** Prepare an SQL statement. */

Source from the content-addressed store, hash-verified

8679** Prepare an SQL statement.
8680*/
8681static int idxPrepareStmt(
8682 sqlite3 *db, /* Database handle to compile against */
8683 sqlite3_stmt **ppStmt, /* OUT: Compiled SQL statement */
8684 char **pzErrmsg, /* OUT: sqlite3_malloc()ed error message */
8685 const char *zSql /* SQL statement to compile */
8686){
8687 int rc = sqlite3_prepare_v2(db, zSql, -1, ppStmt, 0);
8688 if( rc!=SQLITE_OK ){
8689 *ppStmt = 0;
8690 idxDatabaseError(db, pzErrmsg);
8691 }
8692 return rc;
8693}
8694
8695/*
8696** Prepare an SQL statement using the results of a printf() formatting.

Callers 5

idxPrintfPrepareStmtFunction · 0.85
idxCreateVtabSchemaFunction · 0.85
idxLargestIndexFunction · 0.85
idxPopulateOneStat1Function · 0.85
idxPopulateStat1Function · 0.85

Calls 1

idxDatabaseErrorFunction · 0.85

Tested by

no test coverage detected