Closed nikhildevre closed 7 years ago
Nevermind. It works as expected.
Yes ideally we would use
myQuery = queryExecute("SELECT
Column1,
Column2
FROM [dbo].[myTable]",{}, {datasource="myDataSource"});
But that is really hard to do generically if you have a query with cfif statements in the SQL, etc. So using the generic syntax still works in those more complicated cases.
Input
` < cfcomponent > < cfset variables.n = 10 > < cffunction name="init" > < cfargument name="number" > < cfset variables.n = arguments.number > < cfreturn this >
`
OUTPUT
`component { variables.n = 10;
} `