Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Fixed
-
1.6-beta-1
-
None
Description
If I try to print GroovyResultSet object, NullPointerException will be raised.
So if groovy could convert the GroovyResultSet object into the List object whose elements are map object representing records retrieved from database when we print it, that would be great!
currently, we have to write code as follows
results3.info.eachRow { row ->
println "name:${row.name}, address:${row.address}"
}
code like the following is what I expected, but will raise NPE
println results3.info
Thanks in advance.
Daniel.Sun
Attachments
Issue Links
- is related to
-
GROOVY-2587 Strange bugs with GroovyResultSet
- Closed