Supported not storing raw data shards. (#289)

This commit is contained in:
Ravin Perera
2021-04-13 11:11:37 +05:30
committed by GitHub
parent 77279dc6ac
commit 7a837ede7c
5 changed files with 20 additions and 20 deletions

View File

@@ -57,8 +57,8 @@ namespace ledger::sqlite
const int flags = read_only ? SQLITE_OPEN_READONLY : (SQLITE_OPEN_READWRITE | SQLITE_OPEN_CREATE);
if ((ret = sqlite3_open_v2(db_name.data(), db, flags, 0)) != SQLITE_OK)
{
LOG_ERROR << ret << ": Sqlite error when opening database " << db_name;
*db = NULL;
LOG_ERROR << "Can't open database: " << ret << ", " << sqlite3_errmsg(*db);
return -1;
}