Project: Birt
Bug 282846 ColumnBindingMetaData incorreclty sets display name to same value as column name
Reported: 2009-07-08 09:20:59 | Status: verified fixed

Build ID: 20090619-0625 Steps To Reproduce: 1) Use ODA driver that IResultSetMetaData.getColumnLabel() not equals IResultSetMetaData.getColumnName() 2) Invoke the data engine to fetch the data via ODA driver 3) IResultIterator.getResultMetaData().getColumnLabel(index) returns name rather than label More information: We embed the BIRT data engine withing our RCP application. The problem we encountered when moving from Eclipse 34 to Eclipse 35 (and BIRT 2.5) is such that column label specified by the ODA metadata in IResultSetMetaData.getColumnLabel() are not available through IResultIterator.getResultMetaData().getColumnLabel(index) BIRT data engine API. I believe the issue is in class: ColumnBindingMetaData, line: binding.setDisplayName( colName ); I believe there should be: metaData.getColumnLabel(colIndex) instead.

Files changed in fix:
data/org.eclipse.birt.data/src/org/eclipse/birt/data/engine/impl/ColumnBindingMetaData.java data/org.eclipse.birt.report.data.adapter/src/org/eclipse/birt/report/data/adapter/impl/ModelAdapter.java