Skip to content

Commit

Permalink
Changed NSNumber to NSDecimalNumber when retrieving doubles from db, …
Browse files Browse the repository at this point in the history
…as this allows for a better precision
  • Loading branch information
rafek committed Dec 14, 2014
1 parent 6740330 commit b6da7ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/FMResultSet.m
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,7 @@ - (id)objectForColumnIndex:(int)columnIdx {
returnValue = [NSNumber numberWithLongLong:[self longLongIntForColumnIndex:columnIdx]];
}
else if (columnType == SQLITE_FLOAT) {
returnValue = [NSNumber numberWithDouble:[self doubleForColumnIndex:columnIdx]];
returnValue = [NSDecimalNumber numberWithDouble:[self doubleForColumnIndex:columnIdx]];
}
else if (columnType == SQLITE_BLOB) {
returnValue = [self dataForColumnIndex:columnIdx];
Expand Down

0 comments on commit b6da7ea

Please sign in to comment.