summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordaniel.cui2011-12-20 01:52:16 (EST)
committer mwu2011-12-20 01:52:16 (EST)
commit53e94c8c35aba50a4e571897bfe76682db15273e (patch)
tree048a624e3363cba1f1def1c5fdb207b0d2b2ecf8
parent4f3ac17d8cb6b94738e8bae9a94ea92d9320e773 (diff)
downloadorg.eclipse.birt-53e94c8c35aba50a4e571897bfe76682db15273e.zip
org.eclipse.birt-53e94c8c35aba50a4e571897bfe76682db15273e.tar.gz
org.eclipse.birt-53e94c8c35aba50a4e571897bfe76682db15273e.tar.bz2
Checkin:Using a formula as a group binding does not work
correctly.[45785]
-rw-r--r--data/org.eclipse.birt.data/src/org/eclipse/birt/data/engine/executor/QueryExecutionStrategyUtil.java7
1 files changed, 6 insertions, 1 deletions
diff --git a/data/org.eclipse.birt.data/src/org/eclipse/birt/data/engine/executor/QueryExecutionStrategyUtil.java b/data/org.eclipse.birt.data/src/org/eclipse/birt/data/engine/executor/QueryExecutionStrategyUtil.java
index 3c51e75..898106b 100644
--- a/data/org.eclipse.birt.data/src/org/eclipse/birt/data/engine/executor/QueryExecutionStrategyUtil.java
+++ b/data/org.eclipse.birt.data/src/org/eclipse/birt/data/engine/executor/QueryExecutionStrategyUtil.java
@@ -111,6 +111,11 @@ public final class QueryExecutionStrategyUtil
}
boolean hasAggregation = false;
+ boolean hasGroup = false;
+ if( query.getGroups()!=null && query.getGroups().size()>0)
+ {
+ hasGroup = true;
+ }
if ( query.getBindings( ) != null )
{
@@ -209,6 +214,6 @@ public final class QueryExecutionStrategyUtil
}
}
- return hasAggregation?Strategy.SimpleLookingFoward:Strategy.SimpleNoLookingFoward;
+ return (hasAggregation||hasGroup)?Strategy.SimpleLookingFoward:Strategy.SimpleNoLookingFoward;
}
}