Re: Problem calling stored function

From: Oliver Jowett <oliver(at)opencloud(dot)com>
To: Francesco Storti <francesco(dot)storti(at)gmail(dot)com>
Cc: pgsql-jdbc(at)postgresql(dot)org, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Subject: Re: Problem calling stored function
Date: 2008-01-18 11:56:00
Message-ID: 479093D0.3020402@opencloud.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

Francesco Storti wrote:
> 2008/1/17, Tom Lane tgl(at)sss(dot)pgh(dot)pa(dot)us <mailto:tgl(at)sss(dot)pgh(dot)pa(dot)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

In response to

Responses

Browse pgsql-jdbc by date

  From Date Subject
Next Message Francesco Storti 2008-01-18 12:04:10 Re: Problem calling stored function
Previous Message tivvpgsqljdbc 2008-01-18 11:40:57 Re: Problem calling stored function