Closed kirenotneb closed 3 years ago
Code corrected and committed, thank you for the report.
The code NVL(YEAR_OF_BIRTH,DATEPART(year, birth_datetime )) as YEAR_OF_BIRTH, NVL(MONTH_OF_BIRTH,DATEPART(month, birth_datetime)) as MONTH_OF_BIRTH, was changed to NVL(YEAR_OF_BIRTH,EXTRACT(year from birth_datetime )) as YEAR_OF_BIRTH, NVL(MONTH_OF_BIRTH,EXTRACT(month from birth_datetime)) as MONTH_OF_BIRTH,
Tested in Oracle 19c
The latest code is failing on the use of DATEPART in the following query, which seems related to change #4 listed above:
The error is java.sql.SQLSyntaxErrorException: ORA-00904: "DATEPART": invalid identifier.