Open adossas-spdrm opened 1 year ago
Sorry but this is unsupported EclipseLink version. Please try 2.7.13 (javax) or 4.0.2 (Jakarta) version.
I can reproduce it with version 2.7.13 (javax) and MySQL 5.7
@rfelcman I also tried with 4.0.3 (Jakarta) and MySQL 5.7 and still get the same error
I'm transfering this issue from bugzilla: https://bugs.eclipse.org/bugs/show_bug.cgi?id=482858
http://stackoverflow.com/questions/33873334/jpql-query-with-union-not-working-using-eclipselink-causing-mysqlsyntaxerrorexce
ECLIPSELINK version 2.6.0(updated to 2.6.1), MYSQL 5.6
this is the sql query i want to write as a jpql query. i have tested the sql query in mysql it works
i am writing it as a jpql query as below
but when i run it i get the following exception
i know that each one of those queries as written below work independently, so if i use either of the methods below both of them run and give the desired result
tried this simple query, still gives me the same exception
exception
i am fairly certain that i am using the syntax of union correctly and both the queries are correct. i am not sure what is causing the exception.
running the query in mysql shown in the exception works if i remove the brackets around the select statements and insert the values
query shown in the exception
so cant figure the exception out from there either
Even updated my eclipselink from 2.6,0 to 2.6.1 still the same