Created
February 14, 2012 22:53
-
-
Save chrisdpeters/1831365 to your computer and use it in GitHub Desktop.
Full CFScript CFCs Aren’t Yet Where They Need To Be
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
local.queryService = new Query(datasource=get('dataSourceName')); | |
local.queryService.setSql(" | |
SELECT DISTINCT | |
A.* | |
FROM | |
apps A | |
JOIN appgroupmemberships G | |
ON A.id = G.appid | |
WHERE | |
G.usergroupid IN (#local.groupIds#) | |
AND deletedat IS NULL | |
"); | |
local.apps = local.queryService.Execute().GetResult(); |
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
<cfquery datasource="#get('dataSourceName')#" name="local.apps"> | |
SELECT DISTINCT | |
A.* | |
FROM | |
apps A | |
JOIN appgroupmemberships G | |
ON A.id = G.appid | |
WHERE | |
G.usergroupid IN (#local.groupIds#) | |
AND deletedat IS NULL | |
</cfquery> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment