Re: how to check SQLSTATE

From: Hugo <htakada(at)gmail(dot)com>
To: "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:31:03
Message-ID: f3d9ba990610061431o540790c1m9e03f7d92d04ea1b@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

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

the symbol is correct , i checked it in the appendix A postgres error codes
and constants, have you got any idea what the problem could be.
....
loop
Begin
fetch bla.....
Exception
when no_data then
exit;
end;
....
end loop;
......
this is on suse 10, postgres 8.1.4

thanks in advance

Hugo

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2006-10-06 21:33:45 Re: how to check SQLSTATE
Previous Message Ivan Sergio Borgonovo 2006-10-06 21:09:29 exploiting features of pg to obtain polymorphism maintaining ref. integrity