Re: Problem calling stored function

Поиск
Список
Период
Сортировка
От Francesco Storti
Тема Re: Problem calling stored function
Дата
Msg-id bf6786b40801180404rf2f9df1kd354af3cf94149ea@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Problem calling stored function  (Oliver Jowett <oliver@opencloud.com>)
Список 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 по дате отправления:

Предыдущее
От: Oliver Jowett
Дата:
Сообщение: Re: Problem calling stored function
Следующее
От: "Albretch Mueller"
Дата:
Сообщение: Re: trying to connect to pg from within a local network