** If (*pRc) is not SQLITE_OK when this function is called, it is a no-op. ** Otherwise, the SQL statement or statements in zSql are executed using ** database connection db and the error code written to *pRc before ** this function returns. */
| 16866 | ** this function returns. |
| 16867 | */ |
| 16868 | static void shellExec(sqlite3 *db, int *pRc, const char *zSql){ |
| 16869 | int rc = *pRc; |
| 16870 | if( rc==SQLITE_OK ){ |
| 16871 | char *zErr = 0; |
| 16872 | rc = sqlite3_exec(db, zSql, 0, 0, &zErr); |
| 16873 | if( rc!=SQLITE_OK ){ |
| 16874 | raw_printf(stderr, "SQL error: %s\n", zErr); |
| 16875 | } |
| 16876 | *pRc = rc; |
| 16877 | } |
| 16878 | } |
| 16879 | |
| 16880 | /* |
| 16881 | ** Like shellExec(), except that zFmt is a printf() style format string. |
no outgoing calls
no test coverage detected