mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-06-26 00:38:30 +02:00
fcl-db: oracle: let EOraDatabaseError descend from ESQLDatabaseError instead of EDatabaseError
git-svn-id: trunk@28044 -
This commit is contained in:
parent
045429327b
commit
dac058e462
@ -19,9 +19,9 @@ const
|
|||||||
DefaultTimeOut = 60;
|
DefaultTimeOut = 60;
|
||||||
|
|
||||||
type
|
type
|
||||||
EOraDatabaseError = class(EDatabaseError)
|
EOraDatabaseError = class(ESQLDatabaseError)
|
||||||
public
|
public
|
||||||
ORAErrorCode : Longint;
|
property ORAErrorCode: integer read ErrorCode; deprecated 'Please use ErrorCode instead of ORAErrorCode'; // June 2014
|
||||||
end;
|
end;
|
||||||
|
|
||||||
TOracleTrans = Class(TSQLHandle)
|
TOracleTrans = Class(TSQLHandle)
|
||||||
@ -331,7 +331,7 @@ begin
|
|||||||
else
|
else
|
||||||
E := EOraDatabaseError.Create(pchar(buf));
|
E := EOraDatabaseError.Create(pchar(buf));
|
||||||
|
|
||||||
E.ORAErrorCode := errcode;
|
E.ErrorCode := errcode;
|
||||||
Raise E;
|
Raise E;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user