Changeset: fa42a669eddc for monetdb-java
URL: https://dev.monetdb.org/hg/monetdb-java?cmd=changeset;node=fa42a669eddc
Modified Files:
        src/main/java/nl/cwi/monetdb/jdbc/MonetPreparedStatement.java
Branch: default
Log Message:

make checking whether data type has timezone more strict (only when it is 
timetz or timestamptz).


diffs (23 lines):

diff --git a/src/main/java/nl/cwi/monetdb/jdbc/MonetPreparedStatement.java 
b/src/main/java/nl/cwi/monetdb/jdbc/MonetPreparedStatement.java
--- a/src/main/java/nl/cwi/monetdb/jdbc/MonetPreparedStatement.java
+++ b/src/main/java/nl/cwi/monetdb/jdbc/MonetPreparedStatement.java
@@ -2434,7 +2434,8 @@ public class MonetPreparedStatement
                        return;
                }
 
-               boolean hasTimeZone = 
monetdbType[getParamIdx(parameterIndex)].endsWith("tz");
+               String MonetDBType = monetdbType[getParamIdx(parameterIndex)];
+               boolean hasTimeZone = ("timetz".equals(MonetDBType) || 
"timestamptz".equals(MonetDBType));
                if (hasTimeZone) {
                        // timezone shouldn't matter, since the server is 
timezone
                        // aware in this case
@@ -2504,7 +2505,8 @@ public class MonetPreparedStatement
                        return;
                }
 
-               boolean hasTimeZone = 
monetdbType[getParamIdx(parameterIndex)].endsWith("tz");
+               String MonetDBType = monetdbType[getParamIdx(parameterIndex)];
+               boolean hasTimeZone = ("timestamptz".equals(MonetDBType) || 
"timetz".equals(MonetDBType));
                if (hasTimeZone) {
                        // timezone shouldn't matter, since the server is 
timezone
                        // aware in this case
_______________________________________________
checkin-list mailing list
checkin-list@monetdb.org
https://www.monetdb.org/mailman/listinfo/checkin-list

Reply via email to