Bug 168026 Still use the existing data binding even though the aggregate is different
I had a table in which a data binding which aggregates on a group. When I insert a new data item in the report, although the expressions are same, it aggregates on All, then it refered to the existing data binding. The expected behavior would be a new data binding is created with different aggregates.
model/org.eclipse.birt.report.model.tests/test/org/eclipse/birt/report/model/api/ReportItemHandleTest.java
tmpComputedColumn.setName( "new column2" ); 
		textHandle.addColumnBinding( tmpComputedColumn, false );
		assertEquals( 1, list.size( ) );
		textHandle.addColumnBinding( tmpComputedColumn, true );
		assertEquals( 2, list.size( ) );
		Iterator iter1 = textHandle.columnBindingsIterator( );
		ComputedColumnHandle columnHandle1 = (ComputedColumnHandle) iter1
				.next( );
		assertEquals( "new column1", columnHandle1.getName( ) ); 
		ComputedColumnHandle columnHandle2 = (ComputedColumnHandle) iter1
				.next( );
		assertEquals( "new column2", columnHandle2.getName( ) ); 
		try
		{
			columnHandle2.setName( "new column1" ); 
			fail( );
		}
		catch ( SemanticException e )
		{
			assertEquals( PropertyValueException.DESIGN_EXCEPTION_VALUE_EXISTS,
					e.getErrorCode( ) );
		}
		columnHandle2.setName( "new column3" ); 
		assertEquals( "new column3", columnHandle2.getName( ) ); 
		
		columnHandle2.setName( "table1.column3" ); 
		assertEquals( "table1.column3", columnHandle2.getName( ) ); 
	}
}