DrumAt5280
Technical User
I get the following error:
"Using "cachedWithin" or "cachedAfter" in CFQUERY with CFQUERYPARAM is not allowed."
With this query within a CFC:
<cfquery name="GetCs" datasource="#DSN#" CACHEDWITHIN="#CreateTimeSpan(0,0,15,0)#">
SELECT csId, csName, stateAbv
FROM Cs INNER JOIN State ON State.stateId = Cs.stateFk
WHERE csName = <cfqueryparam value='#secondDomain#' cfsqltype='cf_sql_char'>
</cfquery>
I understand that using cfqueryparam is good for security, why won't CF let me use it within my CFC?
"Using "cachedWithin" or "cachedAfter" in CFQUERY with CFQUERYPARAM is not allowed."
With this query within a CFC:
<cfquery name="GetCs" datasource="#DSN#" CACHEDWITHIN="#CreateTimeSpan(0,0,15,0)#">
SELECT csId, csName, stateAbv
FROM Cs INNER JOIN State ON State.stateId = Cs.stateFk
WHERE csName = <cfqueryparam value='#secondDomain#' cfsqltype='cf_sql_char'>
</cfquery>
I understand that using cfqueryparam is good for security, why won't CF let me use it within my CFC?