Bug 191447 Repreview the Output Parameters in storedprocedure dataset will lead the exception
Description: Repreview the Output Parameters in storedprocedure dataset will lead the exception Build number: 2.2.0.v20070607-0630 Steps to reproduce: 1, Open the attached report design 2, Open the Data Set 3, Preview Output Parameters 4, Click OK button 5, Reopen the Data Set 6, Preview Output Parameters again Expected result: The preview should be successfully Actual result: Exception occurs Error log: org.eclipse.birt.data.engine.core.DataException: Cannot execute the statement. SQL statement does not return a ResultSet object. SQL error #1: Parameter #2 has not been set. at org.eclipse.birt.data.engine.odaconsumer.PreparedStatement.execute(PreparedStatement.java:567) at org.eclipse.birt.data.engine.executor.DataSourceQuery.execute(DataSourceQuery.java:494) at org.eclipse.birt.data.engine.impl.PreparedOdaDSQuery$OdaDSQueryExecutor.executeOdiQuery(PreparedOdaDSQuery.java:338) at org.eclipse.birt.data.engine.impl.QueryExecutor.execute(QueryExecutor.java:761) at org.eclipse.birt.data.engine.impl.ServiceForQueryResults.executeQuery(ServiceForQueryResults.java:216) at org.eclipse.birt.data.engine.impl.QueryResults.getResultIterator(QueryResults.java:152) at org.eclipse.birt.report.designer.data.ui.dataset.OutputParameterPreviewPage.updateResults(OutputParameterPreviewPage.java:256) at org.eclipse.birt.report.designer.data.ui.dataset.OutputParameterPreviewPage.access$1(OutputParameterPreviewPage.java:190) at org.eclipse.birt.report.designer.data.ui.dataset.OutputParameterPreviewPage$2.run(OutputParameterPreviewPage.java:165)
data/org.eclipse.birt.report.data.oda.jdbc.ui/src/org/eclipse/birt/report/data/oda/jdbc/ui/editors/SQLDataSetEditorPage.java
private JdbcSQLSourceViewerConfiguration sourceViewerConfiguration = null;
	private String cachedSearchTxt = "";
	private String formerQueryTxt = "";
	private String cachedDbType = "";
	private int cachedSchemaComboIndex = -1;
	private DataSourceDesign prevDataSourceDesign;
	private DataSetDesign dataSetDesign;
	private boolean shouldUpdateDataSetDesign;
	
	protected ArrayList schemaList;
	 
	protected ArrayList tableList;
	private Connection jdbcConnection = null;
	private static String TABLE_ICON = "org.eclipse.birt.report.data.oda.jdbc.ui.editors.SQLDataSetEditorPage.TableIcon";
	private static String VIEW_ICON = "org.eclipse.birt.report.data.oda.jdbc.ui.editors.SQLDataSetEditorPage.ViewIcon";
	private static String PAGE_ICON = "org.eclipse.birt.report.data.oda.jdbc.ui.editors.SQLDataSetEditorPage.PageIcon";
	private static String SCHEMA_ICON = "org.eclipse.birt.report.data.oda.jdbc.ui.editors.SQLDataSetEditorPage.SchemaIcon";
	private static String DATABASE_ICON = "org.eclipse.birt.report.data.oda.jdbc.ui.editors.SQLDataSetEditorPage.DbIcon";
	private static String COLUMN_ICON = "org.eclipse.birt.report.data.oda.jdbc.ui.editors.SQLDataSetEditorPage.ColumnIcon";
	private static String DEFAULT_MESSAGE = JdbcPlugin.getResourceString( "dataset.new.query" );	
	
	private static String ENABLED = "YES";
	
	private static boolean isPageInitialization = true;
	
	static
	{
		try
		{
			ImageRegistry reg = JFaceResources.getImageRegistry( );