summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorlzhang2011-11-30 22:35:48 (EST)
committer mwu2011-11-30 22:35:48 (EST)
commite2a265303f23bf4d3db58172dfa27319a777c4e5 (patch)
tree78e4fd89ca104250d1c4d683c98ee3b095c2f65a
parente9089a3f20b281d8a96bedae22343468068afd9d (diff)
downloadorg.eclipse.birt-e2a265303f23bf4d3db58172dfa27319a777c4e5.zip
org.eclipse.birt-e2a265303f23bf4d3db58172dfa27319a777c4e5.tar.gz
org.eclipse.birt-e2a265303f23bf4d3db58172dfa27319a777c4e5.tar.bz2
Checkin: Derived measure with complicated expressin using "if" doesn't
work [45662]
-rw-r--r--data/org.eclipse.birt.data/src/org/eclipse/birt/data/engine/olap/impl/query/PreparedCubeQueryDefinition.java3
1 files changed, 2 insertions, 1 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 a80b6bf..a179bb8 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
@@ -258,7 +258,8 @@ public class PreparedCubeQueryDefinition implements ICubeQueryDefinition
private String getReplacedExpressionText( String text, Map measureMap,
Map derivedMeasureMap, Map createdBindings ) throws DataException
{
- List measureNames = ExpressionCompilerUtil.extractColumnExpression( new ScriptExpression( text ),
+ List measureNames = ExpressionCompilerUtil.extractColumnExpression( new ScriptExpression( text.substring( 1,
+ text.length( ) - 1 ) ),
ExpressionUtil.MEASURE_INDICATOR );
for ( int i = 0; i < measureNames.size( ); i++ )