can anyone else confirm this?

When I attempt to use the PreserveSingleQuotes() with an Array, i get
the following error:

Just in time compilation error Invalid parser construct found on ....
ColdFusion was looking at the following text:
[
Invalid expression format. The usual cause is an error in the expression
structure.

Below is the code to replicate. Is there a problem with my code or is
this a bug in ColdFusion?

---start------------------------------------
<cfset testArray = ArrayNew(1)>
<cfset testArray[1] = "te'st">
<cfquery datasource="testDB">
        INSERT INTO temp_dammit
        (str) VALUES('#PreserveSingleQuotes(testArray[1])#')
</cfquery>
--- end-------------------------------------


-mike

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to