summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormianrui2012-04-11 06:22:58 (EDT)
committer mwu2012-04-11 06:22:58 (EDT)
commitf531367c148de167dce7d8f593b7f4ecd2a86ac9 (patch)
treedbbcdbbe898a890c238c6e3e0eedddc58897505d
parent7cbba4e376f82db5d1414a417e4de974779c79da (diff)
downloadorg.eclipse.birt-f531367c148de167dce7d8f593b7f4ecd2a86ac9.zip
org.eclipse.birt-f531367c148de167dce7d8f593b7f4ecd2a86ac9.tar.gz
org.eclipse.birt-f531367c148de167dce7d8f593b7f4ecd2a86ac9.tar.bz2
Ted 36056 just set a default parameter by hand
-rw-r--r--data/org.eclipse.birt.report.data.oda.jdbc/src/org/eclipse/birt/report/data/oda/jdbc/ParameterMetaData.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/data/org.eclipse.birt.report.data.oda.jdbc/src/org/eclipse/birt/report/data/oda/jdbc/ParameterMetaData.java b/data/org.eclipse.birt.report.data.oda.jdbc/src/org/eclipse/birt/report/data/oda/jdbc/ParameterMetaData.java
index 41fb52b..6e59a52 100644
--- a/data/org.eclipse.birt.report.data.oda.jdbc/src/org/eclipse/birt/report/data/oda/jdbc/ParameterMetaData.java
+++ b/data/org.eclipse.birt.report.data.oda.jdbc/src/org/eclipse/birt/report/data/oda/jdbc/ParameterMetaData.java
@@ -156,6 +156,8 @@ public class ParameterMetaData implements IParameterMetaData
}
catch ( SQLException e )
{
+ if ( "S1C00".equals( e.getSQLState( ) ) )
+ return -1;
throw new JDBCException( ResourceConstants.PARAMETER_TYPE_CANNOT_GET,
e );
}