mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-22 04:29:29 +02:00
fcl-db: oracle: cosmetic
git-svn-id: trunk@29164 -
This commit is contained in:
parent
eaadd51b42
commit
628d6243be
@ -332,13 +332,14 @@ end;
|
||||
|
||||
procedure TOracleConnection.HandleError;
|
||||
|
||||
var errcode : sb4;
|
||||
var
|
||||
errcode : sb4;
|
||||
buf : array[0..1023] of char;
|
||||
E : EOraDatabaseError;
|
||||
|
||||
begin
|
||||
OCIErrorGet(FOciError,1,nil,errcode,@buf[0],1024,OCI_HTYPE_ERROR);
|
||||
|
||||
raise EOraDatabaseError.CreateFmt('%s', [pchar(buf)], Self, errcode, '')
|
||||
raise EOraDatabaseError.CreateFmt(pchar(buf), [], Self, errcode, '')
|
||||
end;
|
||||
|
||||
procedure TOracleConnection.GetParameters(cursor: TSQLCursor; ATransaction : TSQLTransaction; AParams: TParams);
|
||||
|
Loading…
Reference in New Issue
Block a user