TIBCParam.IsObjectDataType

Discussion of open issues, suggestions and bugs regarding IBDAC (InterBase Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
lrauti
Posts: 18
Joined: Fri 03 Jan 2014 16:22

TIBCParam.IsObjectDataType

Post by lrauti » Wed 25 Jun 2014 09:53

Is there a reason why ftFmtMemo data type is not listed here?

function TIBCParam.IsObjectDataType(DataType: TFieldType): boolean;
begin
case DataType of
{$IFDEF VER10P}ftWideMemo,{$ENDIF}
ftMemo, ftBlob, ftArray, ftADT:
Result := True;
else
...

It is causing problems here...

procedure TDAParam.SetAsVariant(const Value: variant);
begin
if IsBlobDataType then begin
Assert(ParamObject is TBlob);
...

because ParamObject is nil when DataType is ftFmtMemo.

ftFmtMemo is listed here...

function TDAParam.IsObjectDataType(DataType: TFieldType): boolean;
begin
Result := DataType in [ftMemo{$IFDEF VER10P}, ftWideMemo{$ENDIF}, ftBlob, ftGraphic, ftFmtMemo];
end;

PavloP
Devart Team
Posts: 149
Joined: Fri 24 Jan 2014 12:33

Re: TIBCParam.IsObjectDataType

Post by PavloP » Thu 26 Jun 2014 10:47

Thank you for the information. Investigation is in progress.

Post Reply