Bug 180617 [Regression] Exception is thrown out when create a stored procedure data set [0703]
Description: Exception is thrown out when create a stored procedure data set Build number: 2.2.0.v20070403-0630 Steps to reproduce: 1. Add a data source, Driver:net.sourceforge.jtds.jdbc.Driver (v0.9) URL:jdbc:jtds:sqlserver://spmdb/gui, User:sa, Password:sa. 2. Add a data set, select data set type "SQL Stored Procedure Query", edit this data set "{call counterInT1(?)}". 3. Click "Finish". Expected result: No exception is thrown out. Actual result: Exception is thrown out. Error log: A BIRT exception occurred. Plug-in Provider:Eclipse.org Plug-in Name:BIRT Data Engine Plug-in ID:org.eclipse.birt.data Version:2.2.0.v20070401 Error Code:odaconsumer.CannotGetResultSetMetaData Error Message:Cannot get the result set metadata. SQL statement does not return a ResultSet object. SQL error #1: Parameter #1 has not been set.
data/org.eclipse.birt.report.data.oda.jdbc/src/org/eclipse/birt/report/data/oda/jdbc/CallStatement.java
private final static String ERRMSG_SET_PARAMETER = "Error setting value for SQL parameter #";
	private static Logger logger = Logger.getLogger( CallStatement.class.getName( ) );
	
	private IParameterMetaData parameterDefn; 
	protected String procedureName;
	protected String[] resultSetNames;
	
	
	private static final String ORACLE_FLOAT_NAME = "FLOAT";
	private static final String ORACLE_CURSOR_NAME = "REF CURSOR";
	private static final int ORACLE_CURSOR_TYPE = -10;
	/**
	 * assertNull(Object o)
	 * 
	 * @param o
	 *            the object that need to be tested null or not. if null, throw
	 *            exception
	 */
	private void assertNotNull( Object o ) throws OdaException
	{
		if ( o == null )
		{
			throw new JDBCException( ResourceConstants.DRIVER_NO_STATEMENT,
					ResourceConstants.ERROR_NO_STATEMENT );
		}
	}
	/**
	 * 
	 * Constructor CallableStatement(java.sql.Connection connection) use JDBC's
	 * Connection to construct it.