generated subqueries and jpaql compliance (derived select clause) check

Description

is empty is actually translated by the AST into a subtree having an implicit select clause

On my version I've check that we're at level 1 before raising the exception. This might not be the perfect fix

if ( getSessionFactoryHelper().isStrictJPAQLComplianceEnabled() && fromClause.getLevel() == 1 ) {
throw new QuerySyntaxException( "JPA-QL compliance requires select clause" );
}

Environment

None

Activity

Show:
Emmanuel Bernard
July 26, 2006, 12:20 AM

test added to JPAQLComplianceTest

Steve Ebersole
August 19, 2006, 12:02 AM

trunk and 3.2

Assignee

Steve Ebersole

Reporter

Emmanuel Bernard

Fix versions

Labels

None

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Affects versions

Priority

Blocker
Configure