-
Notifications
You must be signed in to change notification settings - Fork 932
Description
Juan Green created an issue — 23rd July 2012, 19:17:32:
During the check of named queries step, in session factory creation, an IndexOutOfRange exception is thrown.
I narrowed it down to hql queries which use the "with" clause, and have parameters. If the parameter(s) are removed (i.e, hard coded), the session factory gets build and no exceptions are thrown. We also have the dialect set to oracle9i, if we change it to oracle10g (main difference is the usage of ansi joins), the problem disappears.
In order to reproduce this bug. Run the NHIbernate.Tests.WithClauseFixture with the NHibernate.Config.Templates\Oracle.cfg.xml and the dialect set to "NHibernate.Dialect.Oracle9iDialect"
Juan Green added a comment — 23rd July 2012, 19:19:31:
It looks like bug fix (NH-2736) to NHibernate.Hql.Ast.ANTLR.Tree.FromElement.RenderText() is to blame.
Juan Green added a comment — 23rd July 2012, 19:27:03:
The correct tetst fixture is NHibernate.Test.Hql.Ast.WithFixture