summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorlzhang2012-02-26 23:46:43 (EST)
committer mwu2012-02-26 23:46:43 (EST)
commita791932d1fabef3d681bd4b76cd7f25876b7cdbf (patch)
treee9fe499f349367c6969643fe3c6a5d5507a222d8
parent3d8e54c2c91eeaef8e8940b090ef53848e348656 (diff)
downloadorg.eclipse.birt-a791932d1fabef3d681bd4b76cd7f25876b7cdbf.zip
org.eclipse.birt-a791932d1fabef3d681bd4b76cd7f25876b7cdbf.tar.gz
org.eclipse.birt-a791932d1fabef3d681bd4b76cd7f25876b7cdbf.tar.bz2
Only one column left after refresh a data set.[47909]
-rw-r--r--data/org.eclipse.birt.report.data.adapter/src/org/eclipse/birt/report/data/adapter/impl/DataSetMetaDataHelper.java8
1 files changed, 7 insertions, 1 deletions
diff --git a/data/org.eclipse.birt.report.data.adapter/src/org/eclipse/birt/report/data/adapter/impl/DataSetMetaDataHelper.java b/data/org.eclipse.birt.report.data.adapter/src/org/eclipse/birt/report/data/adapter/impl/DataSetMetaDataHelper.java
index 61eb3d0..72c0e8e 100644
--- a/data/org.eclipse.birt.report.data.adapter/src/org/eclipse/birt/report/data/adapter/impl/DataSetMetaDataHelper.java
+++ b/data/org.eclipse.birt.report.data.adapter/src/org/eclipse/birt/report/data/adapter/impl/DataSetMetaDataHelper.java
@@ -252,7 +252,13 @@ public class DataSetMetaDataHelper
rsColumn.setNativeName( meta.getColumnName( i ) );
rsColumn.setPosition( Integer.valueOf( i ) );
- handle.addItem( rsColumn );
+ try
+ {
+ handle.addItem( rsColumn );
+ }
+ catch (Exception ex)
+ {
+ }
uniqueColumnNameSet.add( uniqueName );
}
}