Bug 161669 Incomplete adaptation of an oda data set design's Dynamic Query
When adapting a dynamic query in an ODA DataSetDesign's input parameter definition (oda.design.DynamicValuesQuery.getDataSetDesign() ), ModelOdaAdapter stops at saving its referenced dataSet name, but does not actually create/update corresponding odaDataSetHandle in model. This leads to an error when attempting to use the referenced data set name.
model/org.eclipse.birt.report.model.adapter.oda/src/org/eclipse/birt/report/model/adapter/oda/ReportParameterAdapter.java
ScalarValueDefinition valueDefn = DesignFactory.eINSTANCE
					.createScalarValueDefinition( );
			valueDefn.setValue( choice.getValue( ) );
			valueDefn.setDisplayName( choice.getLabel( ) );
			staticChoices.getScalarValues( ).add( valueDefn );
		}
		inputAttrs.setStaticValueChoices( staticChoices );
		DataSetHandle setHandle = paramDefn.getDataSet( );
		String valueExpr = paramDefn.getValueExpr( );
		String labelExpr = paramDefn.getLabelExpr( );
		if ( setHandle instanceof OdaDataSetHandle
				&& ( valueExpr != null || labelExpr != null ) )
		{
			DynamicValuesQuery valueQuery = DesignFactory.eINSTANCE
					.createDynamicValuesQuery( );
			if ( dataSetDesign != null )
			{
				DataSetDesign targetDataSetDesign = (DataSetDesign) EcoreUtil
						.copy( dataSetDesign );
				if ( !setHandle.getName( ).equals( dataSetDesign.getName( ) ) )
					targetDataSetDesign = new ModelOdaAdapter( )
							.createDataSetDesign( (OdaDataSetHandle) setHandle );
				valueQuery.setDataSetDesign( targetDataSetDesign );
			}
			else
			{
				DataSetDesign targetDataSetDesign = new ModelOdaAdapter( )
						.createDataSetDesign( (OdaDataSetHandle) setHandle );
				valueQuery.setDataSetDesign( targetDataSetDesign );
			}