From ee292657487375d64ebee36220e948fdc4caf6ff Mon Sep 17 00:00:00 2001 From: Lukas Eder Date: Wed, 4 Jan 2012 16:49:20 +0000 Subject: [PATCH] [#1028] Syntax errors when using untyped param() in HSQLDB (and other strongly typed dialects) --- jOOQ/src/main/java/org/jooq/impl/Val.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jOOQ/src/main/java/org/jooq/impl/Val.java b/jOOQ/src/main/java/org/jooq/impl/Val.java index 8c348c7bbb..a0b46168f3 100644 --- a/jOOQ/src/main/java/org/jooq/impl/Val.java +++ b/jOOQ/src/main/java/org/jooq/impl/Val.java @@ -143,7 +143,7 @@ class Val extends AbstractField implements Param { } // [#1028] Most databases don't know an OTHER type (except H2, HSQLDB). - else if (SQLDataType.OTHER == getDataType(context)) { + else if (SQLDataType.OTHER == getDataType(context).getSQLDataType()) { // If the bind value is set, it can be used to derive the cast type if (value != null) {