[Firebird-devel] [FB-Tracker] Created: (CORE-6239) Compiler can make more rigorous check for presense of RETURNS(...) clause in SP header when SP body contains SUSPEND.

2020-01-29 Thread Pavel Zotov (JIRA)
Compiler can make more rigorous check for presense of RETURNS(...) clause in SP header when SP body contains SUSPEND. - Key: CORE-6239 URL: http://

[Firebird-devel] MSVC Backend Updates in Visual Studio 2019 Versions 16.3 and 16.4

2020-01-29 Thread marius adrian popa
https://devblogs.microsoft.com/cppblog/msvc-backend-updates-in-visual-studio-2019-versions-16-3-and-16-4/ Firebird-Devel mailing list, web interface at https://lists.sourceforge.net/lists/listinfo/firebird-devel

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_