Commit c2b3362b authored by Julien Muchembled's avatar Julien Muchembled

CMFActivity: fix merge_parent

- include duplicate (same path)
- escape path with respect to LIKE, both for correctness (although it's
  unlikely to make a difference in practice) and performance (efficient use
  of 'path' index)
parent 9e094fab
......@@ -16,7 +16,9 @@ SELECT uid FROM
message
WHERE
processing_node = 0
AND path LIKE <dtml-sqlvar type="string" expr="path + '/%'">
AND (path = <dtml-sqlvar path type="string">
OR path LIKE <dtml-sqlvar type="string"
expr="path.replace('_', r'\_') + '/%'">)
AND method_id = <dtml-sqlvar method_id type="string">
AND group_method_id = <dtml-sqlvar group_method_id type="string">
FOR UPDATE
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment