Greg Lappen
2004-09-14 13:29:59 UTC
Hi All-
I am using a groovy script to do some data migration between different
versions of our product and am going to be executing a bunch of sql
inserts. What i want to do is turn autocommit off in the beginning of
my script, then do either a commit or rollback at the end. Can't seem
to find any documentation on controlling autocommit, but the javadocs
show that there are commit() and rollback() methods in groovy.sql.Sql
so I'm optimistic it can be done. Any pointers would be greatly
appreciated!
Thanks,
Greg
I am using a groovy script to do some data migration between different
versions of our product and am going to be executing a bunch of sql
inserts. What i want to do is turn autocommit off in the beginning of
my script, then do either a commit or rollback at the end. Can't seem
to find any documentation on controlling autocommit, but the javadocs
show that there are commit() and rollback() methods in groovy.sql.Sql
so I'm optimistic it can be done. Any pointers would be greatly
appreciated!
Thanks,
Greg