diff --git a/src/main/kotlin/com/marvinelsen/willow/domain/SqliteDictionary.kt b/src/main/kotlin/com/marvinelsen/willow/domain/SqliteDictionary.kt index 6604662..14ce395 100644 --- a/src/main/kotlin/com/marvinelsen/willow/domain/SqliteDictionary.kt +++ b/src/main/kotlin/com/marvinelsen/willow/domain/SqliteDictionary.kt @@ -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()