E-PC: TO_DATE Function in SQL Definition Causes ORA-01858 in 8.49.19
(Doc ID 789080.1)
Last updated on OCTOBER 07, 2024
Applies to:
PeopleSoft Enterprise PT PeopleTools - Version 8.49 to 8.49 [Release 8.4]Information in this document applies to any platform.
SPECIFIC TO:
PeopleTools 8.49.19 and up, but not 8.50 or higher
Symptoms
Issue deals with Oracle database environments that have custom SQL definitions using the TO_DATE SQL function.
For example:
SELECT a.coverage_elect
FROM ps_leave_plan a
WHERE a.emplid = 'XXXXX'
AND a.empl_rcd = 0
AND a.effdt >= TO_DATE('15-jan-2007')
AND a.coverage_elect = 'E'
Then execute this SQL via PeopleCode, for example:
&ret = SQLExec(SQL.GCS_TEST, &result);
Starting in PeopleTools 8.49.19, the error "ORA-01858: a non-numeric character was found where a numeric was expected" will be returned for SQL definitions using the TO_DATE function. The same SQL does not cause errors in earlier PeopleTools releases.
Important: This document is specific to PeopleTools 8.49.19 and up, but not 8.50 or higher. For 8.50 and higher, please see:
E-PC: Where is the OracleUseDescriptors Parameter to fix Date Format issues in 8.50 and up? (<Note 1116973.1>)
Changes
Cause
To view full details, sign in with your My Oracle Support account. |
|
Don't have a My Oracle Support account? Click to get started! |
In this Document
Symptoms |
Changes |
Cause |
Solution |
References |