Changeset 7282
- Timestamp:
- Jan 25, 2017, 2:56:04 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3.10-stable/config/dist/mysql-queries.xml
r7259 r7282 87 87 </query> 88 88 89 <query id="PS_FIND_OVERRIDE_ID_FOR_PROJECT_ANNOTATION" type="SQL"> 90 <sql> 91 UPDATE [Annotations] 92 SET [override_id] = COALESCE( 93 (SELECT [tmp].[id] FROM 94 (SELECT [id] FROM [Annotations] 95 WHERE [annotationset_id] = :annotationSetId 96 AND [annotationtype_id] = :annotationTypeId 97 AND [source] = 0 AND [project_id] = 0) [tmp] 98 ) 99 , 0) 100 WHERE id = :annotationId 101 </sql> 102 <description> 103 Updates the "override_id" column on a newly created project-specific 104 (PRIMARY) annotation to point to the existing default annotation id 105 or 0 if no default annotation exists. To make this query work in MySQL 106 we need a double inner subselect to force a temporary table for the 107 single value we are after. 108 </description> 109 </query> 89 110 90 111 </predefined-queries>
Note: See TracChangeset
for help on using the changeset viewer.