Re: how to check SQLSTATE

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Hugo <htakada(at)gmail(dot)com>
Cc: "A(dot) Kretschmer" <andreas(dot)kretschmer(at)schollglas(dot)com>, pgsql-general(at)postgresql(dot)org
Subject: Re: how to check SQLSTATE
Date: 2006-10-06 21:33:45
Message-ID: 6341.1160170425@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hugo <htakada(at)gmail(dot)com> writes:
> Hi again, thanks for your guidance, this is the error I got trying to save
> my fuction:
> ERROR: unrecognized exception condition "no_data"
> CONTEXT: compile of PL/pgSQL function "fn_verificar_aportes_socio" near
> line 36

NO_DATA isn't an error condition, only a warning, thus there is no case
in which an exception block would trap it. So plpgsql doesn't bother to
recognize it.

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Richard Broersma Jr 2006-10-07 01:12:22 Re: exploiting features of pg to obtain polymorphism maintaining ref. integrity
Previous Message Hugo 2006-10-06 21:31:03 Re: how to check SQLSTATE