Skip to content

Commit db5a672

Browse files
committed
fix: render decimal values without scientific notation
1 parent 8ce5dbb commit db5a672

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

backend/framework/src/main/java/org/jumpserver/chen/framework/datasource/base/BaseSQLActuator.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,11 @@ protected Object normalizeJdbcValue(Object value) throws SQLException {
232232
return temporalValue;
233233
}
234234

235-
if (value instanceof Long || value instanceof BigDecimal || value instanceof BigInteger) {
235+
if (value instanceof BigDecimal decimal) {
236+
return decimal.toPlainString();
237+
}
238+
239+
if (value instanceof Long || value instanceof BigInteger) {
236240
return value.toString();
237241
}
238242

0 commit comments

Comments
 (0)