Maxim Solodovnik created OPENJPA-2948:
-----------------------------------------

             Summary: New JPQL keywords no longer usable as aliases
                 Key: OPENJPA-2948
                 URL: https://issues.apache.org/jira/browse/OPENJPA-2948
             Project: OpenJPA
          Issue Type: Sub-task
          Components: jpa
    Affects Versions: 4.2.0
            Reporter: Maxim Solodovnik
            Assignee: Romain Manni-Bucau
             Fix For: 4.2.0


Discussion link: 
https://github.com/apache/openjpa/pull/144#discussion_r3682999074

(medium) identification_variable() only accepts <IDENTIFIER>, so every newly 
introduced token (ID, VERSION, RIGHT, ON, NULLS, FIRST, LAST, CAST, STRING, 
UNION, INTERSECT, EXCEPT, TREAT, ...) can no longer be used as an 
identification variable or result alias. Existing queries like SELECT e.id AS 
id ... ORDER BY id or aliases named first/on now fail to parse - a 
backward-compat regression worth documenting or mitigating with soft keywords.

(re line 1560, outside the diff hunks)



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to