sandynz commented on a change in pull request #14767:
URL: https://github.com/apache/shardingsphere/pull/14767#discussion_r784647303
##########
File path:
shardingsphere-kernel/shardingsphere-data-pipeline/shardingsphere-data-pipeline-dialect/shardingsphere-data-pipeline-postgresql/src/main/java/org/apache/shardingsphere/data/pipeline/postgresql/ingest/PostgreSQLInventoryDumper.java
##########
@@ -41,4 +43,16 @@ protected PreparedStatement createPreparedStatement(final
Connection connection,
result.setFetchSize(1);
return result;
}
+
+ @Override
+ protected Object readValue(final ResultSet resultSet, final int index)
throws SQLException {
+ if (isPgMoneyType(resultSet, index)) {
+ return resultSet.getBigDecimal(index);
+ }
Review comment:
Return `java.lang.Double` later, and translate to `java.math.BigDecimal`
on write into target. Refactor it later.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]