I am having problems accessing timestamp fields with certain values and I cannot use the TOracleSession->Preferences->TimestampAsString=true to solve it as it will cause problems in other areas of the program that must access the columns with AsDateTime.
I am using Oracle 11gR2 and DOA 4.1.1.0 on BCB 6.
I am getting a "time encode error" when selecting records with with a timestamp values with milliseconds of .999500 or above from what I can tell.
Statements to reproduce:
create table timestamp_test (log_date timestamp with local time zone);
insert into timestamp_test (log_date) values ('06-NOV-2012 02:26:40.999874');
commit;
Using a TOracleQuery:
select to_char(log_date) from timestamp_test
TO_CHAR(LOG_DATE)
-------------------------------
06-NOV-12 02.26.40.999874 AM
select log_date from timestamp_test
LOG_DATE
--------
I am using Oracle 11gR2 and DOA 4.1.1.0 on BCB 6.
I am getting a "time encode error" when selecting records with with a timestamp values with milliseconds of .999500 or above from what I can tell.
Statements to reproduce:
create table timestamp_test (log_date timestamp with local time zone);
insert into timestamp_test (log_date) values ('06-NOV-2012 02:26:40.999874');
commit;
Using a TOracleQuery:
select to_char(log_date) from timestamp_test
TO_CHAR(LOG_DATE)
-------------------------------
06-NOV-12 02.26.40.999874 AM
select log_date from timestamp_test
LOG_DATE
--------