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

Function idxPrepareStmt

modules/dasSQLITE/sqlite/shell.c:10524–10536  ·  view source on GitHub ↗

** Prepare an SQL statement. */

Source from the content-addressed store, hash-verified

10522** Prepare an SQL statement.
10523*/
10524static int idxPrepareStmt(
10525 sqlite3 *db, /* Database handle to compile against */
10526 sqlite3_stmt **ppStmt, /* OUT: Compiled SQL statement */
10527 char **pzErrmsg, /* OUT: sqlite3_malloc()ed error message */
10528 const char *zSql /* SQL statement to compile */
10529){
10530 int rc = sqlite3_prepare_v2(db, zSql, -1, ppStmt, 0);
10531 if( rc!=SQLITE_OK ){
10532 *ppStmt = 0;
10533 idxDatabaseError(db, pzErrmsg);
10534 }
10535 return rc;
10536}
10537
10538/*
10539** 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