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? Just to make sure there isn't a hidden bug some place before > this code.
The current code in FesConnection.ParseStatusVector doesn't read have processing for isc_arg_sql_state, so it falls to the default, which interprets the pointer value as an integer. When IscError then retrieves the value, it return null, as the strParam field is null. It should be processed the same as isc_arg_interpreted and isc_arg_string Mark -- Mark Rotteveel ------------------------------------------------------------------------------ Firebird-Devel mailing list, web interface at https://lists.sourceforge.net/lists/listinfo/firebird-devel
