GitHub user shils opened a pull request:
https://github.com/apache/groovy/pull/536
Improve type inference/STC compatibility of Sql methods with closure
parameters
This PR adds @ClosureParams to closure parameters of the following methods
in Sql and DataSet:
* asList
* eachRow
* each
* query
* rows
* withStatement
I haven't created a Jira issue for this, but can do so if people think it's
worth tracking.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/shils/groovy sql-closure-params
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/groovy/pull/536.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #536
----
commit e7f20ea2e141ef2209a80eb7e744bc708c3f396f
Author: Shil Sinha <[email protected]>
Date: 2017-05-01T00:01:27Z
Sql, DataSet: Add @ClosureParams to closure parameters of following methods:
* asList
* eachRow
* each
* query
* rows
* withStatement
----
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---