Skip to content
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

SOQL does not support joining over plural attributes #135

Closed
ledsoft opened this issue Feb 16, 2023 · 1 comment
Closed

SOQL does not support joining over plural attributes #135

ledsoft opened this issue Feb 16, 2023 · 1 comment
Labels

Comments

@ledsoft
Copy link
Contributor

ledsoft commented Feb 16, 2023

SOQL fails with an assertion exception when attempting to do a join over a plural attribute, e.g.,

SELECT a FROM TypeA a WHERE a.pluralAttribute.age > 18

Where pluralAttribute is a plural attribute.

This is apparently because it expects the attribute for join to be always singular. The same issue applies to Criteria API.

@ledsoft ledsoft added the bug label Feb 16, 2023
@ledsoft
Copy link
Contributor Author

ledsoft commented Feb 16, 2023

Update: Criteria API has a different issue, but eventually it would end up with the same error. So both SOQL and Criteria API need fixing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant