Bug 210510 The filter's select value from String type dimension should be quoted[1102]
Description: The select value from String type dimension should be quoted, we should judge the data type from the binding of crosstab, currently we may judge the type from the dimension in cube builder. Build number: 2.3.0.v20071121-0800 Steps to reproduce: 1, New a cube with Integer type dimension 2, New a crosstab using the cube 3, Change the Integer type dimension's binding to String type 4, New a filter on that dimension and select value Expected result: The selected value should be quoted such as "11001" Actual result: The select value is without quotes. Error log:
data/org.eclipse.birt.report.data.adapter/src/org/eclipse/birt/report/data/adapter/impl/CubeQueryUtil.java
Set refDimLevel = OlapExpressionCompiler.getReferencedDimLevel( binding.getExpression( ),
						bindings,
						isSort );
				if ( refDimLevel.size( ) > 1 )
					continue;
				if ( !refDimLevel.contains( target ) )
				{
					List aggrOns = binding.getAggregatOns( );
					if( aggrOns.size( ) == 0 )
					{
						if ( isGrandTotal( binding ) && isSort )
							continue;
						if ( this.getReferencedMeasureName( binding.getExpression( ) ) != null )
						{
							if ( this.isLeafLevel( cubeDefn, target )
									&& binding.getAggrFunction( ) == null )
							{
								result.add( new BindingMetaInfo( binding.getBindingName( ),
										IBindingMetaInfo.MEASURE_TYPE ) );
								continue;
							}
							else if ( isGrandTotal( binding ) )
							{
								result.add( new BindingMetaInfo( binding.getBindingName( ),
										IBindingMetaInfo.GRAND_TOTAL_TYPE ) );
								continue;
							}
						}
					}
					for ( int j = 0; j < aggrOns.size( ); j++ )