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

JPQL Query builder doesnt support exists #703

Open
snimavat opened this issue Jul 17, 2023 · 0 comments
Open

JPQL Query builder doesnt support exists #703

snimavat opened this issue Jul 17, 2023 · 0 comments
Assignees

Comments

@snimavat
Copy link
Contributor

snimavat commented Jul 17, 2023

Throws error

 Queries of type Exists are not supported by this implementation

at app//gorm.tools.mango.jpql.JpqlQueryBuilder.buildWhereClauseForCriterion(JpqlQueryBuilder.groovy:782)
	at app//gorm.tools.mango.jpql.JpqlQueryBuilder.buildWhereClause(JpqlQueryBuilder.groovy:686)
	at app//gorm.tools.mango.jpql.JpqlQueryBuilder.buildUpdate(JpqlQueryBuilder.groovy:141)

Was trying to use JPQL builder for an update statement
Because grails criteria.updateAll doesnt support exists or joins.

this forces us to always use either HQL or sql if we want to run an update statement that has join/exists

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

No branches or pull requests

2 participants