Skip to content

Commit

Permalink
[Fix-3964] [metadata] Fix NPE when executing a query statement on the…
Browse files Browse the repository at this point in the history
… PG table
  • Loading branch information
aiwenmo committed Dec 13, 2024
1 parent fe775bd commit 2b4e90b
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,9 @@ public PostgreSqlTypeConvert() {

private static Optional<ColumnType> convertDecimalOrNumeric(
Column column, DriverConfig<AbstractJdbcConfig> driverConfig) {
// 该字段的精度
if (column.getPrecision() == null) {
return Optional.of(ColumnType.DECIMAL);
}
int intValue = column.getPrecision().intValue();
if (intValue > 38) {
return Optional.of(ColumnType.STRING);
Expand Down

0 comments on commit 2b4e90b

Please sign in to comment.