Bug 142675 [Regression]Query change is not saved without "Preview Results"
Steps to reproduce: 1.New a sample data source and a data set with table "CUSTOMERS" 2.Edit the data set, change table to "ORDERS", click "OK" Expected result: Query text is changed Actual result: Changed query is not saved unless click "Preview Results" before click "OK"
model/org.eclipse.birt.report.model.adapter.oda/src/org/eclipse/birt/report/model/adapter/oda/ModelOdaAdapter.java
.getOdaExtensionDataSourceId( ), setDesign
							.getOdaExtensionDataSetId( ) ) );
			ResultSetDefinition resultDefn = setDesign.getPrimaryResultSet( );
			if ( resultDefn == null )
			{
				ResultSets resultSets = setDesign.getResultSets( );
				if ( resultSets != null
						&& !resultSets.getResultSetDefinitions( ).isEmpty( ) )
					resultDefn = (ResultSetDefinition) resultSets
							.getResultSetDefinitions( ).get( 0 );
			}
			updateROMStructureList( setHandle
					.getPropertyHandle( OdaDataSetHandle.RESULT_SET_PROP ),
					ResultSetsAdapter.newROMResultSets( resultDefn, setDesign
							.getOdaExtensionDataSourceId( ), setDesign
							.getOdaExtensionDataSetId( ) ) );
			setHandle.setResultSetName( setDesign.getPrimaryResultSetName( ) );
			setHandle.setQueryText( setDesign.getQueryText( ) );
			DataSourceDesign sourceDesign = setDesign.getDataSourceDesign( );
			if ( sourceDesign != null )
			{
				OdaDataSourceHandle sourceHandle = (OdaDataSourceHandle) setHandle
						.getDataSource( );
				
				if ( isSourceChanged && sourceHandle != null
						&& !sourceHandle.getModuleHandle( ).isReadOnly( ) )
				{
					setHandle.setDataSource( sourceDesign.getName( ) );
					updateDataSourceHandle( sourceDesign, sourceHandle );
				}