HHH-530 : followup on parameter handling
git-svn-id: https://svn.jboss.org/repos/hibernate/core/trunk@15268 1b8cb986-b30d-0410-93ca-fae66ebed9b2
This commit is contained in:
parent
959d2814ea
commit
ff128ca6f8
|
@ -213,7 +213,7 @@ selectExpr
|
|||
| aggregate
|
||||
| c:constant { out(c); }
|
||||
| arithmeticExpr
|
||||
| PARAM { out("?"); }
|
||||
| param:PARAM { out(param); }
|
||||
| sn:SQL_NODE { out(sn); }
|
||||
| { out("("); } selectStatement { out(")"); }
|
||||
;
|
||||
|
|
|
@ -45,7 +45,6 @@ import org.hibernate.sql.InsertSelect;
|
|||
import org.hibernate.sql.Select;
|
||||
import org.hibernate.sql.SelectFragment;
|
||||
import org.hibernate.util.StringHelper;
|
||||
import org.hibernate.util.EmptyIterator;
|
||||
|
||||
import antlr.RecognitionException;
|
||||
import antlr.collections.AST;
|
||||
|
|
|
@ -131,9 +131,10 @@ public class MultiTableUpdateExecutor extends AbstractStatementExecutor {
|
|||
try {
|
||||
try {
|
||||
ps = session.getBatcher().prepareStatement( idInsertSelect );
|
||||
int parameterStart = getWalker().getNumberOfParametersInSetClause();
|
||||
List allParams = getIdSelectParameterSpecifications();
|
||||
Iterator whereParams = allParams.subList( parameterStart, allParams.size() ).iterator();
|
||||
// int parameterStart = getWalker().getNumberOfParametersInSetClause();
|
||||
// List allParams = getIdSelectParameterSpecifications();
|
||||
// Iterator whereParams = allParams.subList( parameterStart, allParams.size() ).iterator();
|
||||
Iterator whereParams = getIdSelectParameterSpecifications().iterator();
|
||||
int sum = 1; // jdbc params are 1-based
|
||||
while ( whereParams.hasNext() ) {
|
||||
sum += ( ( ParameterSpecification ) whereParams.next() ).bind( ps, parameters, session, sum );
|
||||
|
|
Loading…
Reference in New Issue