[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:
Lukas Eder 2024-03-18 11:53:50 +01:00
parent fff5a93172
commit e4f0c596d7

View File

@ -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();
}
}
}