From 0a153e226adea1d60150681e21065dfe5a872512 Mon Sep 17 00:00:00 2001 From: Michele Scuttari Date: Wed, 6 Jan 2021 10:17:09 +0100 Subject: [PATCH] Long and double columns were not correctly read when dumping the database --- README.md | 4 ++-- .../src/main/java/it/mscuttari/kaoldb/dump/RowDumpImpl.java | 4 ++-- release-bintray.gradle | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 7ab953e..defe549 100644 --- a/README.md +++ b/README.md @@ -7,8 +7,8 @@ It is sufficient to add the two following Gradle dependencies to the application ```gradle dependencies { - implementation 'it.mscuttari.kaoldb:core:1.0.6' - annotationProcessor 'it.mscuttari.kaoldb:annotation-processor:1.0.6' + implementation 'it.mscuttari.kaoldb:core:1.0.7' + annotationProcessor 'it.mscuttari.kaoldb:annotation-processor:1.0.7' } ``` diff --git a/implementation/src/main/java/it/mscuttari/kaoldb/dump/RowDumpImpl.java b/implementation/src/main/java/it/mscuttari/kaoldb/dump/RowDumpImpl.java index f8dcc91..9257958 100644 --- a/implementation/src/main/java/it/mscuttari/kaoldb/dump/RowDumpImpl.java +++ b/implementation/src/main/java/it/mscuttari/kaoldb/dump/RowDumpImpl.java @@ -53,10 +53,10 @@ public RowDumpImpl(Cursor c) { values.put(column, null); } else if (dataType == Cursor.FIELD_TYPE_INTEGER) { - values.put(column, c.getInt(columnIndex)); + values.put(column, c.getLong(columnIndex)); } else if (dataType == Cursor.FIELD_TYPE_FLOAT) { - values.put(column, c.getFloat(columnIndex)); + values.put(column, c.getDouble(columnIndex)); } else if (dataType == Cursor.FIELD_TYPE_STRING) { values.put(column, c.getString(columnIndex)); diff --git a/release-bintray.gradle b/release-bintray.gradle index 67314f2..ad9abab 100644 --- a/release-bintray.gradle +++ b/release-bintray.gradle @@ -19,7 +19,7 @@ **/ ext { bintrayRepo = 'KaolDB' - libraryVersion = '1.0.6' + libraryVersion = '1.0.7' publishedGroupId = 'it.mscuttari.kaoldb' libraryName = 'KaolDB'