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

Special case entity expression mapping with limit 1 to support MySQL and MariaDB #1831

Closed
beikov opened this issue Nov 21, 2023 · 0 comments · Fixed by #1833
Closed

Special case entity expression mapping with limit 1 to support MySQL and MariaDB #1831

beikov opened this issue Nov 21, 2023 · 0 comments · Fixed by #1833
Assignees
Labels
Milestone

Comments

@beikov
Copy link
Member

beikov commented Nov 21, 2023

Special case mappings with an entity expression and a limit of 1 to also use the equals predicate instead of the IN predicate. Follow up of #1810

@Mapping(value = "PageRevision[page.id = VIEW(page.id)]", fetch = FetchStrategy.JOIN)
@Limit(limit = "1", order = "id DESC")
PageRevisionGraphQlView getLastRevision();

This still produces an error on MySQL/MariaDB because the correlated subquery uses a limit which is not supported.

@beikov beikov added this to the 1.6.11 milestone Nov 21, 2023
@beikov beikov self-assigned this Nov 21, 2023
beikov added a commit to beikov/blaze-persistence that referenced this issue Nov 21, 2023
beikov added a commit to beikov/blaze-persistence that referenced this issue Nov 21, 2023
beikov added a commit to beikov/blaze-persistence that referenced this issue Nov 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant