[fpc-devel] DB Bug in 2.0.1?

Micha Nelissen micha at neli.hopto.org
Thu Jul 21 11:52:03 CEST 2005


On Thu, 21 Jul 2005 06:51:12 +0200 (CEST)
Michael Van Canneyt <michael at freepascal.org> wrote:

> Because of the bug report I did some research on this as well.
> Up to and including D4, a TDateTimeRec was used internally.
> As of Delphi 5, TDateTime was used.
> 
> Since the first FPC TDataset implementation was based on a D3 spec, 
> this explains the confusion.

Yes, but FPC already used TDateTime internally, according to TDbf :-)

dbf_common.inc:

{$ifdef DELPHI_5}

...
  {$define SUPPORT_NEW_FIELDDATA}
...

SUPPORT_NEW_FIELDDATA means use TDateTime as internal format. Under {$ifdef FPC} I also have defined SUPPORT_NEW_FIELDDATA.

(I know: the SUPPORT_ should be named HAS_ or so...)

Regards from the not entirely ignorant tdbf maintainer as proven by this mail ;-)

Micha




More information about the fpc-devel mailing list