Use Prepared.getSession() instead of synthetic accessor methods

上级 3efb1b28
...@@ -1483,7 +1483,7 @@ public class Select extends Query { ...@@ -1483,7 +1483,7 @@ public class Select extends Query {
Value[] row = new Value[columnCount]; Value[] row = new Value[columnCount];
for (int i = 0; i < columnCount; i++) { for (int i = 0; i < columnCount; i++) {
Expression expr = expressions.get(i); Expression expr = expressions.get(i);
row[i] = expr.getValue(session); row[i] = expr.getValue(getSession());
} }
return row; return row;
} }
...@@ -1521,7 +1521,7 @@ public class Select extends Query { ...@@ -1521,7 +1521,7 @@ public class Select extends Query {
for (int i = 0; i < groupIndex.length; i++) { for (int i = 0; i < groupIndex.length; i++) {
int idx = groupIndex[i]; int idx = groupIndex[i];
Expression expr = expressions.get(idx); Expression expr = expressions.get(idx);
keyValues[i] = expr.getValue(session); keyValues[i] = expr.getValue(getSession());
} }
Value[] row = null; Value[] row = null;
...@@ -1538,7 +1538,7 @@ public class Select extends Query { ...@@ -1538,7 +1538,7 @@ public class Select extends Query {
for (int i = 0; i < columnCount; i++) { for (int i = 0; i < columnCount; i++) {
if (groupByExpression == null || !groupByExpression[i]) { if (groupByExpression == null || !groupByExpression[i]) {
Expression expr = expressions.get(i); Expression expr = expressions.get(i);
expr.updateAggregate(session); expr.updateAggregate(getSession());
} }
} }
if (row != null) { if (row != null) {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论