Improve find character feature by only looking for traditional characters

This commit is contained in:
Marvin Elsen 2024-10-14 17:19:03 +02:00
parent ea1973a3cf
commit 8db4c3879f
Signed by: marvinelsen
GPG Key ID: 820672408CC318C2

View File

@ -81,7 +81,7 @@ class SqliteDictionary(private val connection: Connection) : Dictionary {
WITH cte(id, character, syllable) AS (VALUES ?)
SELECT traditional, simplified, pinyin_with_tone_marks, pinyin_with_tone_numbers, zhuyin, cedict_definitions, cross_straits_definitions, moe_definitions
FROM entry INNER JOIN cte
ON cte.character = entry.traditional OR cte.character = entry.simplified
ON cte.character = entry.traditional
WHERE cte.syllable = entry.pinyin_with_tone_numbers
ORDER BY cte.id
""".trimIndent()