Changeset 15628 for branches/HiveProjectManagement/HeuristicLab.Services.Hive.DataAccess/3.3/Daos/AssignedProjectResourceDao.cs
- Timestamp:
- 01/17/18 15:24:44 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HiveProjectManagement/HeuristicLab.Services.Hive.DataAccess/3.3/Daos/AssignedProjectResourceDao.cs
r15577 r15628 107 107 WHERE ProjectId IN ({0}) 108 108 "; 109 // tested 109 110 private const string CheckProjectGrantedForResourcesQueryString = @" 110 111 WITH rtree AS … … 125 126 FROM rtree, [AssignedProjectResource] apr 126 127 WHERE rtree.ParentResourceId = apr.ResourceId 127 AND apr.ProjectId = {0}128 AND apr.ProjectId = '{0}' 128 129 UNION 129 130 SELECT apr.ResourceId 130 131 FROM [AssignedProjectResource] apr 131 WHERE apr.ProjectId = {0}132 WHERE apr.ProjectId = '{0}' 132 133 ) 133 134 "; … … 146 147 WHERE rtree.ParentResourceId = apr.ResourceId 147 148 AND rtree.ResourceId = res.ResourceId 148 AND apr.ProjectId = {0}149 AND apr.ProjectId = '{0}' 149 150 UNION 150 151 SELECT res.* 151 152 FROM [AssignedProjectResource] apr, [Resource] res 152 153 WHERE apr.ResourceId = res.ResourceId 153 AND apr.ProjectId = {0}154 AND apr.ProjectId = '{0}' 154 155 "; 155 156 private const string GetAllGrantedResourceIdsByProjectIdQueryString = @" … … 166 167 FROM rtree, [AssignedProjectResource] apr 167 168 WHERE rtree.ParentResourceId = apr.ResourceId 168 AND apr.ProjectId = {0}169 AND apr.ProjectId = '{0}' 169 170 UNION 170 171 SELECT apr.ResourceId 171 172 FROM [AssignedProjectResource] apr 172 WHERE apr.ProjectId = {0}173 WHERE apr.ProjectId = '{0}' 173 174 "; 174 175 private const string GetAllGrantedResourceIdsOfOwnedParentProjectsQueryString = @"
Note: See TracChangeset
for help on using the changeset viewer.