coldfusion 11 - cfprocparam is throwing ILLEGAL SYMBOL =; -


upgraded cf10 cf11 update 5 ( hotfix hf1100-3971083.jar ) db (db2 v10.2)

getting error on code calls stored proc.

error executing database query. [macromedia][db2 jdbc driver][db2]illegal symbol =;   error occurred in ...: line 238 236 :  <cfstoredproc datasource="#application.dsn#" procedure="live.sp" > 237 :     <cfprocparam type="in" cfsqltype="cf_sql_bigint" dbvarname="stopid" null="yes" /> 238 :     <cfprocparam type="in" cfsqltype="cf_sql_integer" dbvarname="poid" null="no" value="#val( qry.id )#" /> 239 :  </cfstoredproc> 

the actual code looks - , works fine in cf10....

"qry" returning value "id"

<cfloop query="qry" >      <cfstoredproc datasource="#application.dsn#" procedure="live.sp" >          <cfprocparam type="in" cfsqltype="cf_sql_bigint" dbvarname="stopid" null="yes" />          <cfprocparam type="in" cfsqltype="cf_sql_integer" dbvarname="poid" null="no" value="#val( qry.id )#" />      </cfstoredproc>  </cfloop> 

this happens if or not 'debugging' turned on (per hotfix hf1100-3971083.jar)

it seems there others claiming cfprocparam issues - solutions issues not fixing issue.

any ideas?

after couple days of trying multiple suggestions people. removed "dbvarname" arguments, made sure arguments ordinal match procedure, , gets me past error.

<cfstoredproc datasource="#application.dsn#" procedure="live.sp" >     <cfprocparam type="in" cfsqltype="cf_sql_bigint" null="yes" />     <cfprocparam type="in" cfsqltype="cf_sql_integer" null="no" value="#val( qry.id )#" /> </cfstoredproc> 

this works without error. can't like solution. oh well. other solution have worked use

<cfquery...>     call 'procname' ( arg => value, arg2 => val2 ); </cfquery> 

however, legacy code wont exist more year longer (...hopefully...). im not going fret it.


Comments

Popular posts from this blog

Email notification in google apps script -

c++ - Difference between pre and post decrement in recursive function argument -

javascript - IE11 incompatibility with jQuery's 'readonly'? -