SQLiteConstraintException dont go inside catch

后端 未结 1 2017
无人共我
无人共我 2021-02-14 01:29

When I run that code I have inside the db.insert an exception:

08-29 15:40:17.519: E/SQLiteDatabase(3599): android.database.sqlite.SQLiteConstraintException: col         


        
相关标签:
1条回答
  • 2021-02-14 02:09

    Use db.insertOrThrow() instead.

    0 讨论(0)
提交回复
热议问题