Subject | GDSCODE |
---|---|
Author | Emil Totev |
Post date | 2015-03-16T17:21:30Z |
Hi
Is there a way to get the GDSCODE of a firebird error in PHP? Form
what I see, ibase_errcode() returns the SQLOCODE (which is very
generic).
I would like to know, for example, if the connection failed because of
an invalid user/password, or because of an unavailable database
(ibase_ercode() is -902 in both cases). Is there another way to
achieve that - except parsing/comparing the error text returned by
ibase_errmsg() ?
Thanks
ET
Is there a way to get the GDSCODE of a firebird error in PHP? Form
what I see, ibase_errcode() returns the SQLOCODE (which is very
generic).
I would like to know, for example, if the connection failed because of
an invalid user/password, or because of an unavailable database
(ibase_ercode() is -902 in both cases). Is there another way to
achieve that - except parsing/comparing the error text returned by
ibase_errmsg() ?
Thanks
ET