[jOOQ/jOOQ#12386] Positional window functions without ORDER BY should generate ORDER BY 1 in Oracle
This commit is contained in:
parent
82b9a2c4a3
commit
9c024ceae0
@ -188,12 +188,15 @@ final class WindowSpecificationImpl extends AbstractQueryPart implements
|
||||
if (ordered) {
|
||||
Field<Integer> constant;
|
||||
|
||||
switch (ctx.family()) {
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
constant = field(select(one()));
|
||||
default:
|
||||
constant = field(select(one())); break;
|
||||
}
|
||||
|
||||
o = new SortFieldList();
|
||||
o.add(constant.sortDefault());
|
||||
|
||||
Loading…
Reference in New Issue
Block a user