Subject | autocommit off - was Re: Pessimistic locking |
---|---|
Author | hay77772000 |
Post date | 2003-10-07T21:31:50Z |
Connected to this...does anyone know what happens when you turn
autocommit off on a connection retrieved through JDBC driver,
execute some sql statements, and then do a commit?
Is a new transaction started automatically? Is it outside of a
transaction? If the commit is never issued because something went
wrong, what will happen to the statements that were issued?
Many thanks,
David
--- In firebird-support@yahoogroups.com, Aage Johansen
<aagjohan@o...> wrote:
autocommit off on a connection retrieved through JDBC driver,
execute some sql statements, and then do a commit?
Is a new transaction started automatically? Is it outside of a
transaction? If the commit is never issued because something went
wrong, what will happen to the statements that were issued?
Many thanks,
David
--- In firebird-support@yahoogroups.com, Aage Johansen
<aagjohan@o...> wrote:
> On Wed, 24 Sep 2003 19:46:58 +0000 (UTC), hay77772000 wrote:multiple
>
> >...
> > A question though - if I add a record to a table, along with
> > associated records in tables with foreign keys, do I need to doany kind
> > of locking?until
> > ...
>
> I don't think so. Other users won't even see the inserted records
> you commit. The commit will enable other users to see all therecords, but
> they may have to start a new transaction (depending ontheir 'transaction
> isolation' setting).
>
> --
> Aage J.