-
Bug
-
Resolution: Done
-
Major
-
11.x
-
None
There is a known problem with Oracle's intervals:
select to_date('2018/03/31', 'yyyy/mm/dd') + (INTERVAL '1' MONTH(2)) from dual
results in ORA-01839: date not valid for month specified error
As an alternative, ADD_MONTHS function could be used .
select ADD_MONTHS(to_date('2018/03/31', 'yyyy/mm/dd'), 1) from dual
It is not defined in the functions spec how timestampadd with SQL_TSI_MONTH should behave in some cases but anyway no error should happen.
Currently "interval" - inflicted Oracle errors are transmitted for timestampadd invocations.