Hi *,
When I'm trying to get SQLSTATE in case of error I find isc_arg_sql_state (if
any) and I read the string. That works fine for server. For embedded the
isc_arg_sql_state is there, but the string is null. Is that expected behavior
of embedded? Just to make sure there isn't a hidden bug
On 18-8-2015 11:24, Jiří Činčura wrote:
Hi *,
When I'm trying to get SQLSTATE in case of error I find isc_arg_sql_state (if
any) and I read the string. That works fine for server. For embedded the
isc_arg_sql_state is there, but the string is null. Is that expected behavior
of embedded?
Are both cases using the native access? Or is one using the wire protocol?
Mark
- Reply message -
Van: Jiří Činčura j...@cincura.net
Aan: For discussion among Firebird Developers
firebird-devel@lists.sourceforge.net
Onderwerp: [Firebird-devel] SQLSTATE difference between server
in descrived case expected string is 42000
On 18 August 2015 at 19:41, Dmitry Yemanov firebi...@yandex.ru wrote:
18.08.2015 19:36, Геннадий Забула wrote:
fb_sqlstate() returns expected string.
What is expected string? Looking at the code I'd say it cannot return
anything better than HY000.
18.08.2015 12:24, Jiří Činčura wrote:
When I'm trying to get SQLSTATE in case of error I find isc_arg_sql_state (if
any) and I read the string.
That works fine for server. For embedded the isc_arg_sql_state is there, but
the string is null.
Is that expected behavior of embedded?
No, it's
fb_sqlstate() returns expected string.
On 18 August 2015 at 17:30, Dmitry Yemanov firebi...@yandex.ru wrote:
18.08.2015 12:24, Jiří Činčura wrote:
When I'm trying to get SQLSTATE in case of error I find isc_arg_sql_state
(if any) and I read the string.
That works fine for server. For
18.08.2015 19:36, Геннадий Забула wrote:
fb_sqlstate() returns expected string.
What is expected string? Looking at the code I'd say it cannot return
anything better than HY000.
Dmitry
--
Firebird-Devel mailing