开发者

How to log SQLite commands in Android?

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜