The following SQL run on Oracle 11g returns an incorrect 'seconds' value for dates before 1970-01-01 when fractional seconds are present.
Is there something wrong with the SQL?
alter session set nls_timestamp_format='SS';
select
to_timestamp('1969-12-31 23:59:59 0','YYYY-MM-DD HH24:MI:SS FF') TS1,
to_timestamp('1969-12-31 23:59:59 1','YYYY-MM-DD HH24:MI:SS FF') TS2,
to_timestamp('1970-01-01 00:00:00 1','YYYY-MM-DD HH24:MI:SS FF') TS3
from dual;
TS1 TS2 TS3
59 58 00