jastrachan | 27 Mar 05:08 2004

Re: [groovy-dev] Re: GroovyResultSet modifications

On 26 Mar 2004, at 20:13, Ivan Z. Ganza wrote:

> another note regarding my last thoughts....
> In order to keep things working as they are and also too provide the
> added flexibility I was talking about; what if we add a method
> setAutoRowUpdate(boolean)? or some such?  by default this is true so
> the below example always works, but, if I so choose I could set this
> to false requiring now the programmer to explicity call updateRow()
> themselves.
> Let me know if you like this idea...I"ll make the change and send you
> patch if you like.
> For sure they way I want to currently utilize this I would need to 
> have this capability...

Great idea! Go for it!

Then real simple stuff will work automatically....

sql.eachRow("select * from foo") { it.count++ }