On Mon, 2005-12-12 at 09:44 +0100, Michael Van Canneyt wrote:
> 
> On Sun, 11 Dec 2005, Micha Nelissen wrote:
> 
> > On Sun, 11 Dec 2005 17:30:09 +0100
> > Joost van der Sluis <[EMAIL PROTECTED]> wrote:
> >
> >> That's with the following definition of NativeFormat:
> >> When nativeformat is true, no conversion from the data takes place, so
> >> that the format is returned in the format that is used by the underlying
> >> database.
> >
> > As TDbf author my interpretation of NativeFormat is: True means data
> > passed to/from Get/SetFieldData is in Delphi 5+ internal format
> > (TDateTime and friends), False means data is in Delphi 4- internal format
> > (TDateTimeRec and friends).
> 
> That is also my understanding of this field. The name is chosen rather
> unfortunately. The point is that it's also used by Borland for OLE Fields,
> some Byte Array fields etc.
> 
> It's also in this sense that I applied the patch. I will not revert it,
> there are simply too much TDatasets out there that should be supported.
> 
> But I'm willing to fix sqldb, as I was the one that broke it.

I can fix sqldb, but to do that I have to understand how it works now,
which I don't.

With your implementation, the solution is simple: let TField always call
GetFieldData(buf,True); Then it will allways get the D5+ style.

But how can TField know that the D5+ style is supported by the TDataset?
It can't. So the whole option is useless again?!?

-- 
Met vriendelijke groeten,

  Joost van der Sluis
  CNOC Informatiesystemen en Netwerken
  http://www.cnoc.nl

_________________________________________________________________
     To unsubscribe: mail [EMAIL PROTECTED] with
                "unsubscribe" as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives

Reply via email to