** Prepare an SQL statement. */
| 8679 | ** Prepare an SQL statement. |
| 8680 | */ |
| 8681 | static 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. |
no test coverage detected