Bug 506512 - Syntax error parsing JPQL with ORDER BY clause, using parentheses
- Fixes issue with the Hermes OrderByItemBNF impl, by allowing this BNF type to handle/parse sub-expressions, in the same way as a group by does - added a setHandleSubExpression(true) call to the OrderByItemBNF initialize() method
- Testing: Added testOrderByWithParentheses* tests to the JUnitJPQLSimpleTestSuite test suite, testing various scenarios using ORDER BY & parentheses

Signed-off-by: David Minsky <david.minsky@oracle.com>
Reviewed-by: Lukas Jungmann <lukas.jungmann@oracle.com>
2 files changed
tree: 9def73ae85d72159685baafecf0a28073459e2e1
  1. .idea/
  2. buildsystem/
  3. dbws/
  4. features/
  5. foundation/
  6. jpa/
  7. jsonb/
  8. moxy/
  9. performance/
  10. plugins/
  11. project-admin/
  12. sdo/
  13. utils/
  14. .gitattributes
  15. .gitignore
  16. about.html
  17. antbuild.properties
  18. antbuild.xml
  19. autobuild.properties
  20. autobuild.xml
  21. findbugs-exclude.xml
  22. jdk_hotspot_compiler
  23. license.html
  24. oraclebuild.xml
  25. pom.xml.template
  26. publishbuild.xml
  27. readme.html
  28. README.md
  29. root.iml
  30. sharedlib.xml
  31. sonar-project.properties
  32. temp
  33. uploadToMaven.xml
  34. uploadToNexus.xml
README.md

EclipseLink Project

The EclipseLink project's goal is to provide a complete persistence framework that is both comprehensive and universal. It will run in any Java environment and read and write objects to virtually any type of data source, including relational databases, XML, JSON, or EIS systems. EclipseLink will focus on providing leading edge support, including advanced feature extensions, for the dominant persistence standards for each target data source; Java Persistence API (JPA) for relational databases, Java API for XML Binding (JAXB) for XML, Java Connector Architecture (JCA) for EIS and other types of legacy systems, and Service Data Objects (SDO).

http://eclipse.org/eclipselink