开发者

How to log SQLite commands in Android?

开发者 https://www.devze.com 2023-04-11 04:59 出处:网络
Im getting this error: 10-05 19:36:09.904: WARN/System.err(开发者_如何学运维1039): android.database.sqlite.SQLiteConstraintException: error code 19: constraint failed

Im getting this error:

10-05 19:36:09.904: WARN/System.err(开发者_如何学运维1039): android.database.sqlite.SQLiteConstraintException: error code 19: constraint failed

Is there a way to the class SQLiteDatabase show queries created in insert and update methods?

Ty


You are probably inserting two items with the same primary key, which is supposed to be unique. There is no way that I know of to get verbose SQL logs, sorry.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号