>>It's a known bug (for a long time) Actually, there is bug with preserveSingleQuotes(). The problem is only that is is not really a function. First, all it does is to set a flag to tell CFQUERY not to escape single quotes in the variable passed in parameter. Then, calling it from outside a CFQUERY tag won't do nothing. Secondly, the parameter passed to preserveSingleQuotes must be a variable, not an expression nor directly a string. Thus preserveSingleQuotes(left(mystring, 10)) won't work. If it did, and if it also worked outside the CFQUERY tag, it could be regarded a true function.
The bug is actually in the deficiency of the documentation which does not explains this clearly at all. -- _______________________________________ REUSE CODE! Use custom tags; See http://www.contentbox.com/claude/customtags/tagstore.cfm (Please send any spam to this address: [EMAIL PROTECTED]) Thanks. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered to your door four times a year. http://www.fusionauthority.com/quarterly Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:253880 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

