** Prepare an SQL statement. */
| 10522 | ** Prepare an SQL statement. |
| 10523 | */ |
| 10524 | static 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. |
no test coverage detected