cfprocparam Gotcha in CF 7.0.2 Hot Fix 1

We just moved CF 7.0.2 Hot Fix 1 into our dev environment today and quickly found a problem…

It seems that a developer who no longer works with us liked to use named parameters like this:
cfprocparam cfsqltype=”cf_sql_integer” type=”in” dbvarname=”intLinkLocation_ID” value=”#Form.linkLocation#”

The only problem was that the MS SQL 2000 server used @intLinkLocation_ID for the parameter. CF seemed to forget this fact since the items were in the correct sequence. After the hot fix it throws a cryptic error on the stored procedure.

Error Executing Database Query.
[Macromedia][SQLServer JDBC Driver][SQLServer]Line 1: Incorrect syntax near ‘=’.

The fix is easy, just add the @. Unfortunately, we found over 1000 instances where the @ is missing. Even if we add them all we now have the fun of testing all the apps to make sure we get the names right.

So watch out!!!

About these ads

One Response to cfprocparam Gotcha in CF 7.0.2 Hot Fix 1

  1. Brian says:

    Keep it up, bookmarked and referred some friends.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.

%d bloggers like this: