Skip to content

Commit d124958

Browse files
authored
fix(android): handle REAL datatype correctly
Close #31
2 parents ac84c2b + c121644 commit d124958

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)