Re: Problem calling stored function - Mailing list pgsql-jdbc

From Oliver Jowett
Subject Re: Problem calling stored function
Date
Msg-id 479093D0.3020402@opencloud.com
Whole thread Raw
In response to Re: Problem calling stored function  ("Francesco Storti" <francesco.storti@gmail.com>)
Responses Re: Problem calling stored function  ("Francesco Storti" <francesco.storti@gmail.com>)
List pgsql-jdbc
Francesco Storti wrote:
> 2008/1/17, Tom Lane tgl@sss.pgh.pa.us <mailto:tgl@sss.pgh.pa.us>:
>
>
>     Should work.  Maybe you're rolling back the transaction later, or
>     something like that?
>
>                            regards, tom lane
>
>
>
> Thank for the answer first ;)
> I use rollback only if throwed an SQL exception.

You never call commit() so the transaction will be rolled back when you
close the connection. (I'm assuming you have autocommit off, you didn't
include your connection setup code)

-O


pgsql-jdbc by date:

Previous
From: tivvpgsqljdbc@gtech-ua.com
Date:
Subject: Re: Problem calling stored function
Next
From: "Francesco Storti"
Date:
Subject: Re: Problem calling stored function