Re: transactions not working properly ?

From: Douglas McNaught <doug(at)mcnaught(dot)org>
To: Ali Baba <idofyear(at)yahoo(dot)com>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: transactions not working properly ?
Date: 2005-08-17 13:34:39
Message-ID: m2wtmk4rgw.fsf@Douglas-McNaughts-Powerbook.local
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Ali Baba <idofyear(at)yahoo(dot)com> writes:

> exception
> when others then
> raise info 'error generated ';
> commit;
> RETURN 0;
> end;

You can't COMMIT inside a function.

-Doug

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Andrew Dunstan 2005-08-17 13:46:13 do we need inet_ntop check?
Previous Message Dave Cramer 2005-08-17 13:28:38 Re: pl/Ruby, deprecating plPython and Core