Skip to content

Commit

Permalink
Long and double columns were not correctly read when dumping the data…
Browse files Browse the repository at this point in the history
…base
  • Loading branch information
mscuttari committed Jan 6, 2021
1 parent c322db8 commit 0a153e2
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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'
}
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down
2 changes: 1 addition & 1 deletion release-bintray.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
**/
ext {
bintrayRepo = 'KaolDB'
libraryVersion = '1.0.6'
libraryVersion = '1.0.7'

publishedGroupId = 'it.mscuttari.kaoldb'
libraryName = 'KaolDB'
Expand Down

0 comments on commit 0a153e2

Please sign in to comment.