qlite: use critical() instead of error() for failed transactions

This commit is contained in:
Marvin W 2019-06-11 14:47:35 +02:00
parent e3d994db1a
commit 1654ee60d6
No known key found for this signature in database
GPG key ID: 072E9235DB996F2A
4 changed files with 4 additions and 4 deletions

View file

@ -53,7 +53,7 @@ public class DeleteBuilder : StatementBuilder {
public void perform() {
if (prepare().step() != DONE) {
error(@"SQLite error: %d - %s", db.errcode(), db.errmsg());
critical(@"SQLite error: %d - %s", db.errcode(), db.errmsg());
}
}

View file

@ -74,7 +74,7 @@ public class InsertBuilder : StatementBuilder {
public int64 perform() {
if (prepare().step() != DONE) {
error(@"SQLite error: %d - %s", db.errcode(), db.errmsg());
critical(@"SQLite error: %d - %s", db.errcode(), db.errmsg());
}
return db.last_insert_rowid();
}

View file

@ -94,7 +94,7 @@ public class UpdateBuilder : StatementBuilder {
public void perform() {
if (fields.length == 0) return;
if (prepare().step() != DONE) {
error("SQLite error: %d - %s", db.errcode(), db.errmsg());
critical("SQLite error: %d - %s", db.errcode(), db.errmsg());
}
}

View file

@ -100,7 +100,7 @@ public class UpsertBuilder : StatementBuilder {
public int64 perform() {
if (prepare_update().step() != DONE || prepare_insert().step() != DONE) {
error(@"SQLite error: %d - %s", db.errcode(), db.errmsg());
critical(@"SQLite error: %d - %s", db.errcode(), db.errmsg());
}
return db.last_insert_rowid();
}