qlite: use critical() instead of error() for failed transactions
This commit is contained in:
parent
e3d994db1a
commit
1654ee60d6
|
@ -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());
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
|
|
|
@ -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());
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue