You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
But this will cause Syntax error in SQL statement error with .. (SELECT FROM CHILD .. as cause of the error. SELECT is empty. Workaround is to use projection in detached criteria, for example
Having domains:
User could execute following query with detached criteria as subquery:
But this will cause
Syntax error in SQL statement
error with.. (SELECT FROM CHILD ..
as cause of the error. SELECT is empty. Workaround is to use projection in detached criteria, for exampleExample project is here: https://github.com/droggo/GrailsSubqueries
Integration Spec to demo this problem: https://github.com/droggo/GrailsSubqueries/blob/master/src/integration-test/groovy/error/DetachedCriteriaDomainSubqueryIntegrationSpec.groovy
The text was updated successfully, but these errors were encountered: