From 9ca7ab3a57892c6f3af0369dcb3fd839f6841a53 Mon Sep 17 00:00:00 2001 From: fr33domlover Date: Fri, 29 Jul 2016 23:03:01 +0000 Subject: [PATCH] SQL: Remove some =ANY(?) from trr code, left there by mistake --- src/Database/Persist/Sql/Graph/TransitiveReduction.hs | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/Database/Persist/Sql/Graph/TransitiveReduction.hs b/src/Database/Persist/Sql/Graph/TransitiveReduction.hs index 240c5c2..b4624b8 100644 --- a/src/Database/Persist/Sql/Graph/TransitiveReduction.hs +++ b/src/Database/Persist/Sql/Graph/TransitiveReduction.hs @@ -113,8 +113,6 @@ trrSelect proxy = do , "ARRAY[", entityDB tNode ^* fieldDB (entityId tNode), "], " , "FALSE" , " FROM ", dbname $ entityDB tNode - , " WHERE ", entityDB tNode ^* fieldDB (entityId tNode) - , " = ANY(?)" , " UNION ALL " , sqlStep fwd bwd , " )" @@ -197,8 +195,6 @@ trrApply proxy = do , "ARRAY[", entityDB tNode ^* fieldDB (entityId tNode), "], " , "FALSE" , " FROM ", dbname $ entityDB tNode - , " WHERE ", entityDB tNode ^* fieldDB (entityId tNode) - , " = ANY(?)" , " UNION ALL " , sqlStep fwd bwd , " ) DELETE FROM ", dbname $ entityDB tEdge @@ -300,8 +296,6 @@ trrFix edge proxy = do , "ARRAY[", entityDB tNode ^* fieldDB (entityId tNode), "], " , "FALSE, FALSE" , " FROM ", dbname $ entityDB tNode - , " WHERE ", entityDB tNode ^* fieldDB (entityId tNode) - , " IN ?" , " UNION ALL " , sqlStep fwd bwd , " ) DELETE FROM ", dbname $ entityDB tEdge