use the function preserveSingleQuotes()
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Thursday, May 18, 2000 12:16 PM
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: RE: dynamic query
> I am trying something which may not be allowed.
>
> <cfset test = "where (City LIKE '#city#'
> or State LIKE '#state#'
> or Availability >= '#SquareFeet#')">
>
> <CFQUERY NAME="search" Datasource="sqft">
> Select * from property
> #test#
> </CFQUERY>
>
> I am getting a 37000 syntax error. I have tried this with
> and without the single quotes and it gets the same error.
Try this:
<CFQUERY NAME="search" DATASOURCE="sqft">
SELECT * FROM PROPERTY
#PreserveSingleQuotes(test)#
</CFQUERY>
Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
voice: (202) 797-5496
fax: (202) 797-5444
----------------------------------------------------------------------------
--
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or
send a message to [EMAIL PROTECTED] with 'unsubscribe' in
the body...
------------------------------------------------------------------------------
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.