HQL fails backward compatibility using classic translator

Description

with current HEAD the following statement fails:
hsession.createQuery("from StUserdaten as b where b.login = ?");

org.hibernate.HibernateException: ordinal parameter mismatch
at org.hibernate.engine.query.HQLQueryPlan.buildParameterMetadata(HQLQueryPlan.java:214)
at org.hibernate.engine.query.HQLQueryPlan.<init>(HQLQueryPlan.java:94)
at org.hibernate.engine.query.HQLQueryPlan.<init>(HQLQueryPlan.java:53)
at org.hibernate.engine.query.QueryPlanCache.getHQLQueryPlan(QueryPlanCache.java:71)
at org.hibernate.impl.AbstractSessionImpl.getHQLQueryPlan(AbstractSessionImpl.java:108)
at org.hibernate.impl.AbstractSessionImpl.createQuery(AbstractSessionImpl.java:88)

The query was build perfectly fine with hibernate 3.0.5 !

Environment

None

Assignee

Steve Ebersole

Reporter

Marc Lustig

Fix versions

Labels

None

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Components

Affects versions

Priority

Critical
Configure