Re: plpgsql exception handling

From: Uwe Bartels <uwe(dot)bartels(at)gmail(dot)com>
To: Samuel Gendler <sgendler(at)ideasculptor(dot)com>
Cc: pgsql-sql(at)postgresql(dot)org
Subject: Re: plpgsql exception handling
Date: 2011-03-10 18:38:13
Message-ID: AANLkTinqWVVtCn4FO49G-22xQoqvXsRrbDMZ1JhzO4Xa@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

stupid me.
I edited a function with the same name, but different parameter types and
tested with the other function.
so everything works fine.

thanks everybody for help.

best regards,
Uwe

On 10 March 2011 11:53, Uwe Bartels <uwe(dot)bartels(at)gmail(dot)com> wrote:

> same same.
> all errors including syntax_error match to others, but I checked it again.
> and the exception remains.
>
> Uwe
>
>
>
>
> On 10 March 2011 10:56, Samuel Gendler <sgendler(at)ideasculptor(dot)com> wrote:
>
>>
>>
>> On Thu, Mar 10, 2011 at 12:45 AM, Uwe Bartels <uwe(dot)bartels(at)gmail(dot)com>wrote:
>>
>>> Hi,
>>>
>>> Yes, of course is this sql producing an error.
>>> The point is, I want to trap the error and handle it. Here in this case I
>>> set the variable l_state and l_message.
>>>
>>
>>
>> Doh! Of course. Sorry about that. What happens when you explicitly
>> catch the 42601 sql state or the syntax_error condition instead of 'others?'
>>
>>
>>
>

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Good, Thomas 2011-03-17 16:26:34 Bizarreness at A2 Hosting
Previous Message Samuel Gendler 2011-03-10 18:27:09 Re: plpgsql exception handling