I am in the process of upgrading from CF 9 to CF 2016, and seeing some odd behavior in the data returned from a StoredProc call (cfscript).
The data type in the database is time(7)
. The database value I'm seeing the issue with is: 00:00:00.0000000
.
I am dumping the results directly after the execute().getProcResultSets().results
line.
In CF 9, the value in the cfdump is
00:00:00.0000000
which is correct.In CF 2016, the value in the cfdump is
1970-01-01 00:00:00.0
This difference is causing an "invalid datetime error" in my code:
CreateODBCDateTime("#end_date# #end_time#")
I fixed this by using a TimeFormat()
function call, but I'd like to know if there is another option for fixing this so the data returned by CF's StoredProc is correct, to eliminate any possible confusion.
UPDATE: I am using the default driver provided by Adobe.