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
/*******************************************************************************
 * Copyright (c) 2004 Actuate Corporation.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * Contributors:
 *  Actuate Corporation  - initial API and implementation
 *******************************************************************************/
package org.eclipse.birt.report.engine.api.impl;
import org.eclipse.birt.core.exception.BirtException;
import org.eclipse.birt.data.engine.api.IResultIterator;
import org.eclipse.birt.report.engine.api.IDataIterator;
import org.eclipse.birt.report.engine.api.IExtractionResults;
import org.eclipse.birt.report.engine.api.IResultMetaData;
public class DataIterator implements IDataIterator