提交 3f120bc9 authored 作者: Evgenij Ryazanov's avatar Evgenij Ryazanov

Do not lock rows in skipNextRow()

上级 624761e2
......@@ -1859,6 +1859,7 @@ public class Select extends Query {
protected Value[] fetchNextRow() {
while ((sampleSize <= 0 || rowNumber < sampleSize) && topTableFilter.next()) {
setCurrentRowNumber(rowNumber + 1);
// This method may lock rows
if (isSelectConditionMet()) {
++rowNumber;
Value[] row = new Value[columnCount];
......@@ -1876,7 +1877,8 @@ public class Select extends Query {
protected boolean skipNextRow() {
while ((sampleSize <= 0 || rowNumber < sampleSize) && topTableFilter.next()) {
setCurrentRowNumber(rowNumber + 1);
if (isSelectConditionMet()) {
// This method does not lock rows
if (isConditionMet()) {
++rowNumber;
return true;
}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论