Re: [Firebird-devel] IStatus::setErrors() to "no errors"

2020-12-08 Thread Dimitry Sibiryakov
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

Re: [Firebird-devel] IStatus::setErrors() to "no errors"

2020-12-08 Thread Alex Peshkoff via Firebird-devel
On 12/8/20 6:55 PM, Dimitry Sibiryakov wrote: Hello All.   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

Re: [Firebird-devel] IStatus::setErrors() to "no errors"

2020-12-08 Thread Mark Rotteveel
On 08-12-2020 17:17, Dimitry Sibiryakov wrote: 08.12.2020 17:13, Mark Rotteveel wrote: So, treating it as an error would be wrong, and potentially confusing.   But the routine is called "setErrors" so it is also confusing when it is actually called to clean errors. Although it is

Re: [Firebird-devel] IStatus::setErrors() to "no errors"

2020-12-08 Thread Mark Rotteveel
On 08-12-2020 16:55, Dimitry Sibiryakov wrote:   Hello All.   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? Although it is

Re: [Firebird-devel] IStatus::setErrors() to "no errors"

2020-12-08 Thread Dimitry Sibiryakov
08.12.2020 17:13, Mark Rotteveel wrote: An isc_arg_gds with value 0 is not an error, and shouldn't be treated as such. The combination isc_arg_gds, 0, isc_arg_end is for example sent by the server in a generic response when a command completed successfully. So, treating it as an error would

Re: [Firebird-devel] IStatus::setErrors() to "no errors"

2020-12-08 Thread Mark Rotteveel
On 08-12-2020 16:55, Dimitry Sibiryakov 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? An isc_arg_gds with value 0 is not an

[Firebird-devel] IStatus::setErrors() to "no errors"

2020-12-08 Thread Dimitry Sibiryakov
Hello All. 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? -- WBR, SD. Firebird-Devel mailing list, web interface at