| 16074 | |
| 16075 | #if !defined SQLITE_OMIT_VIRTUALTABLE |
| 16076 | static void shellPrepare( |
| 16077 | sqlite3 *db, |
| 16078 | int *pRc, |
| 16079 | const char *zSql, |
| 16080 | sqlite3_stmt **ppStmt |
| 16081 | ){ |
| 16082 | *ppStmt = 0; |
| 16083 | if( *pRc==SQLITE_OK ){ |
| 16084 | int rc = sqlite3_prepare_v2(db, zSql, -1, ppStmt, 0); |
| 16085 | if( rc!=SQLITE_OK ){ |
| 16086 | raw_printf(stderr, "sql error: %s (%d)\n", |
| 16087 | sqlite3_errmsg(db), sqlite3_errcode(db) |
| 16088 | ); |
| 16089 | *pRc = rc; |
| 16090 | } |
| 16091 | } |
| 16092 | } |
| 16093 | |
| 16094 | /* |
| 16095 | ** Create a prepared statement using printf-style arguments for the SQL. |
no outgoing calls
no test coverage detected