Re: RE : RE : RE : [fpc-pascal] XML-XSD export: importer how to test

2011-07-29 Thread Reinier Olislagers
On 29-7-2011 9:27, michael.vancann...@wisa.be wrote:
 
 
 On Thu, 28 Jul 2011, Ludo Brands wrote:
 
 Agreed, but you cannot every kind of data type, for that you
 will probably need the various databases... and hopefully a
 continuous integration server to run the tests...


 Sqldb converts databases types to the internal ftxxx datatypes. So,
 yes, you can everything without external databases.
 I admit I need to delve deeper into this, but to me it's
 strange we have datatypes like ftOracleBlob and
 ftParadoxOLE... These do seem to be database-specific (ok,
 maybe within fcl-db, but still). Earlier today I've written
 code to dumbly create a bufdataset with all these datatypes
 for and will see what happens when assigning data to it. If
 it blows, I'll comment it out... we'll see.

 Db.pas line 2020 gives you the mapping between ftxxx and corresponding
 Tfield descendant. This is a default mapping but AFAIK no db
 implementation
 is actually overriding this.
 
 Not in FPC, but in Delphi, IBX for instance overrides it.
 Maybe mseide does it too.
 
 Michael.

Ok, just to be safe and document mappings in any event, I'll keep the
complete list of mappings in the exporter.

I'll only test with the types that work in a bufdataset...

Regards,
Reinier
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: RE : RE : RE : [fpc-pascal] XML-XSD export: importer how to test

2011-07-29 Thread Martin Schreiber

Am 29.07.2011 08:27, schrieb michael.vancann...@wisa.be:


Maybe mseide does it too.


Correct.

Martin
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: RE : RE : [fpc-pascal] XML-XSD export: importer how to test

2011-07-28 Thread Reinier Olislagers
On 28-7-2011 20:27, Ludo Brands wrote:
 
 Agreed, but you cannot every kind of data type, for that you 
 will probably need the various databases... and hopefully a 
 continuous integration server to run the tests...

 
 Sqldb converts databases types to the internal ftxxx datatypes. So, yes, you
 can everything without external databases. 
I admit I need to delve deeper into this, but to me it's strange we have
datatypes like ftOracleBlob and ftParadoxOLE... These do seem to be
database-specific (ok, maybe within fcl-db, but still).
Earlier today I've written code to dumbly create a bufdataset with all
these datatypes for and will see what happens when assigning data to it.
If it blows, I'll comment it out... we'll see.
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


RE : RE : RE : [fpc-pascal] XML-XSD export: importer how to test

2011-07-28 Thread Ludo Brands
  Agreed, but you cannot every kind of data type, for that you
  will probably need the various databases... and hopefully a 
  continuous integration server to run the tests...
 
  
  Sqldb converts databases types to the internal ftxxx datatypes. So, 
  yes, you can everything without external databases.
 I admit I need to delve deeper into this, but to me it's 
 strange we have datatypes like ftOracleBlob and 
 ftParadoxOLE... These do seem to be database-specific (ok, 
 maybe within fcl-db, but still). Earlier today I've written 
 code to dumbly create a bufdataset with all these datatypes 
 for and will see what happens when assigning data to it. If 
 it blows, I'll comment it out... we'll see. 

Db.pas line 2020 gives you the mapping between ftxxx and corresponding
Tfield descendant. This is a default mapping but AFAIK no db implementation
is actually overriding this.
Since there are a lot of ftxxx mapped to only a few TField classes, the
testcases can be reduced considerably. It'll help also in reducing the long
'case fieldtype' statements you have now.

Ludo

___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: RE : RE : RE : [fpc-pascal] XML-XSD export: importer how to test

2011-07-28 Thread Reinier Olislagers
On 28-7-2011 20:59, Ludo Brands wrote:
 Agreed, but you cannot every kind of data type, for that you
 will probably need the various databases... and hopefully a 
 continuous integration server to run the tests...


 Sqldb converts databases types to the internal ftxxx datatypes. So, 
 yes, you can everything without external databases.
 I admit I need to delve deeper into this, but to me it's 
 strange we have datatypes like ftOracleBlob and 
 ftParadoxOLE... These do seem to be database-specific (ok, 
 maybe within fcl-db, but still). Earlier today I've written 
 code to dumbly create a bufdataset with all these datatypes 
 for and will see what happens when assigning data to it. If 
 it blows, I'll comment it out... we'll see. 
 
 Db.pas line 2020 gives you the mapping between ftxxx and corresponding
 Tfield descendant. This is a default mapping but AFAIK no db implementation
 is actually overriding this.
 Since there are a lot of ftxxx mapped to only a few TField classes, the
 testcases can be reduced considerably. It'll help also in reducing the long
 'case fieldtype' statements you have now.
 
Thanks, I'll have a look...
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal