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
/**
	 * Validates whether the result set of the given data set has no column
	 * defined.
	 * 
	 * @param module
	 *            the module
	 * @param element
	 *            the data set to validate
	 * @return error list, each of which is the instance of
	 *         <code>SemanticException</code>.
	 */
	public List validate( Module module, DesignElement element )
	{
		if ( !( element instanceof SimpleDataSet ) )
			return Collections.EMPTY_LIST;
		return doValidate( module, (SimpleDataSet) element );
	}
	private List doValidate( Module module, SimpleDataSet toValidate )
	{
		List list = new ArrayList( );
		List columns = (List) toValidate.getProperty( module,
				IDataSetModel.RESULT_SET_PROP );
		if ( columns != null && columns.size( ) == 0 )
		{
			list.add( new SemanticError( toValidate,
					SemanticError.DESIGN_EXCEPTION_AT_LEAST_ONE_COLUMN ) );
		}
		return list;
	}
}