I do not feel I a getting consistent results with trying to handle single quotes in sql with cold fusion.
I thought the function PreserveSingleQuotes()
helped with data with single quotes in it.
not sure why the code below would does not work
Thank you
Aaron
I thought the function PreserveSingleQuotes()
helped with data with single quotes in it.
not sure why the code below would does not work
Code:
<cfset UpdateUser2_sql = " update mytable set col1 = '#col1#', col2 = #col2#, col3 = '#col3#' where id = #id# >
<CFQUERY NAME="UpdateUser2" DATASOURCE="#REQUEST.DATASOURCE#">
#PreserveSingleQuotes(UpdateUser2_sql)#
</CFQUERY>
Thank you
Aaron