[jOOQ/jOOQ#5612] Inline enum values should be cast to their enum type just like inline bind variables
This commit is contained in:
parent
6283f55824
commit
27d529db23
@ -2689,6 +2689,9 @@ public class DefaultBinding<T, U> implements Binding<T, U> {
|
||||
@Override
|
||||
final void sqlInline0(BindingSQLContext<U> ctx, EnumType value) throws SQLException {
|
||||
binding(VARCHAR).sql(new DefaultBindingSQLContext<>(ctx.configuration(), ctx.data(), ctx.render(), value.getLiteral()));
|
||||
|
||||
if (REQUIRE_ENUM_CAST.contains(ctx.dialect()))
|
||||
pgRenderEnumCast(ctx.render(), dataType.getType());
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Loading…
Reference in New Issue
Block a user