Skip to content

Commit

Permalink
Fix: drop FROM by mistake
Browse files Browse the repository at this point in the history
  • Loading branch information
Yuji Yamamoto committed May 22, 2019
1 parent 28c7afa commit 097ef4e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion relational-query/src/Database/Relational/Effect.hs
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ sqlWhereFromRestriction config tbl = snd . fromRestriction config tbl

-- | DELETE statement with WHERE clause 'StringSQL' string from 'Restrict' computation.
deleteFromRestriction :: PersistableWidth p => Config -> Table r -> (Record Flat r -> ReadPlaceholders p Restrict ()) -> SQLWithPlaceholderOffsets'
deleteFromRestriction config tbl rs = (\t r -> DELETE <> t <> r) <$> twp <*> rwp
deleteFromRestriction config tbl rs = (\t r -> DELETE <> FROM <> t <> r) <$> twp <*> rwp
where (twp, rwp) = fromRestriction config tbl rs

-- | Show WHERE clause.
Expand Down

0 comments on commit 097ef4e

Please sign in to comment.