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

From Francesco Storti
Subject Re: Problem calling stored function
Date
Msg-id bf6786b40801180404rf2f9df1kd354af3cf94149ea@mail.gmail.com
Whole thread Raw
In response to Re: Problem calling stored function  (Oliver Jowett <oliver@opencloud.com>)
List pgsql-jdbc


2008/1/18, Oliver Jowett <oliver@opencloud.com>:
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
 
 
 
Confirmed that I'm a newbye...
As sed by Oliver and tivvpgsqljdbc i've missed the commit ...
Thanks a lot for your help!

 

pgsql-jdbc by date:

Previous
From: Oliver Jowett
Date:
Subject: Re: Problem calling stored function
Next
From: "Albretch Mueller"
Date:
Subject: Re: trying to connect to pg from within a local network