Groovy
  1. Groovy
  2. GROOVY-4806

Sql.eachRow documentation: actual GroovyResultSet vs. documentation GroovyRowResult

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Trivial Trivial
    • Resolution: Fixed
    • Affects Version/s: 1.8.0
    • Fix Version/s: 1.8.1, 1.9-beta-1, 1.7.11
    • Component/s: None
    • Labels:
      None

      Description

      Sql.eachRow actually passes objects of type "GroovyResultSet" to the closure. Documentation says "The row will be a GroovyRowResult" (wrong).

      The documentation example(s) are actually correct. They use "row.toRowResult()" to get to the desired "GroovyRowResult"

      http://groovy.codehaus.org/api/groovy/sql/Sql.html#eachRow(java.lang.String, groovy.lang.Closure, groovy.lang.Closure)

      In all, six occurences of eachRow() variants show that "The row will be a GroovyRowResult" line.

        Activity

        Matthias Gaertner created issue -
        Paul King made changes -
        Field Original Value New Value
        Assignee Paul King [ paulk ]
        Hide
        Paul King added a comment -

        Thanks for spotting that. Should be fixed.

        Show
        Paul King added a comment - Thanks for spotting that. Should be fixed.
        Paul King made changes -
        Resolution Fixed [ 1 ]
        Fix Version/s 1.9-beta-1 [ 17153 ]
        Fix Version/s 1.7.11 [ 17244 ]
        Fix Version/s 1.8.1 [ 17223 ]
        Status Open [ 1 ] Resolved [ 5 ]
        Paul King made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        Mark Thomas made changes -
        Project Import Sun Apr 05 13:32:57 UTC 2015 [ 1428240777691 ]
        Mark Thomas made changes -
        Workflow jira [ 12733734 ] Default workflow, editable Closed status [ 12745366 ]
        Mark Thomas made changes -
        Project Import Mon Apr 06 02:11:23 UTC 2015 [ 1428286283443 ]
        Mark Thomas made changes -
        Workflow jira [ 12971102 ] Default workflow, editable Closed status [ 12978876 ]
        Transition Time In Source Status Execution Times Last Executer Last Execution Date
        Open Open Resolved Resolved
        4d 42m 1 Paul King 08/May/11 06:15
        Resolved Resolved Closed Closed
        74d 13h 50m 1 Paul King 21/Jul/11 20:06

          People

          • Assignee:
            Paul King
            Reporter:
            Matthias Gaertner
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development