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
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply via email to