Bug 203909 If a parameter have no default value, the value of parameter in computed column should not be "null"[07]
Description: If a parameter have no default value, the value of parameter in computed column should not be "null"[07] Build number: 2.2.1.v20070918-0630 Steps to reproduce: 1, New a String type parameter and left the default value empty 2, New a Dataset and new a computed column 3, Specify the expression to params["parameterName"] 4, Preview in dataset Expected result: The value should not be "null" but blank Actual result: The value of computed column is "null"
data/org.eclipse.birt.report.data.adapter/src/org/eclipse/birt/report/data/adapter/api/script/DataAdapterTopLevelScope.java
ScalarParameterHandle sp = (ScalarParameterHandle) params;
		String defaultValue = sp.getDefaultValue( );
		String type = sp.getDataType( );
		if ( defaultValue == null )
		{
			
			if ( sp.allowNull( ) )
				return null;
			
			if ( DesignChoiceConstants.PARAM_TYPE_STRING.equals( type ) )
			{
				if ( sp.allowBlank( ) )
					return "";
				else
					return "null";
			}
			if ( DesignChoiceConstants.PARAM_TYPE_FLOAT.equals( type ) )
				return new Double( 0 );
			if ( DesignChoiceConstants.PARAM_TYPE_DECIMAL.equals( type ) )
				return new BigDecimal( (double) 0 );
			if ( DesignChoiceConstants.PARAM_TYPE_DATETIME.equals( type ) )
				return new Date( 0 );
			if ( DesignChoiceConstants.PARAM_TYPE_DATE.equals( type ) )
				return new java.sql.Date( 0 );
			if ( DesignChoiceConstants.PARAM_TYPE_TIME.equals( type ) )
				return new java.sql.Time( 0 );
			if ( DesignChoiceConstants.PARAM_TYPE_BOOLEAN.equals( type ) )
				return Boolean.FALSE;
			if ( DesignChoiceConstants.PARAM_TYPE_INTEGER.equals( type ) )
				return new Integer( 0 );