| 16 | } |
| 17 | |
| 18 | int SqliteHandleError(IConsole *pConsole, int Error, sqlite3 *pSqlite, const char *pContext) |
| 19 | { |
| 20 | if(Error != SQLITE_OK && Error != SQLITE_DONE && Error != SQLITE_ROW) |
| 21 | { |
| 22 | char aBuf[512]; |
| 23 | str_format(aBuf, sizeof(aBuf), "%s at %s", sqlite3_errmsg(pSqlite), pContext); |
| 24 | pConsole->Print(IConsole::OUTPUT_LEVEL_STANDARD, "sqlite3", aBuf); |
| 25 | } |
| 26 | return Error; |
| 27 | } |
| 28 | |
| 29 | CSqlite SqliteOpen(IConsole *pConsole, IStorage *pStorage, const char *pPath) |
| 30 | { |
nothing calls this directly
no test coverage detected