I have a simple search query:
<cfquery name="_qSearch" dbtype="Query">
SELECT
*
FROM MyQoQ
WHERE
DESCRIPTION LIKE '%#URL.searchString#%'
</cfquery>
This query works excellently for most values. However, if someone searches for a value like "xxx[en"
, it bombs with the error message The pattern of the LIKE conditional is malformed.
.
Is there any way around this, since the bracket has a special use in CFQUERY?