TIMESTAMP returns field of type ftTimestamp

Discussion of open issues, suggestions and bugs regarding ODAC (Oracle Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
upscene

TIMESTAMP returns field of type ftTimestamp

Post by upscene » Wed 23 Mar 2005 09:15

Hi there,

When I have a column of type TIMESTAMP in my Oracle database, the ODAC components return a TField of type "ftTimestamp". This confused me a bit :? ...

According to the Delphi help, "ftTimestamp" is only used for dbExpress.

This got my code all confused and non-working :(

Any reason why it's not a ftDateTime field?

--
Martijn Tonies
Upscene Productions

Paul
Posts: 725
Joined: Thu 28 Oct 2004 14:06

Post by Paul » Wed 23 Mar 2005 10:11

ftDateTime corresponds to TDateTimeField.
ftTimestamp is used for TOraTimeStampField type.
TDateTimeField represents functionality of Oracle DATE type.
TOraTimeStampField represents functionality of Oracle TIMESTAMP type. Those are different types with different functionality.
What problem do you have?

upscene

Post by upscene » Wed 23 Mar 2005 10:39

Hello Paul,

As I said earlier - according to the Delphi help, ftTimestamp is ONLY used by dbExpress. ODAC isn't dbExpress.

So, I do not really have a problem with it (although it messed some of my generic code), but I wonder why the TOraTimestampField doesn't return a "ftDateTime" result for the field type as this is what - again, according to the Delphi help - fields that support date+time return...

Obviously, as the Oracle TIMESTAMP type adds stuff to the "normal" DATE type, your TOraTimestampField could be a descendant of TDateTimeField :-)

As I do NOT use dbExpress, this got me (and my code :wink: ) confused.

--
Martijn Tonies
Upscene Productions

Post Reply