Parameters in subqueries does not work when using ClassicQueryTranslator

Description

For example

var result = session.CreateQuery("from A a where a.Id in (select b.Id from B b where b.Id = :id)")
.SetParameter("id", 1)
.List<A>();

gives the error

ClassicQueryTranslatorNHibernate.QueryParameterException : could not locate named parameter [id]

Environment

None

Assignee

Alex Zaytsev

Reporter

Tobias Eriksson

Labels

None

Components

Affects versions

Priority

Minor
Configure