提交 e241c7b6 authored 作者: Noel Grandin's avatar Noel Grandin

fix assertions

上级 670af00d
...@@ -193,12 +193,12 @@ public class Select extends Query { ...@@ -193,12 +193,12 @@ public class Select extends Query {
*/ */
public void setCurrentGroupExprData(Expression expr, Object obj) { public void setCurrentGroupExprData(Expression expr, Object obj) {
if (cachedLookup == expr) { if (cachedLookup == expr) {
assert currentGroupByExprData[cachedLookupIndex] != null; assert currentGroupByExprData[cachedLookupIndex] == null;
currentGroupByExprData[cachedLookupIndex] = obj; currentGroupByExprData[cachedLookupIndex] = obj;
} }
Integer index = exprToIndexInGroupByData.get(expr); Integer index = exprToIndexInGroupByData.get(expr);
if (index != null) { if (index != null) {
assert currentGroupByExprData[index] != null; assert currentGroupByExprData[index] == null;
currentGroupByExprData[index] = obj; currentGroupByExprData[index] = obj;
return; return;
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论