This commit is contained in:
Andrea Cavalli 2019-12-16 12:40:55 +01:00
parent c747836d9d
commit 80cfd591f9

View File

@ -52,7 +52,9 @@ Status SqliteDb::init(CSlice path, bool *was_created) {
// from older database
if (path == ":memory:") {
if (was_created != nullptr) {
*was_created = false;
}
} else {
bool is_db_exists = stat(path).is_ok();