|
|
|
|
|
|
Created a unified "alias registry" to make sure we do not have alias collisions between different clauses/contexts. For example, `select a.address as a from Anything as a`.
A few relevant The spec is not completely explicit. However quotes from the JPA spec a few sections give us some principles that must be followed ...
{quote:title= 4.4.2 Identification Variables } All identification variables used in the SELECT, WHERE, ORDER BY, GROUP BY, or HAVING clause of a SELECT or DELETE statement must be declared in the FROM clause. The identification variables used in the WHERE clause of an UPDATE statement must be declared in the UPDATE clause. ... An identification variable is scoped to the query (or subquery) in which it is defined and is also visible any subqueries within that query scope that do not define an identification variable of the same name. {quote}
|
|
|
|
|
|