Question
concatenation messing up SQL query
I have an array of SQL commands that need to get run. To run
them, i'm doing this:
That should work, but for some reason, when the query is ran, all of the ' marks are changed to " marks. I did a dump on the array itself and, in the array, they are all ' marks.
is there a way to either: 1) make sql run the command with " marks, or 2) make the output stop having " marks instead of ' marks?
quote:
<cfloop from="1" to="#arraylen(queries)#" index="i">
<cfquery name="runquery" datasource="mydatasourcehere">
<cfoutput>#queries #</cfoutput>
</cfquery>
</cfloop>
That should work, but for some reason, when the query is ran, all of the ' marks are changed to " marks. I did a dump on the array itself and, in the array, they are all ' marks.
is there a way to either: 1) make sql run the command with " marks, or 2) make the output stop having " marks instead of ' marks?
