We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6a67e3a commit 53f4b87Copy full SHA for 53f4b87
lib/closure_tree/hierarchy_maintenance.rb
@@ -94,8 +94,8 @@ def delete_hierarchy_references
94
_ct.connection.execute <<-SQL.strip_heredoc
95
DELETE FROM #{_ct.quoted_hierarchy_table_name}
96
WHERE descendant_id IN (
97
- SELECT DISTINCT descendant_id
98
- FROM (SELECT descendant_id
+ SELECT descendant_id
+ FROM (SELECT DISTINCT descendant_id
99
FROM #{_ct.quoted_hierarchy_table_name}
100
WHERE ancestor_id = #{_ct.quote(id)}
101
OR descendant_id = #{_ct.quote(id)}
0 commit comments