Is it possiblt to Use <cfif>
inside <cfquery>
?
I have a <cfquery>
in a Function like below
<cfquery name = "UpdateRecord"
dataSource = #arguments.dbSource#
username = #arguments.dbUser#
password = #arguments.dbPass#
result="updateResult" >
<cfoutput>#preserveSingleQuotes(arguments.updateQuery)#/cfoutput>
</cfquery>
I want to check for TimeoutArgument and make it like below
<cfquery name = "UpdateRecord"
dataSource = #arguments.dbSource#
username = #arguments.dbUser#
password = #arguments.dbPass#
timeout = #arguments.Timeout#>
result="updateResult" >
<cfoutput>#preserveSingleQuotes(arguments.updateQuery)#/cfoutput>
</cfquery>
Timeout is Optional argument, I wan to make 1st query like second query if only Timeout is passed. How can I do that?
Thanks,