Bug 187775 Dataset parameter binding is lost after adding new column to query
Build ID: I20070323-1616 Steps To Reproduce: 1. Create new report with query "select customername from customers where customer like ?" and create a database parameter. 2. Create report parameter. 3. Bind database parameter to report parameter. 4. Run report. Ok. 5. Add new column "customernumber" to select clause of query. 6. Check dataset parameter binding: database parameter has no binding anymore. BIRT 2.2M6
model/org.eclipse.birt.report.model.adapter.oda/src/org/eclipse/birt/report/model/adapter/oda/impl/DataSetParameterAdapter.java
* Merges user-defined and driver-defined parameters.
	 * 
	 * @param paramList
	 *            a list contains user-defined and driver-defined parameters.
	 *            Each item is <code>OdaDataSetParameter</code>.
	 * @param userList
	 *            a list contains user-defined parameters. Each item is
	 *            <code>OdaDataSetParameter</code>.
	 * @return a list contains parameters.Each item is the copy of
	 *         <code>OdaDataSetParameter</code> instance.
	 * @throws SemanticException
	 */
	private List mergeUserDefindAndDriverDefinedParameter( List paramList )
			throws SemanticException
	{
		List resultList = new ArrayList( );
		if ( paramList == null && userDefinedParams == null )
			return resultList;
		if ( paramList == null )
			return userDefinedParams;
		if ( userDefinedParams == null )
			return paramList;
		Iterator iterator = paramList.iterator( );
		List positionList = new ArrayList( );
		while ( iterator.hasNext( ) )
		{
			OdaDataSetParameter param = (OdaDataSetParameter) iterator.next( );
			Integer pos = param.getPosition( );
			OdaDataSetParameter userParam = findDataSetParameterByPosition(
					userDefinedParams.iterator( ), pos );