We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 7691fd0 + 283703b commit fcb54d3Copy full SHA for fcb54d3
databend-jdbc/src/main/java/com/databend/jdbc/AbstractDatabendResultSet.java
@@ -573,8 +573,13 @@ public Timestamp getTimestamp(int columnIndex)
573
private Timestamp getTimestamp(int columnIndex, DateTimeZone localTimeZone)
574
throws SQLException {
575
Object value = column(columnIndex);
576
+
577
if (value == null || value.toString().equalsIgnoreCase("null")) {
- return new Timestamp(0);
578
+ return null;
579
+ }
580
581
+ if (localTimeZone == null || localTimeZone.getID() == null) {
582
+ return parseTimestampAsSqlTimestamp((String) value, ZoneId.systemDefault());
583
}
584
585
return parseTimestampAsSqlTimestamp((String) value, ZoneId.of(localTimeZone.getID()));
0 commit comments