summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorlzhang2012-02-06 03:36:00 (EST)
committer mwu2012-02-06 03:36:00 (EST)
commit9c7ccc5268ab95a8e293e033dcdadc83c7b87b62 (patch)
treeb825e372ca013be099340a12eacf6d8124ec8f09
parent96c7816ecb62aa30d467d27522662fc5eec9423c (diff)
downloadorg.eclipse.birt-9c7ccc5268ab95a8e293e033dcdadc83c7b87b62.zip
org.eclipse.birt-9c7ccc5268ab95a8e293e033dcdadc83c7b87b62.tar.gz
org.eclipse.birt-9c7ccc5268ab95a8e293e033dcdadc83c7b87b62.tar.bz2
- Summary:
Ted issue 47191: Error when preview chart sharing result set of a crosstab with only derived measure. - Description of Issue: Fix an internal logic when replacing binding expression text - TED(s) Resolved: 47191 - Regression ( Yes/No ): No - Code Owner Team: DtE - Code Reviewers: Mingxia Wu - Project ID: 1577 - Manual Test Description: None - Tests Automated Cases Executed: None - Special Notes: None
-rw-r--r--data/org.eclipse.birt.data/src/org/eclipse/birt/data/engine/olap/impl/query/PreparedCubeQueryDefinition.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/data/org.eclipse.birt.data/src/org/eclipse/birt/data/engine/olap/impl/query/PreparedCubeQueryDefinition.java b/data/org.eclipse.birt.data/src/org/eclipse/birt/data/engine/olap/impl/query/PreparedCubeQueryDefinition.java
index a9da361..9db91f3 100644
--- a/data/org.eclipse.birt.data/src/org/eclipse/birt/data/engine/olap/impl/query/PreparedCubeQueryDefinition.java
+++ b/data/org.eclipse.birt.data/src/org/eclipse/birt/data/engine/olap/impl/query/PreparedCubeQueryDefinition.java
@@ -270,8 +270,8 @@ public class PreparedCubeQueryDefinition implements ICubeQueryDefinition
.toString( ));
String bindingName = b.getBindingName( );
- if ( !Arrays.deepEquals( b.getAggregatOns( ).toArray( ),
- binding.getAggregatOns( ).toArray( ) ) || b.getAggrFunction( )!= binding.getAggrFunction( ) )
+ if ( (!Arrays.deepEquals( b.getAggregatOns( ).toArray( ),
+ binding.getAggregatOns( ).toArray( ) ) )|| !b.getAggrFunction( ).equals(binding.getAggrFunction( )) )
{
IBinding newBinding = new Binding(bindingName+"_"+binding.getBindingName( ));
newBinding.setDataType( b.getDataType( ) );