I am using JDBC Adapter 22.214.171.124 with FP1 Fix 11.
Database is Oracle 10g (10.1.0.4) and ojdbc14 (10.1.0.4)
I have connection with v8 compatable true so I can insert timestamps to date columns. I am doing an adapter insert to a DATE column with the input type as string.
The problem is when inserting date to a date field certain dates are having the century incorrectly inserted to the database. For example if I pass a date 1969-11-30 00:00:00 it works fine but 1949-11-30 00:00:00 saves in the database as 2049-11-30 00:00:00
Oracle says there is a Y2K bug and the syntax TO_DATE (‘1949-11-30’,‘rrrr-mm-dd’) should work. i.e. rrrr replaces yyyy as a workaround to the bug. (Y2k bug in software released 2005???)
Of course I’m not using the TO_DATE function as I am doing an adapter insert rather than custom SQL.
Has anyone else seen this? Are there any other likely explanations? Do I really have to hand code all my SQL’s to Oracle databases? Are there any other workarounds?
Love to hear from any Oracle Gurus or JDBC adapter PD