While doing compatibility testing for ColdFusion MX, we ran across a complete showstopper. Whenever we try to pass a null value (ie variale without assigned value) via CF_SQL_NUMERIC, CF errors out with:
Error Executing Database Query.
Invalid data for CFSQLTYPE CF_SQL_NUMERIC.
The procedure call code is:
In the code above, I pass "" as I_NUMERIC and it dies. Ditto if I pass a variable with a null value.
I can email the complete CFDUMP results and test code to anyone who thinks they can help. I have verified this using a simple "numeric in, numeric out" procedure.
As we have many screens with non-required numeric fields, this has rendered our whole app useless on MX. We have no such problems on 4.5 or 5.0. In the database world, having a null value is a relatively common occurrence; why MX cannot handle this is beyond me.
Any info or help would greatly be appreicated.
Rich
____________________________
Rich Tefft
PL/SQL Programmer
Error Executing Database Query.
Invalid data for CFSQLTYPE CF_SQL_NUMERIC.
The procedure call code is:
Code:
<cfset out_numeric="">
<cfstoredproc
procedure="MX_TEST_PKG.PASS_NUMERIC"
username="#session.username#"
password="#session.password#"
datasource="#session.datasource#">
<cfprocparam type="IN" cfsqltype="cf_sql_numeric"
value="" dbvarname="I_NUMERIC">
<cfprocparam type="OUT" cfsqltype="cf_sql_numeric"
dbvarname="O_NUMERIC" variable="OUT_NUMERIC">
</cfstoredproc>
In the code above, I pass "" as I_NUMERIC and it dies. Ditto if I pass a variable with a null value.
I can email the complete CFDUMP results and test code to anyone who thinks they can help. I have verified this using a simple "numeric in, numeric out" procedure.
As we have many screens with non-required numeric fields, this has rendered our whole app useless on MX. We have no such problems on 4.5 or 5.0. In the database world, having a null value is a relatively common occurrence; why MX cannot handle this is beyond me.
Any info or help would greatly be appreicated.
Rich
____________________________
Rich Tefft
PL/SQL Programmer