Uploaded image for project: 'Groovy'
  1. Groovy
  2. GROOVY-7798

Sql.query methods pass java.sql.ResultSet to the closure, instead of GroovyResultSet

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.4.6
    • Fix Version/s: 2.4.7
    • Component/s: None
    • Labels:

      Description

      The documentation says:

      * @param closure called for each row with a GroovyResultSet
      

      Instead, the java ResultSet is passed which prevents from using convenient groovy methods on the result passed over to the closure

        Activity

        Hide
        paulk Paul King added a comment -

        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.

        Show
        paulk Paul King added a comment - 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.
        Hide
        jwagenleitner John Wagenleitner added a comment -

        Thanks for reporting the issue, I've updated the javadocs.

        Show
        jwagenleitner John Wagenleitner added a comment - Thanks for reporting the issue, I've updated the javadocs .

          People

          • Assignee:
            Unassigned
            Reporter:
            a.atapin@gmail.com Andrey Atapin
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development