Subject | Re: [IBO] Requested change to IBODataset unit |
---|---|
Author | Jason Wharton |
Post date | 2003-10-18T18:19:17Z |
Thanks for this fix, it will be in the next sub-release.
Jason Wharton
Jason Wharton
----- Original Message -----
From: "Matt Nielsen" <mnielsen@...>
To: <IBObjects@yahoogroups.com>
Sent: Friday, September 05, 2003 3:41 PM
Subject: [IBO] Requested change to IBODataset unit
> In the GetDataTypeAndSize procedure the system just ignores putting
> the datasize for varchar fields that are larger than 255 long. It
> has the data why doesn't it just put it in the size property like
> other varchars, instead it just sets the type to ftMemo which is fine
> but I really nead the size if it is a varchar and not a Blob.
>
> Here is the piece of code I'm talking about:
>
> begin
> NewDataType := ftBytes;
> NewDataSize := SQLLen;
> end
> else
> >>>>>>>>>>>> HERE <<<<<<<<<<<<<<<<<<<
> if SQLLen >= 256 then
> NewDataType := ftMemo
> >>>>>>>>> JUST ADD <<<<<<<<<<<<<<<<<<<<
> NewDataSize := SQLLen;
> else
> begin
> NewDataType := ftString;
> NewDataSize := SQLLen;
> // The vcl complains about zero length strings...
> if NewDataSize = 0 then
> NewDataSize := 1;
> end;