Skip to content

Commit

Permalink
Checkin:Using a formula as a group binding does not work
Browse files Browse the repository at this point in the history
correctly.[45785]
  • Loading branch information
daniel.cui authored and mwu committed Dec 20, 2011
1 parent 4f3ac17 commit 53e94c8
Showing 1 changed file with 6 additions and 1 deletion.
Expand Up @@ -111,6 +111,11 @@ public static Strategy getQueryExecutionStrategy( DataEngineSession session, IQu
}

boolean hasAggregation = false;
boolean hasGroup = false;
if( query.getGroups()!=null && query.getGroups().size()>0)
{
hasGroup = true;
}

if ( query.getBindings( ) != null )
{
Expand Down Expand Up @@ -209,6 +214,6 @@ public static Strategy getQueryExecutionStrategy( DataEngineSession session, IQu
}
}

return hasAggregation?Strategy.SimpleLookingFoward:Strategy.SimpleNoLookingFoward;
return (hasAggregation||hasGroup)?Strategy.SimpleLookingFoward:Strategy.SimpleNoLookingFoward;
}
}

0 comments on commit 53e94c8

Please sign in to comment.