Skip to content

Commit

Permalink
0004702: BigDecimal value in Row needs to use toPlainString() when
Browse files Browse the repository at this point in the history
returning string representation
  • Loading branch information
Philip Marzullo committed Dec 14, 2020
1 parent c30294e commit fb41dd6
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion symmetric-db/src/main/java/org/jumpmind/db/sql/Row.java
Expand Up @@ -158,7 +158,11 @@ public String getString(String columnName) {
public String getString(String columnName, boolean checkForColumn) {
Object obj = this.get(columnName);
if (obj != null) {
return obj.toString();
if(obj instanceof BigDecimal) {
return ((BigDecimal) obj).toPlainString();
} else {
return obj.toString();
}
} else {
if (checkForColumn) {
checkForColumn(columnName);
Expand Down

0 comments on commit fb41dd6

Please sign in to comment.