Bug 167384 Errors show up when add a Stored Procedure data set[0703]
Description: Errors show up when add a Stored Procedure data set[0703] Build number: 2.1.2.v20061211-0710 Steps to reproduce: 1. New a JDBC data source: Driver:net.sourceforge.jtds.jdbc.Driver (v0.9) URL:jdbc:jtds:sqlserver://spmdb/gui User:sa, Password:sa 2. New a "SQL Stored Procedure Query" data set, {call dbo.counterInT1(?)}, edit data set parameter, direction:output, save. Expected result: No errors. Actual result: Errors show up. Error log: In Problems View: The result set of data set "ODA Data Set("Data Set")" must have at least one result set column.
model/org.eclipse.birt.report.model/src/org/eclipse/birt/report/model/api/validators/DataSetResultSetValidator.java
import java.util.List;
import org.eclipse.birt.report.model.api.elements.SemanticError;
import org.eclipse.birt.report.model.core.DesignElement;
import org.eclipse.birt.report.model.core.Module;
import org.eclipse.birt.report.model.elements.SimpleDataSet;
import org.eclipse.birt.report.model.elements.interfaces.IDataSetModel;
import org.eclipse.birt.report.model.validators.AbstractElementValidator;
/**
 * Validates the result set of the given data set has at least one column.
 * 
 * <h3>Rule</h3>
 * The rule is that the result set of the given data set has at least one
 * column.
 * 
 * <h3>Applicability</h3>
 * This validator is only applied to <code>DataSet</code>.
 *  
 */
public class DataSetResultSetValidator extends AbstractElementValidator
{
	private final static DataSetResultSetValidator instance = new DataSetResultSetValidator( );
	/**
	 * Returns the singleton validator instance.
	 * 
	 * @return the validator instance
	 */
	public static DataSetResultSetValidator getInstance( )
	{
		return instance;
	}