[jOOQ/jOOQ#12425] Fix regression in NullTreatment implementation
The splitting of window functions into individual classes has introduced a regression in the implementation of NullTreatment in all non-Db2 implementations.
This commit is contained in:
parent
466b0aeaee
commit
63afa3ebdd
@ -151,8 +151,8 @@ abstract class AbstractLeadLag<T> extends AbstractWindowFunction<T> {
|
||||
|
||||
|
||||
|
||||
acceptNullTreatment(ctx);
|
||||
ctx.sql(')');
|
||||
acceptNullTreatment(ctx);
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
@ -78,8 +78,8 @@ final class FirstValue<T> extends AbstractWindowFunction<T> implements QOM.First
|
||||
|
||||
|
||||
|
||||
acceptNullTreatment(ctx);
|
||||
ctx.sql(')');
|
||||
acceptNullTreatment(ctx);
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
@ -78,8 +78,8 @@ final class LastValue<T> extends AbstractWindowFunction<T> implements QOM.LastVa
|
||||
|
||||
|
||||
|
||||
acceptNullTreatment(ctx);
|
||||
ctx.sql(')');
|
||||
acceptNullTreatment(ctx);
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
@ -81,9 +81,9 @@ final class NthValue<T> extends AbstractWindowFunction<T> implements QOM.NthValu
|
||||
|
||||
|
||||
|
||||
ctx.sql(')');
|
||||
acceptFromFirstOrLast(ctx);
|
||||
acceptNullTreatment(ctx);
|
||||
ctx.sql(')');
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user