[#1028] Syntax errors when using untyped param() in HSQLDB (and other strongly typed dialects)

This commit is contained in:
Lukas Eder 2012-01-04 16:49:20 +00:00
parent 9687809b8a
commit ee29265748

View File

@ -143,7 +143,7 @@ class Val<T> extends AbstractField<T> implements Param<T> {
}
// [#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) {