Bug 213959 [Regression]Blob computed column doesn't work
Description: [Regression]Blob type computed column doesn't work Build number: 2.3.0.v20071228-1005 Steps to reproduce: 1, New a sampleDB from table PRODUCTLINE 2, New a computed column A; type is Blob; expression is row["IMAGE"] 3, Preview in dataset Expected result: The dataset can be preview ok Actual result: Error happened Error log: A BIRT exception occurred. Plug-in Provider:Eclipse.org Plug-in Name:BIRT Data Engine Plug-in ID:org.eclipse.birt.data Version:2.3.0.v20071228-1005 Error Code:data.engine.CompCol.FailRetrieveValueComputedColumn Error Message:Fail to compute value for computed column "AAA". Can not convert the value of [B@1a9efcd to Blob type.
core/org.eclipse.birt.core/src/org/eclipse/birt/core/data/DataTypeUtil.java
public static Date toDateWithCheck( String source, Locale locale )
			throws BirtException
	{
		return toDateWithCheck( source, ULocale.forLocale( locale ) );
	}
	/**
	 * Convert string to date with check.
	 * JDK may do incorrect converse, for example:
	 * 		2005/1/1 Local.US, format pattern is MM/dd/YY.
	 * Above conversion can be done without error, but obviously
	 * the result is not right. This method will do such a simple check,
	 * in DateFormat.SHORT case instead of all cases.
	 * 		Year is not lower than 0.
	 * 		Month is from 1 to 12.
	 * 		Day is from 1 to 31.  
	 * @param source
	 * @param locale
	 * @return Date
	 * @throws BirtException
	 */
	public static Date toDateWithCheck( String source, ULocale locale )
			throws BirtException
	{
		DateFormat dateFormat = DateFormatFactory.getDateInstance( DateFormat.SHORT,
				locale );
		Date resultDate = null;
		try
		{
			resultDate = dateFormat.parse( source );
		}