Ask a Question related to Coldfusion Server Administration, Design and Development.
-
Ebeneezer #1
MX7 Double Quote
I just upgraded to MX7.
CFQUERY using where x = "sam" used to work & now the double quotes are being
treated as escape characters. I don't want to have to change all of the double
quotes to single quotes in the SQL statements throughout my project.
Any help would be appreciated.
Ebeneezer Guest
-
double single quote problem in cfquery
Hi, i've this problem with ColdFusion MX 6.1 Updater and MX 7 If i try to insert a text containing a single quote (for example TEST') all works... -
Variable double quoting in SQL query when should besingle quote
Hi Anna Try using the PreseveSingleQuotes function. ie. WHERE Town in ('#PreseveSingleQuotes(TownList)#') HTH Zoe -
INSERT with double quote?
If I wanted to insert/update a field with data like this: "This is my data" How would I go about doing that? I have found that I can escape... -
Ouptutting a double quote to a form field value with ASP
If rs("MyString") is Hello "Jim" Lad <input type=text value="<%=rs("MyString")%>"> prints as <input type=text value=" Hello "Jim" Lad"> How... -
Double quote issue.
change execute.program = "c:\run.bat -var1='"& var1 &"' -var2='"& var2 &"'" to execute.program="c:\run.bat -var1=""" & var1 & """ -var2=""" &... -
ToeJam #2
Re: MX7 Double Quote
Use cfqueryparam for security and you won't need the quotes anymore unless it
is part of your data.
WHERE COLName = <cfqueryparam value = "sam" cfsqltype = "varchar">
See the docs for all the options incuding using lists!
ToeJam Guest
-
ToeJam #3
Re: MX7 Double Quote
You may also be able to use PreserveSingleQuotes as copied from help file
example:
<cfquery name = "GetCenters" datasource = "cfsnippets">
SELECT Name, Address1, Address2, City, Phone
FROM Centers
WHERE City IN (#PreserveSingleQuotes(List)#)
</cfquery>
ToeJam Guest
-
Ebeneezer #4
Re: MX7 Double Quote
Thanks for the suggestions. I'm looking for a setting probably for the driver
that will allow the java engine and/or the database to handle double quotes in
SQL statements. It worked in CF5 so there must be some way to do it in MX.
Ebeneezer Guest



Reply With Quote

