From: | "Alberto Molteni" <alberto(dot)molteni(at)libero(dot)it> |
---|---|
To: | "Jan de Visser" <jdevisser(at)digitalfairway(dot)com>, <pgsql-general(at)postgresql(dot)org> |
Subject: | Re: Transactions through JDBC |
Date: | 2007-04-11 18:01:55 |
Message-ID: | 004d01c77c63$7de8e510$f7e90f97@albertosgbbv5l |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
>You should use
> conn.setAutoCommit(false);
> conn.execute(...)
> conn.execute(...)
> conn.execute(...)
> conn.commit();
>
> Thanks!
jan
Then, conn.setAutoCommit(false); has to be regarded as a begin statement?
I had already put the autocommit flag to false soon after the creation of
the connection, since I saw an improvement in the performances without that
flag and moreover I wanted to make transactions on my own.
I will change as you told me!
Thanks!
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 1: if posting/reading through Usenet, please send an appropriate
> subscribe-nomail command to majordomo(at)postgresql(dot)org so that your
> message can get through to the mailing list cleanly
--
--------------------------------------------------------------
Jan de Visser jdevisser(at)digitalfairway(dot)com
Baruk Khazad! Khazad ai-menu!
--------------------------------------------------------------
From | Date | Subject | |
---|---|---|---|
Next Message | Magnus Hagander | 2007-04-11 18:07:22 | Re: [GENERAL] programmatic way to fetch latest release for a given major.minor version |
Previous Message | Jan de Visser | 2007-04-11 17:52:18 | Re: Transactions through JDBC |