Bug 145741 Could not set the value of Boolean parameter as 0 or 1
Description: Could not set the value of report scalar boolean parameter as 0 or 1. Steps to reproduce: 1.Create a report parameter, boolean type, Combo Box display type. 2.Add the value as 0, failed. Expect result: Could set integer value to boolean type parameter.
core/org.eclipse.birt.core/src/org/eclipse/birt/core/data/DataTypeUtil.java
public static int toApiDataType( Class clazz )
	{
		if ( clazz == null )
			return DataType.UNKNOWN_TYPE;
		if ( clazz == DataType.AnyType.class )
			return DataType.ANY_TYPE;
		else if ( Integer.class.isAssignableFrom(clazz) )
			return DataType.INTEGER_TYPE;
		else if ( Double.class.isAssignableFrom(  clazz ))
			return DataType.DOUBLE_TYPE;
		else if ( String.class.isAssignableFrom( clazz ))
			return DataType.STRING_TYPE;
		else if ( BigDecimal.class.isAssignableFrom( clazz ))
			return DataType.DECIMAL_TYPE;
		else if (Date.class.isAssignableFrom( clazz ))
			return DataType.DATE_TYPE;
		else if ( byte[].class.isAssignableFrom( clazz))
			return DataType.BINARY_TYPE;
        else if ( Clob.class.isAssignableFrom( clazz ) ||
                  clazz.getName().equals( 
				"org.eclipse.datatools.connectivity.oda.IClob" ) )
			return DataType.STRING_TYPE;
		else if ( Blob.class.isAssignableFrom( clazz ) ||
                  clazz.getName( ).equals( 
				"org.eclipse.datatools.connectivity.oda.IBlob" ) )
			return DataType.BINARY_TYPE;
		
		return DataType.UNKNOWN_TYPE;
	}