SQLite Database gives warning automatic index on (column) After upgrading Android L
前端 未结 2 1289
臣服心动
臣服心动 2020-12-13 12:31

I have upgraded my Nexus 7 with Android 5.0 Lollipop, Before that my application going well with SQLite Database but now Whenever I execute any type of quer

2条回答
  •  盖世英雄少女心
    2020-12-13 13:20

    This was the top post while i was looking into this problem. Although i have a C# project and it might not be relevant for the OP, i thought it might still be helpfull for someone.

    For those that wonder why the message keeps appearing, although an index was created explicitly; maybe your query is using a different collation.

    I had a table with a text column and a select query with a where statement specifying where name = @var1 COLLATE NOCASE. This triggered the warnings, as the index i had created was default collation.

    Thus, rewriting either the index, or the create table statement, to specify nocase for that column, made the warning disappear.

提交回复
热议问题