[jOOQ/jOOQ#10662] Informix does not support SELECT NULL

This commit is contained in:
Lukas Eder 2020-09-21 11:29:01 +02:00
parent 8dbcd7190d
commit f029fa79a6

View File

@ -802,11 +802,20 @@ public class DefaultBinding<T, U> implements Binding<T, U> {
private final void sql(BindingSQLContext<U> ctx, T value) throws SQLException {
if (ctx.render().paramType() == INLINED)
if (value == null)
ctx.render().visit(K_NULL);
sqlInlineNull0(ctx);
else
sqlInline0(ctx, value);
else
sqlBind0(ctx, value);
}
private final void sqlInlineNull0(BindingSQLContext<U> ctx) {
ctx.render().visit(K_NULL);
}
/**