Skip to content

Commit

Permalink
Fix Postgres syntax for NOWAIT
Browse files Browse the repository at this point in the history
  • Loading branch information
ttuegel committed Sep 5, 2023
1 parent e50fed1 commit 47ac437
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Database/Esqueleto/Internal/Internal.hs
Original file line number Diff line number Diff line change
Expand Up @@ -3257,7 +3257,7 @@ makeLocking info (PostgresLockingClauses clauses) =
makeLockingStrength PostgresForShare = plain "FOR SHARE"

makeLockingBehavior :: OnLockedBehavior -> (TLB.Builder, [PersistValue])
makeLockingBehavior NoWait = plain "NO WAIT"
makeLockingBehavior NoWait = plain "NOWAIT"
makeLockingBehavior SkipLocked = plain "SKIP LOCKED"
makeLockingBehavior Wait = plain ""

Expand Down
2 changes: 1 addition & 1 deletion src/Database/Esqueleto/PostgreSQL.hs
Original file line number Diff line number Diff line change
Expand Up @@ -441,7 +441,7 @@ values exprs = Ex.From $ do
, params
)

-- | `NO WAIT` syntax for postgres locking
-- | `NOWAIT` syntax for postgres locking
-- error will be thrown if locked rows are attempted to be selected
--
-- @since 3.5.9.0
Expand Down

0 comments on commit 47ac437

Please sign in to comment.