Seroius direct TCP bug regarding timestamp with TZ columns and region
Posted: Sat 19 May 2018 18:59
I am working with Oracle 12c release 2 and Delphi XE 10.2.3.
Please connect via Oracle SQLNet and execute
BTW, in my Delphi code, I am setting <timestamp_column>.Format := <NLS_TIMESTAMP_TZ_FORMAT>
The result is as expected
Now I am connecting by direct TCP
The result is erroneous:
Besides the difference in dates, the last 2 Bytes are always interpreted as TZH:TZM. That gives wrong results having UTC offsets of more than 100 hours.
Please connect via Oracle SQLNet and execute
Code: Select all
alter session set NLS_TIMESTAMP_TZ_FORMAT = 'DD-MON-RR HH.MI.SSXFF AM TZR';
select TIMESTAMP '1999-10-29 01:30:00 US/Pacific PDT' from dual
The result is as expected
Code: Select all
29-OCT-99 01.30.00.000000000 AM US/PACIFIC
The result is erroneous:
Code: Select all
03-NOV-99 07.06.00,000000000 AM +117:96