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/ResultMetaData.java
{
			Map.Entry entry = (Map.Entry) iter.next( );
			String name = (String) entry.getKey( );
			IBaseExpression expr = (IBaseExpression) entry.getValue( );
			int type = expr.getDataType( );
			metaEntries.add( new MetaDataEntry( name, type ) );
		}
	}
	public int getColumnCount( )
	{
		if ( selectedColumns != null )
		{
			return selectedColumns.length;
		}
		return metaEntries.size( );
	}
	public String getColumnName( int index ) throws BirtException
	{
		index = getColumnIndex( index );
		MetaDataEntry entry = (MetaDataEntry) metaEntries.get( index );
		return entry.name;
	}
	public String getColumnAlias( int index ) throws BirtException
	{
		return getColumnName( index );
	}
	public int getColumnType( int index ) throws BirtException
	{
		index = getColumnIndex( index );
		MetaDataEntry entry = (MetaDataEntry) metaEntries.get( index );