-
Notifications
You must be signed in to change notification settings - Fork 174
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Possible bug in EclipseLink when using JPQL IN with EmbeddedId #2196
Comments
Hi @rfelcman , We just checked this issue on latest EclipseLink version and got an error like below :
|
Sorry but I don't think, that this is bug.
but Another thing is about SQL translation. I'm not sure if all DBs support query like this |
@rfelcman Thank you for your response and for addressing our question. However, we would like to suggest that, given this functionality is not supported, it would be more helpful if EclipseLink raised a clearer error message indicating that the feature is unsupported, rather than attempting to execute a SQL command that results in a parse error in the database. This makes it look to our users like it is broken rather than intentionally unsupported. |
Is it expected that the JPQL
IN
operation should work with EmbeddedId. EcilpseLink appears to be trying to support it but generates the SQL in a way that results in an error.The error raised is:
The JPQL used is:
SELECT o FROM Account o WHERE (o.accountId IN ?1 OR o.owner=?2) ORDER BY o.owner DESC
The text was updated successfully, but these errors were encountered: