使用ROOM数据库,
升级数据库结构,同时请求表记录时,报这个错误
Failed to read row 0, column 29 from a window with 1 rows, 29 columns
exception: Row too big to fit into CursorWindow requiredPos=0, totalRows=1; query: SELECT * FROM TBPLOTRECORD
FATAL EXCEPTION: OkHttp Dispatcher
Process: cn.forestar.lincebao, PID: 15002
android.database.sqlite.SQLiteBlobTooBigException: Row too big to fit into CursorWindow requiredPos=0, totalRows=1
at android.database.sqlite.SQLiteConnection.nativeExecuteForCursorWindow(Native Method)
at android.database.sqlite.SQLiteConnection.executeForCursorWindow(SQLiteConnection.java:1047)
at android.database.sqlite.SQLiteSession.executeForCursorWindow(SQLiteSession
我使用的是查询全部的方式,现在报上面的错误,SQL语句是查询全部字段(*)
解决方式,我修改了下查询语句就可以,把需要的字段查询出来。