IBM DB2 incorrect ErrorCode

Discussion of open issues, suggestions and bugs regarding UniDAC (Universal Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
WaveRunner
Posts: 3
Joined: Wed 17 Nov 2021 17:04

IBM DB2 incorrect ErrorCode

Post by WaveRunner » Thu 18 Nov 2021 09:05

Hi,

I'm using UniDac Components v.7.4.12 with IBM DB2 Database. My problem is that I can't get the right ErrorCode value. For example, if I try to insert duplicate row in DB and then get the ErrorCode, it always will be -1:

Code: Select all

try
{
    ...
}
catch(EDAError& E)
{
    DbErrorCode = E->ErrorCode; // or DbErrorCode = EUniError(E).InnerError->ErrorCode;
}
Although, according to error codes list, the ErrorCode value should be -803. Can anybody help me with that problem?

Thanks

WaveRunner
Posts: 3
Joined: Wed 17 Nov 2021 17:04

Re: IBM DB2 incorrect ErrorCode

Post by WaveRunner » Wed 24 Nov 2021 10:31

I still need help

MaximG
Devart Team
Posts: 1748
Joined: Mon 06 Jul 2015 11:34

Re: IBM DB2 incorrect ErrorCode

Post by MaximG » Fri 26 Nov 2021 14:30

Please try to verify the described behavior using the latest version UniDAC 9.0.1

WaveRunner
Posts: 3
Joined: Wed 17 Nov 2021 17:04

Re: IBM DB2 incorrect ErrorCode

Post by WaveRunner » Fri 26 Nov 2021 14:49

MaximG wrote: Fri 26 Nov 2021 14:30 Please try to verify the described behavior using the latest version UniDAC 9.0.1
I'm working in BCB6. As I suppose v9.0.1 is for RAD 11 Alexandria

Post Reply