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

2008-09-10 Thread Martin Schreiber
On Tuesday 09 September 2008 20.28:05 Luca Olivetti wrote: El Mon, 8 Sep 2008 20:14:44 +0200 Martin Schreiber [EMAIL PROTECTED] escribió: Is Sqlite3 no option for you? MSEgui and FPC sqldb both have a DB-connection component for SQLite3. FWIW I had the problem of string fields limited to

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

2008-09-09 Thread Luca Olivetti
El Mon, 8 Sep 2008 20:14:44 +0200 Martin Schreiber [EMAIL PROTECTED] escribió: Is Sqlite3 no option for you? MSEgui and FPC sqldb both have a DB-connection component for SQLite3. FWIW I had the problem of string fields limited to 255 characters with sqlite3 and zeos. I hadn't time to test

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

2008-09-08 Thread Martin Schreiber
On Monday 08 September 2008 04.53:25 Felipe Monteiro de Carvalho wrote: Hello, Using TSdfDataset my records are cut to fit 255 chars, even when I change the new MaxRecordLength property to 2048. This is a very elusive bug, and I am searching all over for the cause without success =( I

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

2008-09-08 Thread Felipe Monteiro de Carvalho
On 9/8/08, Martin Schreiber [EMAIL PROTECTED] wrote: Possibly because FieldDefs[n].Size is too small. Did you setup TSdfDataset.Schema according to your needs? The format is fieldname=fieldsize AFAIK, MAXSTRLEN is a default value only. The new MaxRecordLength property is actually

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

2008-09-08 Thread Marco van de Voort
In our previous episode, Felipe Monteiro de Carvalho said: On 9/8/08, Martin Schreiber [EMAIL PROTECTED] wrote: Possibly because FieldDefs[n].Size is too small. Did you setup TSdfDataset.Schema according to your needs? The format is fieldname=fieldsize AFAIK, MAXSTRLEN is a default value

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

2008-09-08 Thread Inoussa OUEDRAOGO
Another wierd thing is that it absolutely does not work (nothing is read from database) if I don't set MaxRecordLength. The property has a default value of 250, which somehow does not work, so I removed the default in the property and initialized the value in the constructor, which works.

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

2008-09-08 Thread Felipe Monteiro de Carvalho
On 9/8/08, Marco van de Voort [EMAIL PROTECTED] wrote: That shoulds like a shortstring limit. Is everything in {$H+} or {$mode delphi} ? This was my first idea, but I couldn't find anywhere a H+ missing ... Also, as to my previous statement that it now started without without reason, it seams

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

2008-09-08 Thread Felipe Monteiro de Carvalho
If anyone wishes to take a look at the full project: svn co https://turbocircuit.svn.sourceforge.net/svnroot/turbocircuit turbocircuit TurboCircuit is a circuit drawing program developed with lazarus. It should work in any lazarus supported OS. Be careful that there is a local copy of sdfdata

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

2008-09-08 Thread Martin Schreiber
On Monday 08 September 2008 14.42:04 Felipe Monteiro de Carvalho wrote: On 9/8/08, Marco van de Voort [EMAIL PROTECTED] wrote: That shoulds like a shortstring limit. Is everything in {$H+} or {$mode delphi} ? This was my first idea, but I couldn't find anywhere a H+ missing ... Also, as

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

2008-09-08 Thread Felipe Monteiro de Carvalho
On Mon, Sep 8, 2008 at 10:51 AM, Martin Schreiber [EMAIL PROTECTED] wrote: Did you open an existing datafile? I am always working opening an existing datafile. So, you are thinking that it calculates the size for the fields upon loading and then it does not increase the field sizes when posting

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

2008-09-08 Thread Martin Schreiber
On Monday 08 September 2008 19.34:32 Felipe Monteiro de Carvalho wrote: On Mon, Sep 8, 2008 at 10:51 AM, Martin Schreiber [EMAIL PROTECTED] wrote: Did you open an existing datafile? I am always working opening an existing datafile. So, you are thinking that it calculates the size for the

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

2008-09-08 Thread Felipe Monteiro de Carvalho
On Mon, Sep 8, 2008 at 3:14 PM, Martin Schreiber [EMAIL PROTECTED] wrote: It seems so if you don't define the field size in the TSdfDataset.Schema. Unlike tmsebufdataset, TSdfDataset stores the data in a record with fixed size which can't be changed after open. Is it possible to define the

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

2008-09-08 Thread Michael Van Canneyt
On Mon, 8 Sep 2008, Felipe Monteiro de Carvalho wrote: On Mon, Sep 8, 2008 at 10:51 AM, Martin Schreiber [EMAIL PROTECTED] wrote: Did you open an existing datafile? I am always working opening an existing datafile. So, you are thinking that it calculates the size for the fields upon

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

2008-09-08 Thread Felipe Monteiro de Carvalho
On Mon, Sep 8, 2008 at 3:43 PM, Michael Van Canneyt [EMAIL PROTECTED] 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

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

2008-09-08 Thread Martin Schreiber
On Monday 08 September 2008 20.19:27 Felipe Monteiro de Carvalho wrote: On Mon, Sep 8, 2008 at 3:14 PM, Martin Schreiber [EMAIL PROTECTED] wrote: It seems so if you don't define the field size in the TSdfDataset.Schema. Unlike tmsebufdataset, TSdfDataset stores the data in a record with fixed

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

2008-09-07 Thread Felipe Monteiro de Carvalho
Hello, Using TSdfDataset my records are cut to fit 255 chars, even when I change the new MaxRecordLength property to 2048. This is a very elusive bug, and I am searching all over for the cause without success =( I searched everywhere for a shortstring, which could be the cause, but didn't find