it fixes the test

(cherry picked from commit d2e21aa3dcbd4ae59dd8d1ff5404d94c298f087b)
This commit is contained in:
Noemi Praml committed 2022-05-31 10:47:32 +02:00
1 parent d1a40b4739
commit c8be59fd95
2 files changed
+2 -2

No files matched your search

@@ -178,7 +178,7 @@ public class DataBind implements DataBinder {
@Override @Override
public final void setTime(Time v) throws SQLException { public final void setTime(Time v) throws SQLException {
Calendar timeZone = dataTimeZone.getTimeZone(); Calendar timeZone = dataTimeZone.getDateTimeZone();
if (timeZone != null) { if (timeZone != null) {
pstmt.setTime(++pos, v, timeZone); pstmt.setTime(++pos, v, timeZone);
} else { } else {
@@ -156,7 +156,7 @@ public class RsetDataReader implements DataReader {
@Override @Override
public final Time getTime() throws SQLException { public final Time getTime() throws SQLException {
Calendar cal = dataTimeZone.getTimeZone(); Calendar cal = dataTimeZone.getDateTimeZone();
if (cal != null) { if (cal != null) {
return rset.getTime(pos(), cal); return rset.getTime(pos(), cal);
} else { } else {