From: Guillaume Cottenceau <gc@mnc.ch>
To: Olivier Thomas <othomas@webtiss.com>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: Postgres jdbc transactions
Date: Mon, 05 Sep 2011 17:13:22 +0200
Message-ID: <m339gbc99p.fsf@mnc.ch> (raw)
In-Reply-To: <CAEqUDRELA=fvu0zEU4KOpD2kM7GY0JOy6fo0Ou9FHBjWRPQVWQ@mail.gmail.com>
References: <CAEqUDRELA=fvu0zEU4KOpD2kM7GY0JOy6fo0Ou9FHBjWRPQVWQ@mail.gmail.com>
Show your code. I'm suspecting the same problem as
http://postgresql.1045698.n5.nabble.com/SET-AUTOCOMMIT-TO-OFF-no-longer-supported-td2169957.html
quoting the glorious Kris:
Check your classpath. I'd bet you've got two versions of the driver in
there. Try adding this line somewhere in your app.
org.postgresql.util.PSQLDriverVersion.main(null);
It will print where it finds the driver on stdout.
(an old version of the driver biting you)
Olivier Thomas <othomas 'at' webtiss.com> writes:
> Hi,
>
> I am having a hard time to manage transactions with Postgres 8.3.
>
> I am using latest Postgres jdbc driver and apached dbutils library.
> After getting a connexion I am trying to set Connection objet to autocommit
> "false" but I get an error message from DB saying that setting autocommit to
> off is no longer supported.
> Therefore, when I'm trying to call "rollcack" at the en d of my code, I am
> rejected sayning that my DB is in autocommit true.
> Can you tell me what I am doing wrong or which library I should use ?
> so far I have found no example on the web...
>
> Thanks
> O.
--
Guillaume Cottenceau
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-jdbc@postgresql.org
Cc: gc@mnc.ch, othomas@webtiss.com
Subject: Re: Postgres jdbc transactions
In-Reply-To: <m339gbc99p.fsf@mnc.ch>
References: <CAEqUDRELA=fvu0zEU4KOpD2kM7GY0JOy6fo0Ou9FHBjWRPQVWQ@mail.gmail.com> <m339gbc99p.fsf@mnc.ch>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox