Android-Debug-Database icon indicating copy to clipboard operation
Android-Debug-Database copied to clipboard

Error value when reading data of Long Type!!!!

Open chenxi2035 opened this issue 6 years ago • 2 comments

This tool is of greate help.Thank you~But I found a problem that confuse me:

Long type value in the database:

494532142382833664 494532388517175296 494533174080954368

but showed in the Android debug database as follows:

494532142382833660 494532388517175300 494533174080954400

correct value can be seen in navicat, please fix this!

chenxi2035 avatar Sep 26 '18 07:09 chenxi2035

That's because the web can't use big numbers.You can change DatabaseHelper.java
case Cursor.FIELD_TYPE_INTEGER: columnData.dataType = DataType.INTEGER; columnData.value = cursor.getLong(i); to case Cursor.FIELD_TYPE_INTEGER: columnData.dataType = DataType.TEXT; columnData.value = String.valueOf(cursor.getLong(i));

mnb65482 avatar Jul 16 '19 02:07 mnb65482

@mnb65482 thank you for your help~

chenxi2035 avatar Jul 16 '19 02:07 chenxi2035