[fpc-devel] TSdfDataset does not work with records larger then 255 chars

Felipe Monteiro de Carvalho felipemonteiro.carvalho at gmail.com
Mon Sep 8 20:49:19 CEST 2008


On Mon, Sep 8, 2008 at 3:43 PM, Michael Van Canneyt
<michael at freepascal.org> wrote:
> 1. When opening an existing file, the longest existing line length is used as
>   the max record size if firstlineasschema is True. The lengths are not changed
>   after that.

That looks wrong. So it's basically impossible to have data of arbitrary size.

> So:
> I would imagine that in your case, you set firstlineasschema=False, and set the correct
> lengths in Schema. That should do it.

This one is hard to test because nowhere is it documented what this
Schema: TStringList should contain inside it.

> A possible extension is that the schema is defined in the FieldDefs property,
> and that this is used to parse the file.

Ok, so it seams to me that the Schema should not actually exist,
because all information it contains is redundant with FieldDefs.
Setting a size in FieldDefs has no effect.

-- 
Felipe Monteiro de Carvalho



More information about the fpc-devel mailing list