[fpc-pascal] Assigning value to ftVariant datatype & varbytes-still stuck
Reinier Olislagers
reinierolislagers at gmail.com
Sun Aug 7 20:04:40 CEST 2011
On 7-8-2011 19:50, Ludo Brands wrote:
>>> Same problem as before: TBufDataset doesn't support correctly
>>> ftVarBytes and ftVariant and doesn't raise an
>>> SErrFieldTypeNotSupported like TMemDataset is doing. Look at
>>> TCustomBufDataset.GetFieldSize and you'll see that data length for
>>> ftVarBytes and ftVariant is arbitrarely set at 10. Compare
>> this with
>>> TMemDataset.MDSGetBufferSize.
>>>
>>> Ludo
>>>
>> I'm afraid you'll have to spell it out for me;
>
>
> TBufDataset doesn't support ftVarBytes and ftVariant. Variants are complex
> objects and aren't stored by just copying bytes. Don't use them with
> TBufDataset.
>
> Ludo
Thanks, that's very clear - I'll get rid of them in the tests ;)
I might upload a patch to give an error instead of the fixed size - that
might possibly lie within my abilities...
Thanks,
Reinier
More information about the fpc-pascal
mailing list