]> git.ktnx.net Git - mobile-ledger.git/commit
fix looking up old transactions with non-ASCII names (broken in 0.18.0)
authorDamyan Ivanov <dam+mobileledger@ktnx.net>
Tue, 8 Jun 2021 20:26:14 +0000 (23:26 +0300)
committerDamyan Ivanov <dam+mobileledger@ktnx.net>
Tue, 8 Jun 2021 20:26:14 +0000 (23:26 +0300)
commit4061b545fb854c78717564520b7ac43fa2eabf9f
tree74634230287897d3956c605d12dce5125c088aaf
parentbc155f197a3969f95958a133a95efff075f69098
fix looking up old transactions with non-ASCII names (broken in 0.18.0)

according to the documentation, SQLite's NOCASE collation affects only
ASCII characters. Unicode is explicitly mentioned as not supported.
Strangely Unicode still works on some Android versions/variants, but not
on others.

This change stops relying on NOCASE collation and puts back upper case
variant of transaction description in a new column, which is then used
when looking up previous transactions for auto-completion
app/build.gradle
app/schemas/net.ktnx.mobileledger.db.DB/61.json [new file with mode: 0644]
app/src/main/java/net/ktnx/mobileledger/dao/TransactionDAO.java
app/src/main/java/net/ktnx/mobileledger/db/DB.java
app/src/main/java/net/ktnx/mobileledger/db/Transaction.java
app/src/main/res/raw/db_61.sql [new file with mode: 0644]