From: Damyan Ivanov Date: Thu, 25 Mar 2021 21:34:56 +0000 (+0200) Subject: fix transaction account storage SQL X-Git-Tag: v0.18.0~100 X-Git-Url: https://git.ktnx.net/?a=commitdiff_plain;h=1fd204fbd59c59032c67d8451b28307a2bf89e2f;p=mobile-ledger.git fix transaction account storage SQL --- diff --git a/app/src/main/java/net/ktnx/mobileledger/model/MobileLedgerProfile.java b/app/src/main/java/net/ktnx/mobileledger/model/MobileLedgerProfile.java index 15be74b6..a7a6eeab 100644 --- a/app/src/main/java/net/ktnx/mobileledger/model/MobileLedgerProfile.java +++ b/app/src/main/java/net/ktnx/mobileledger/model/MobileLedgerProfile.java @@ -449,7 +449,7 @@ public final class MobileLedgerProfile { }); db.execSQL("INSERT INTO transaction_accounts(transaction_id, " + "order_no, account_name, amount, currency, comment, generation) " + - "select ?, ?, ?, ?, ?, ?, ?, ? WHERE (select changes() = 0)", + "select ?, ?, ?, ?, ?, ?, ? WHERE (select changes() = 0)", new Object[]{tr.getId(), accountOrderNo, item.getAccountName(), item.getAmount(), Misc.nullIsEmpty(item.getCurrency()), item.getComment(), generation