mirror of
https://github.com/TakeV-Lambda/dino.git
synced 2024-11-22 06:54:29 +00:00
qlite: use critical() instead of error() for failed transactions
This commit is contained in:
parent
e3d994db1a
commit
1654ee60d6
4 changed files with 4 additions and 4 deletions
|
@ -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