Re: [Firebird-devel] Arg::SqlState

2020-01-29 Thread Alex Peshkoff via Firebird-devel
On 2020-01-29 17:21, Dimitry Sibiryakov wrote: 29.01.2020 13:35, Alex Peshkoff via Firebird-devel wrote:   Perhaps I had to go straight to object: is there an example of IStatus::setWarnings2() usage? StatusArg.cpp, 292   It doesn't show how to form input status array (sequence of tags). Sh

Re: [Firebird-devel] Arg::SqlState

2020-01-29 Thread Dimitry Sibiryakov
29.01.2020 13:35, Alex Peshkoff via Firebird-devel wrote:   Perhaps I had to go straight to object: is there an example of IStatus::setWarnings2() usage? StatusArg.cpp, 292 It doesn't show how to form input status array (sequence of tags). Should it start from isc_arg_gds(FB_SUCCESS) or st

Re: [Firebird-devel] Arg::SqlState

2020-01-29 Thread Alex Peshkoff via Firebird-devel
On 2020-01-29 14:25, Dimitry Sibiryakov wrote: 29.01.2020 11:43, Dimitry Sibiryakov wrote: Just to look at them as an example.   Perhaps I had to go straight to object: is there an example of IStatus::setWarnings2() usage? StatusArg.cpp, 292 Firebird-Devel mailing list, web interface

Re: [Firebird-devel] Arg::SqlState

2020-01-29 Thread Dimitry Sibiryakov
29.01.2020 11:43, Dimitry Sibiryakov wrote: Just to look at them as an example. Perhaps I had to go straight to object: is there an example of IStatus::setWarnings2() usage? -- WBR, SD. Firebird-Devel mailing list, web interface at https://lists.sourceforge.net/lists/listinfo/firebir

Re: [Firebird-devel] Arg::SqlState

2020-01-29 Thread Alex Peshkoff via Firebird-devel
On 2020-01-29 10:57, Alex Peshkoff via Firebird-devel wrote: On 2020-01-28 20:01, Dimitry Sibiryakov wrote: 28.01.2020 17:55, Alex Peshkoff via Firebird-devel wrote: More or less obvious - if sql state to be set explicitly when raising an exception and should differ from default for used error

Re: [Firebird-devel] Arg::SqlState

2020-01-29 Thread Dimitry Sibiryakov
29.01.2020 11:41, Alex Peshkoff via Firebird-devel wrote: Add try/catch if you want to use internal classes in plugin. Actually I don't want to use them. Just to look at them as an example. -- WBR, SD. Firebird-Devel mailing list, web interface at https://lists.sourceforge.net/lists/li

Re: [Firebird-devel] Arg::SqlState

2020-01-29 Thread Alex Peshkoff via Firebird-devel
On 2020-01-29 13:35, Dimitry Sibiryakov wrote: 29.01.2020 08:57, Alex Peshkoff via Firebird-devel wrote: You should be able to do something like (Arg::Warning(isc_...) << Arg::SqlState("01000")).raise(); and after fixing related bugs see that sql state when warning is displayed.   It won't wo

Re: [Firebird-devel] Arg::SqlState

2020-01-29 Thread Dimitry Sibiryakov
29.01.2020 08:57, Alex Peshkoff via Firebird-devel wrote: You should be able to do something like (Arg::Warning(isc_...) << Arg::SqlState("01000")).raise(); and after fixing related bugs see that sql state when warning is displayed. It won't work in plugin because .raise() is throwing status_

Re: [Firebird-devel] Arg::SqlState

2020-01-28 Thread Alex Peshkoff via Firebird-devel
On 2020-01-28 20:01, Dimitry Sibiryakov wrote: 28.01.2020 17:55, Alex Peshkoff via Firebird-devel wrote: More or less obvious - if sql state to be set explicitly when raising an exception and should differ from default for used error code.   Yes, it is obvious but I wonder how to use it with w

Re: [Firebird-devel] Arg::SqlState

2020-01-28 Thread Dimitry Sibiryakov
28.01.2020 17:55, Alex Peshkoff via Firebird-devel wrote: More or less obvious - if sql state to be set explicitly when raising an exception and should differ from default for used error code. Yes, it is obvious but I wonder how to use it with warnings. -- WBR, SD. Firebird-Devel mailin

Re: [Firebird-devel] Arg::SqlState

2020-01-28 Thread Alex Peshkoff via Firebird-devel
On 2020-01-28 19:42, Dimitry Sibiryakov wrote: Hello, All.   In StatusArgs.h I see definition of SqlState class but no its usage anywhere. How it is supposed to be used? More or less obvious - if sql state to be set explicitly when raising an exception and should differ from default for us