这是sqlite中的错误吗?

Is this a bug in sqlite?

我有以下捷克语查询:

select Id,Name 
from Account 
where Name like '%Še%'

它将 return 我得到正确的结果。但是,如果我在查询中将 Š 更改为 š

select Id,Name 
from Account 
where Name like '%še%'

它return没什么。这是 sqlite 错误吗?

https://www.sqlite.org/lang_expr.html#like:

Important Note: SQLite only understands upper/lower case for ASCII characters by default. The LIKE operator is case sensitive by default for unicode characters that are beyond the ASCII range. For example, the expression 'a' LIKE 'A' is TRUE but 'æ' LIKE 'Æ' is FALSE. The ICU extension to SQLite includes an enhanced version of the LIKE operator that does case folding across all unicode characters.

所以您的问题的解决方案是获得带有 ICU 扩展名的 SQLite 版本。