]> git.ktnx.net Git - mobile-ledger.git/commitdiff
fix transaction account storage SQL
authorDamyan Ivanov <dam+mobileledger@ktnx.net>
Thu, 25 Mar 2021 21:34:56 +0000 (23:34 +0200)
committerDamyan Ivanov <dam+mobileledger@ktnx.net>
Thu, 25 Mar 2021 21:34:56 +0000 (23:34 +0200)
app/src/main/java/net/ktnx/mobileledger/model/MobileLedgerProfile.java

index 15be74b6be1c572ba9c4e65d4a94e84dab2bfcbd..a7a6eeab98749876188044cf200c47ee8e1dcb0b 100644 (file)
@@ -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