lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]



On May 2, 2008, at 5:57 PM, Tomas Guisasola Gorham wrote:

	The second one (which returns the cursor object) also
solves the problem of not reaching the end of the result set
(e.g. if there is a `break' inside the for-loop).  I think I'll
add this to the library :-)

Out of curiosity, what would be a concrete usage scenario for not consuming an entire data set (i.e. breaking in the middle of an iteration)?

Would it not be more advantageous to frame the underlaying query to only return the data needed in the first place?