Quick Example:
<cfquery datasource="..." name="...">
SELECT * FROM table WHERE field1='#variable#'
</cfquery>
Let's say variable = "foo'bar"
In CF6.1 and CF8, the query passed to the database is:
SELECT * FROM table WHERE field1='foo''bar'
If variable = "foo''bar"
In CF6.1, the query passed to the database is:
SELECT * FROM table WHERE field1='foo''''bar'
In CF8, the query is:
SELECT * FROM table WHERE field1='foo''bar'
If I can, I would prefer ColdFusion 8 to mimic the behavior of ColdFusion 6.1 so I don't have to go back and check all my past work now that my server has been upgraded. Is this even possible? Thanks.
<cfquery datasource="..." name="...">
SELECT * FROM table WHERE field1='#variable#'
</cfquery>
Let's say variable = "foo'bar"
In CF6.1 and CF8, the query passed to the database is:
SELECT * FROM table WHERE field1='foo''bar'
If variable = "foo''bar"
In CF6.1, the query passed to the database is:
SELECT * FROM table WHERE field1='foo''''bar'
In CF8, the query is:
SELECT * FROM table WHERE field1='foo''bar'
If I can, I would prefer ColdFusion 8 to mimic the behavior of ColdFusion 6.1 so I don't have to go back and check all my past work now that my server has been upgraded. Is this even possible? Thanks.