jdaugherty commented on code in PR #15418:
URL: https://github.com/apache/grails-core/pull/15418#discussion_r2835201599


##########
grails-datamapping-core/src/main/groovy/org/grails/datastore/gorm/services/implementers/AbstractWhereImplementer.groovy:
##########
@@ -96,16 +96,16 @@ abstract class AbstractWhereImplementer extends 
AbstractReadOperationImplementer
             body.addStatement(
                     declS(queryVar, 
ctorX(getDetachedCriteriaType(domainClassNode), 
args(classX(domainClassNode.plainNodeReference))))
             )
-            Expression connectionId = findConnectionId(newMethodNode)
+            body.addStatement(
+                    assignS(queryVar, callX(queryVar, 'build', 
closureExpression))

Review Comment:
   If we want to ticket it for the future I'm ok with that too.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to