To be honest(does anyone ever say "to be a liar"?!), I'm too busy writing out columns names to read your email correctly, but have a play about with PreserveSingleQuotes()
Adrian -----Original Message----- From: Denny Valliant [mailto:[EMAIL PROTECTED] Sent: 16 April 2006 04:55 To: CF-Talk Subject: Query o Queries and apost's While I'm thinking about it, has anyone seen a weird thing with QoQs, where if you are using generated SQL ( like so: <cfquery name="qoq" dbtype="query"> #someSQL# </cfquery> ) You get strange extra apostrophes? I say strange because doing <cfset someSQL = replace(someSQL,"'","","ALL")> doesn't work, (there aren't any extra apostrophes in the first place) but <cfquery name="qoq" dbtype="query"> #replace(someSQL,"'","","ALL")# </cfquery> does? I.E. the extra 's only get added within the <cfquery> tag? (Pretend I have correct ordering of vars in replace ;-)) I think it just must be a brain-fart somewhere along the line... I haven't seen anything like it via google, so I figure, it's on this end. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:237832 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54