Bug 160650 IDataExtractionTask.selectColumns() doesn't work.
Description: IDataExtractionTask.selectColumns() doesn't work. Steps to reproduce: Codes: String[] columns={"code","territory"}; task.selectResultSet( "t1" ); task.selectColumns(columns ); IExtractionResults result = task.extract( ); assertEquals(2,result.getResultMetaData( ).getColumnCount( )); Covered in DataExtractionTaskTest.testMethods() case. Expected result: Column count is 2. Actual result: Column count is 3.
engine/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/api/impl/DataIterator.java
public IResultMetaData getResultMetaData( ) throws BirtException
	{
		return results.getResultMetaData( );
	}
	public boolean next( ) throws BirtException
	{
		return iterator.next( );
	}
	public Object getValue( String columnName ) throws BirtException
	{
		return iterator.getValue( columnName );
	}
	public Object getValue( int index ) throws BirtException
	{
		IResultMetaData metaData = getResultMetaData( );
		String columnName = metaData.getColumnName( index );
		return iterator.getValue( columnName );
	}
	public void close( )
	{
		try
		{
			iterator.close( );
		}
		catch ( BirtException ex )
		{
		}
	}
}