LarrySteele
Programmer
I'm posting this in the ColdFusion forum because the error only appears in ColdFusion. I have no problem pulling the data from TOAD or SQLPlus.
While in ColdFusion, if I query just the PERSONID, I get data back with no problem (using cfquery, cfdump, cfabort to view output).
However, if I query any other field, I receive: "ORA-01858: a non-numeric character was found where a numeric was expected"
ELIGNOW is the only field that has mix of ~dates~ and strings. I've removed all rows from the table that had ~dates~, meaning all rows have "YES" in the offending column, and it still fails, expecting to see a numeric.
I even took out ELIGNOW so all fields were monotype, and the error still occurred.
If I query for ELIG5 only, which has nothing but "YES" and "NO", I get the same Oracle error even though there's no reason to expect a numeric character in the char field.
I then tried putting in my own values from ColdFusion:
Using this method, ColdFusion had no problem returning the record.
Unfortunately, I've hit a wall and can't figure out how to get past this one. Google, books, and co-workers have not been as helpful as usual.
I've tried numerous permutations of script and code and no joy. Now deadline looms ominously. Any assistance would be greatly appreciated.
Code:
Table def:
GTT_RETIRE_ELIG (yes, it's a global temp table)
PERSONID CHAR(12)
ELIGNOW CHAR(10)
ELIG5 CHAR(3)
ELIG10 CHAR(3)
Code:
Data description:
PERSONID: Nine numbers, equates to US SSN
ELIGNOW: "YES" or the to_char(date) the person will be eligible to retire
ELIG5: "YES" or "NO"
ELIG10: "YES" or "NO"
However, if I query any other field, I receive: "ORA-01858: a non-numeric character was found where a numeric was expected"
ELIGNOW is the only field that has mix of ~dates~ and strings. I've removed all rows from the table that had ~dates~, meaning all rows have "YES" in the offending column, and it still fails, expecting to see a numeric.
I even took out ELIGNOW so all fields were monotype, and the error still occurred.
If I query for ELIG5 only, which has nothing but "YES" and "NO", I get the same Oracle error even though there's no reason to expect a numeric character in the char field.
I then tried putting in my own values from ColdFusion:
Code:
insert into GTT_RETIRE_ELIG
values ('123456789','01/02/2003','YES','YES')
Unfortunately, I've hit a wall and can't figure out how to get past this one. Google, books, and co-workers have not been as helpful as usual.
I've tried numerous permutations of script and code and no joy. Now deadline looms ominously. Any assistance would be greatly appreciated.