Bug 134665 report become dirty after previewing data set
steps to reproduce: - create a report - create a data source - create a data set - save the report - open the data set - preview results expected behavior: - the state of the report remains unchanged actual behavior: - the state of the report changed, as the report became dirty
data/org.eclipse.birt.report.data.adapter/src/org/eclipse/birt/report/data/adapter/impl/DataSetMetaDataHelper.java
rsc.setDataType( toModelDataType( rsMeta.getColumnType( i ) ) );
			rsc.setPosition( new Integer( i ) );
			dataSetHandle.getCachedMetaDataHandle( )
					.getResultSet( )
					.addItem( rsc );
		}
		return rsMeta;
	}
	/**
	 * Map oda data type to model data type.
	 * 
	 * @param modelDataType
	 * @return
	 */
	private static String toModelDataType( int modelDataType )
	{
		if ( modelDataType == DataType.INTEGER_TYPE )
			return DesignChoiceConstants.COLUMN_DATA_TYPE_INTEGER;
		else if ( modelDataType == DataType.STRING_TYPE )
			return DesignChoiceConstants.COLUMN_DATA_TYPE_STRING;
		else if ( modelDataType == DataType.DATE_TYPE )
			return DesignChoiceConstants.COLUMN_DATA_TYPE_DATETIME;
		else if ( modelDataType == DataType.DECIMAL_TYPE )
			return DesignChoiceConstants.COLUMN_DATA_TYPE_DECIMAL;
		else if ( modelDataType == DataType.DOUBLE_TYPE )
			return DesignChoiceConstants.COLUMN_DATA_TYPE_FLOAT;
		return DesignChoiceConstants.COLUMN_DATA_TYPE_ANY;
	}
}