Details
-
Improvement
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
1.0-JSR-6
-
None
-
All Operating Systems and databases. JSR-06
-
Patch
Description
Sql#firstRow throws IndexOutOfBoundsException if no rows are found (Patch included)
One of the big reasons I use Groovy is to avoid having to mess with catching exceptions. And I think it is counterproductive to have to make sure a row exists before selecting it. A simple return value of null would be better and that is what this patch provides.