Skip to content

NH-3228 - HQL and With clause throws IndexOutOfRangeException (with Oracle9iDialect) #1284

@nhibernate-bot

Description

@nhibernate-bot

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.

4a8a724#src/NHibernate/Hql/Ast/ANTLR/Tree/FromElement.cs


Juan Green added a comment — 23rd July 2012, 19:27:03:

The correct tetst fixture is NHibernate.Test.Hql.Ast.WithFixture

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions