Skip to content

Commit c121644

Browse files
committed
Android: handle REAL datatype correctly
1 parent ac84c2b commit c121644

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

android/src/main/java/dog/craftz/sqlite_2/RNSqlite2Module.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ private SQLitePLuginResult doSelectInBackgroundAndPossiblyThrow(String sql, Stri
177177
private Object getValueFromCursor(Cursor cursor, int index, int columnType) {
178178
switch (columnType) {
179179
case Cursor.FIELD_TYPE_FLOAT:
180-
return cursor.getFloat(index);
180+
return cursor.getDouble(index);
181181
case Cursor.FIELD_TYPE_INTEGER:
182182
return cursor.getInt(index);
183183
case Cursor.FIELD_TYPE_BLOB:

0 commit comments

Comments
 (0)