Created
December 12, 2012 14:22
-
-
Save phantom42/4268074 to your computer and use it in GitHub Desktop.
the basic setup of a cfscript version of a query of queries.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// cfscript method of a query of queries | |
// there seems to be no supported way to create a qoq using the more common queryNew() cfscript | |
local.qoqObj = new Query(dbtype='query', sql="select * from qrySource where [sql conditional] ") ; // qrySource is an attribute set below | |
local.qoqObj.setAttributes(qrySource=local.actualSourceQuery) ; // | |
local.qryQoqResults = local.qoqObj.execute().getResult() ; | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment