You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@groovy.apache.org by "Paul King (JIRA)" <ji...@apache.org> on 2016/03/22 06:29:25 UTC

[jira] [Commented] (GROOVY-7798) Sql.query methods pass java.sql.ResultSet to the closure, instead of GroovyResultSet

    [ https://issues.apache.org/jira/browse/GROOVY-7798?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15205826#comment-15205826 ] 

Paul King commented on GROOVY-7798:
-----------------------------------

Actually, if you are referring to the {{query}} method variants, then I believe this is a documentation copy-n-paste error. The point of those variants is to minimise adding overhead (creating wrapper objects etc.); otherwise, {{eachRow}} or similar could be used. So, instead I suggest we fix the doco.

> Sql.query methods pass java.sql.ResultSet to the closure, instead of GroovyResultSet
> ------------------------------------------------------------------------------------
>
>                 Key: GROOVY-7798
>                 URL: https://issues.apache.org/jira/browse/GROOVY-7798
>             Project: Groovy
>          Issue Type: Bug
>    Affects Versions: 2.4.6
>            Reporter: Andrey Atapin
>              Labels: easyfix
>
> The documentation says:
> {code}
> * @param closure called for each row with a GroovyResultSet
> {code}
> Instead, the java ResultSet is passed which prevents from using convenient groovy methods on the result passed over to the closure



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)