summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormianrui2012-04-19 05:33:33 (EDT)
committer mwu2012-04-19 05:33:33 (EDT)
commitbea4c377e4bcfd6c07168251e80ccba8633bad5e (patch)
treec05d2e3f6a86f6f5b040a3562bdc70bfdd43b87f
parent09e66d82dfe2e40212de77b700a24ca07306abfc (diff)
downloadorg.eclipse.birt-bea4c377e4bcfd6c07168251e80ccba8633bad5e.zip
org.eclipse.birt-bea4c377e4bcfd6c07168251e80ccba8633bad5e.tar.gz
org.eclipse.birt-bea4c377e4bcfd6c07168251e80ccba8633bad5e.tar.bz2
TED – Issue 49046
the error occures when parametre set into the master page.
-rw-r--r--data/org.eclipse.birt.data/src/org/eclipse/birt/data/engine/executor/DataSourceQuery.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/data/org.eclipse.birt.data/src/org/eclipse/birt/data/engine/executor/DataSourceQuery.java b/data/org.eclipse.birt.data/src/org/eclipse/birt/data/engine/executor/DataSourceQuery.java
index a0fa3c8..fbd9ac2 100644
--- a/data/org.eclipse.birt.data/src/org/eclipse/birt/data/engine/executor/DataSourceQuery.java
+++ b/data/org.eclipse.birt.data/src/org/eclipse/birt/data/engine/executor/DataSourceQuery.java
@@ -1096,9 +1096,12 @@ public class DataSourceQuery extends BaseQuery implements IDataSourceQuery, IPre
// set input parameter bindings
Iterator inputParamValueslist = getInputParamValues().iterator( );
- while ( inputParamValueslist.hasNext( ) )
+ int inputParam = 1;
+ while ( inputParamValueslist.hasNext( )
+ && ( odaStatement.getParameterMetaData( ).size( ) >= inputParam ) )
{
ParameterBinding paramBind = (ParameterBinding) inputParamValueslist.next( );
+ inputParam++;
if ( paramBind.getPosition( ) <= 0 || odaStatement.supportsNamedParameter( ))
{
try