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/ExtractionResults.java
this.resultIterator = resultIterator;
		this.metaData = metaData;
	}
	
	public IResultMetaData getResultMetaData( ) throws BirtException
	{
		return metaData;
	}
	public IDataIterator nextResultIterator( ) throws BirtException
	{
		if ( iterator == null )
		{
			if( null == resultIterator && null != queryResults )
			{
				resultIterator = queryResults.getResultIterator( );
			}
			this.iterator = new DataIterator( this, resultIterator, selectedColumns );
		}
		return iterator;
	}
	public void close( )
	{
		if ( iterator != null )
		{
			iterator.close( );
		}
		iterator = null;
	}
}