Skip to content

Commit

Permalink
fix removed emptySnippetOnFalse
Browse files Browse the repository at this point in the history
  • Loading branch information
monacoremo committed Apr 11, 2021
1 parent f89bebf commit 2def566
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/PostgREST/Query/SqlFragment.hs
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,6 @@ returningF qi returnings =
limitOffsetF :: NonnegRange -> H.Snippet
limitOffsetF range =
if range == allRange then mempty else "LIMIT " <> limit <> " OFFSET " <> offset
if range /= allRange then "LIMIT " <> limit <> " OFFSET " <> offset else mempty
where
limit = maybe "ALL" (\l -> unknownEncoder (BS.pack $ show l)) $ rangeLimit range
offset = unknownEncoder (BS.pack . show $ rangeOffset range)
Expand Down

0 comments on commit 2def566

Please sign in to comment.