On 12/8/20 8:20 PM, Dimitry Sibiryakov wrote:
08.12.2020 17:36, Alex Peshkoff via Firebird-devel wrote:
Should a custom implementation of IStatus recognize and ignore a
special case when GDS error code is set to zero using parameter (
isc_arg_gds, 0, isc_arg_end } or error with zero code is also an error?
From IStatus POV - also an error, just store what you've got on input.
In this case getState() will return STATE_ERRORS and it will be a
surprise for calling code.
That depends upon getState() internals, is not it? :)
unsigned getState() const
{
return (errors.value()[1] ? IStatus::STATE_ERRORS : 0) |
(warnings.value()[1] ? IStatus::STATE_WARNINGS : 0);
}
Firebird-Devel mailing list, web interface at
https://lists.sourceforge.net/lists/listinfo/firebird-devel