DB2 / others: FIX EQL-Test

This commit is contained in:
Roland Praml committed 2022-01-05 17:37:19 +01:00
1 parent d5fe62fe31
commit db0ccfeb1b
1 file changed
+5 -2
@@ -1,6 +1,7 @@
package io.ebeaninternal.server.expression;
import io.ebean.bean.EntityBean;
import io.ebean.core.type.ScalarType;
import io.ebean.plugin.ExpressionPath;
import io.ebeaninternal.api.SpiExpression;
import io.ebeaninternal.api.SpiExpressionRequest;
@@ -90,9 +91,11 @@ public final class SimpleExpression extends AbstractValueExpression {
request.addBindEncryptKey(bindVal);
return;
}
ScalarType<?> st = prop.beanProperty().scalarType();
request.addBindValue(st.toJdbcType(st.toBeanType(value())));
} else {
request.addBindValue(value());
}
request.addBindValue(value());
}
@Override