Bug 123545 DateTimeSpan not working properly in Edit Data Set
i cannot use the following script in Edit Data Set, DateTimeSpan.addDate(row["SHIPPEDDATE"], 0, 0, 10) seps to reproduce: - open the attached report design - go to Data Explorer - open Edit Data Set - Preview Results expected behavior: - the above script is executed. actual behavior: - errors were thrown.
data/org.eclipse.birt.data/src/org/eclipse/birt/data/engine/impl/DataEngineImpl.java
IPreparedQuery result = PreparedDataSourceQuery.newInstance( this,
				querySpec, appContext );
		configureDataSetCache( querySpec, appContext );
		
		logger.fine( "Finished preparing query." );
		logger.exiting( DataEngineImpl.class.getName( ), "prepare" );
		return result;
	}
	/**
	 * @param appContext
	 */
	private void configureDataSetCache( IQueryDefinition querySpec, Map appContext )
	{
		if ( querySpec == null )
			return;
		
		String dataSetName = querySpec.getDataSetName( );
		IBaseDataSetDesign dataSetDesign = this.getDataSetDesign( dataSetName );
		IBaseDataSourceDesign dataSourceDesign = this.getDataSourceRuntime( dataSetDesign.getDataSourceName( ) )
				.getDesign( );
		DataSetCacheManager.getInstance( )
				.setDataSourceAndDataSet( dataSourceDesign,
						dataSetDesign,
						querySpec.getInputParamBindings( ) );
		
		int cacheOption = context.getCacheOption( );
		if ( cacheOption == DataEngineContext.CACHE_USE_ALWAYS )
		{
			DataSetCacheManager.getInstance( )
					.setCacheOption( DataSetCacheManager.ALWAYS );