提交 994fe15e authored 作者: Noel Grandin's avatar Noel Grandin

make the logic match the logic in LazyResultGroupSorted

上级 6af565fd
......@@ -1451,8 +1451,9 @@ public class Select extends Query {
protected Value[] fetchNextRow() {
while ((sampleSize <= 0 || rowNumber < sampleSize) &&
topTableFilter.next()) {
setCurrentRowNumber(++rowNumber);
setCurrentRowNumber(rowNumber + 1);
if (isConditionMet()) {
++rowNumber;
Value[] row = new Value[columnCount];
for (int i = 0; i < columnCount; i++) {
Expression expr = expressions.get(i);
......@@ -1460,7 +1461,6 @@ public class Select extends Query {
}
return row;
}
--rowNumber;
}
return null;
}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论