[jOOQ/jOOQ#10315] Fix Derby regression

This commit is contained in:
Lukas Eder 2020-06-24 12:20:45 +02:00
parent 477fa58a44
commit bd26c80cd3

View File

@ -222,7 +222,7 @@ final class CaseWhenStepImpl<V, T> extends AbstractField<T> implements CaseWhenS
when = when.when(value.eq(compareValues.get(i)), results.get(i));
if (when != null)
if (else_ == null)
if (else_ != null)
ctx.visit(when.else_(else_));
else
ctx.visit(when);