This question it to some extend inspired by Retrieving Data From Returned Oracle Timestamp Column
I query my Oracle database like
<cfquery name="getstuff" ...>
SELECT timestampfld
FROM myTable
</cfquery>
The column is of type timestamp and is returned as oracle.sql.TIMESTAMP
.
A call to
<cfdump var="#timestampfld#">
displays that the class is supposed to have a function timestampValue() that takes no arguments. However, when I call
<cfdump var="#timestampfld.timestampValue()#">
I'm presented with an exception
Either there are no methods with the specified method name and argument types or the timestampValue method is overloaded with argument types that ColdFusion cannot decipher reliably. ColdFusion found 0 methods that match the provided arguments. If this is a Java object and you verified that the method exists, use the javacast function to reduce ambiguity.
How can I call the method timestampValue()
on my column?
EDIT
When I CFDUMP
the oracle.sql.TIMESTAMP
I see the followig picture which says there is a timestampValue()
method.
Also, when I look into the Oracle Thin driver JAR file using a Java Decompiler I see the signature of the method