[jOOQ/jOOQ#16450] SEEK doesn't work correctly when there are multiple
noField() arguments and ORDER BY is uniform and Settings.renderRowConditionForSeekClause is true
This commit is contained in:
parent
fff5a93172
commit
e4f0c596d7
@ -4450,10 +4450,15 @@ final class SelectQueryImpl<R extends Record> extends AbstractResultQuery<R> imp
|
||||
l = new ArrayList<>(l);
|
||||
r = new ArrayList<>(r);
|
||||
|
||||
for (int i = 0; i < r.size(); i++) {
|
||||
if (r.get(i) instanceof NoField) {
|
||||
l.remove(i);
|
||||
r.remove(i);
|
||||
Iterator<Field<?>> lit = l.iterator();
|
||||
Iterator<Field<?>> rit = r.iterator();
|
||||
|
||||
while (lit.hasNext() && rit.hasNext()) {
|
||||
lit.next();
|
||||
|
||||
if (rit.next() instanceof NoField) {
|
||||
lit.remove();
|
||||
rit.remove();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user