
BUG汇总
xfh001
这个作者很懒,什么都没留下…
展开
-
android.database.CursorIndexOutOfBoundsException:Index -1 requested, with a size of 1
android.database.CursorIndexOutOfBoundsException:Index -1 requested, with a size of 1android 中数据库处理,特别是使用cursor时,注意初始位置,好像是从下标为-1的地方开始的,也就是说一次查询中,返回给cursor查询结果时,不能够马上从cursor中提取值。比如,下面的代码会返回错误,an转载 2013-11-11 15:43:45 · 1441 阅读 · 0 评论 -
Couldn't read row 0, col -1 from CursorWindow. Make sure the Cursor is initialized correctly before
在做项目时碰到一个问题,就是一直报 java.lang.IllegalStateException: Couldn't read row 0, col -1 from CursorWindow. Make sure the Cursor is initialized correctly before accessing data from it.at android.database.Cur原创 2013-12-11 09:16:40 · 8160 阅读 · 0 评论 -
android.database.sqlite.DatabaseObjectNotClosedException: Application did not close the cursor or da
Cursor cursor=null; Cursor cursor2=null; db = helper.getReadableDatabase(); try{ cursor=rawQuery("...",null); while (cursor.moveToNext()) { // ... cursor2=db.rawQuery("s原创 2014-01-08 11:52:58 · 1520 阅读 · 0 评论 -
数据库中插入不进数据现象
当数据库中有字段不为空时,如果在插入一条数据时,此字段的值为空,那么会插不进数据库,相当于没有调用插入方法,但程序不会报错。原创 2014-01-15 19:03:36 · 4738 阅读 · 0 评论