| 21827 | |
| 21828 | #if !defined SQLITE_OMIT_VIRTUALTABLE |
| 21829 | static void shellPrepare( |
| 21830 | sqlite3 *db, |
| 21831 | int *pRc, |
| 21832 | const char *zSql, |
| 21833 | sqlite3_stmt **ppStmt |
| 21834 | ){ |
| 21835 | *ppStmt = 0; |
| 21836 | if( *pRc==SQLITE_OK ){ |
| 21837 | int rc = sqlite3_prepare_v2(db, zSql, -1, ppStmt, 0); |
| 21838 | if( rc!=SQLITE_OK ){ |
| 21839 | raw_printf(stderr, "sql error: %s (%d)\n", |
| 21840 | sqlite3_errmsg(db), sqlite3_errcode(db) |
| 21841 | ); |
| 21842 | *pRc = rc; |
| 21843 | } |
| 21844 | } |
| 21845 | } |
| 21846 | |
| 21847 | /* |
| 21848 | ** Create a prepared statement using printf-style arguments for the SQL. |
no outgoing calls
no test coverage detected