groovy
  1. groovy
  2. GROOVY-4806

Sql.eachRow documentation: actual GroovyResultSet vs. documentation GroovyRowResult

    Details

    • Type: Bug Bug
    • Status: Closed 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
    • Number of attachments :
      0

      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

        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.

          People

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

            Dates

            • Created:
              Updated:
              Resolved: