Details
-
Type:
Improvement
-
Status:
Closed
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: 1.0-JSR-3
-
Fix Version/s: 1.1-beta-2
-
Component/s: None
-
Labels:None
-
Number of attachments :
Description
allow
data = new groovy.sql.DataSet(tablename)
List rows = data.rows()
to fetch all rows at once analogous to Sql.rows(...)
Added two patches for the proposed enhancement to the DataSet class. I have added the rows() method
and the firstRow() method. I have also updated the SqlCompleteTest class to test these two methods.
However, I do have a question on this open improvement. The way I read the "improvement" is that the rows() method
will return all of the rows on the underlying tableset. To implement this I simply did a SELECT * FROM the table to
build the data. However, what happens if the user is trying to filter based on a where. Shouldn't the call really return all of the rows for the DataSet.
Please let me know how exactly this code should work. I can change the code to behave whatever way needed.