GDSCODE
Firebird error code of the error in a WHEN … DO
block
PSQL
INTEGER
GDSCODE
In a “WHEN … DO
” error handling block, the GDSCODE
context variable contains the numeric value of the current Firebird error code.GDSCODE
is non-zero in WHEN … DO
blocks, if the current error has a Firebird error code.Outside error handlers, GDSCODE
is always 0.Outside PSQL, it doesn’t exist at all.
Note
|
After |
when gdscode grant_obj_notfound, gdscode grant_fld_notfound,
gdscode grant_nopriv, gdscode grant_nopriv_on_base
do
begin
execute procedure log_grant_error(gdscode);
exit;
end