Mercurial > hg > monetdb-java
diff src/main/java/org/monetdb/jdbc/MonetParameterMetaData.java @ 735:3dd0d43014e8
Disable checks for Types.LONGVARCHAR and Types.LONGVARBINARY as MonetDB server does not support these data types, and no mappings exists to these JDBC Types and thus these cases will never be reached in JDBC Driver.
author | Martin van Dinther <martin.van.dinther@monetdbsolutions.com> |
---|---|
date | Thu, 16 Feb 2023 17:01:26 +0100 (2023-02-16) |
parents | 99baab703566 |
children | 37eae5a78c1b |
line wrap: on
line diff
--- a/src/main/java/org/monetdb/jdbc/MonetParameterMetaData.java +++ b/src/main/java/org/monetdb/jdbc/MonetParameterMetaData.java @@ -204,7 +204,7 @@ final class MonetParameterMetaData } case Types.CHAR: case Types.VARCHAR: - case Types.LONGVARCHAR: // MonetDB doesn't use type LONGVARCHAR, it's here for completeness + /* case Types.LONGVARCHAR: // MonetDB doesn't use type LONGVARCHAR */ case Types.CLOB: // these data types have a variable length try { @@ -214,9 +214,10 @@ final class MonetParameterMetaData } case Types.BINARY: case Types.VARBINARY: + /* case Types.LONGVARBINARY: // MonetDB doesn't use type LONGVARBINARY */ case Types.BLOB: // these data types have a variable length - // It expect number of bytes, not number of hex chars + // It expects number of bytes, not number of hex chars try { return precisions[param]; } catch (IndexOutOfBoundsException e) {