diff --git a/src/Database/Esqueleto/Internal/Internal.hs b/src/Database/Esqueleto/Internal/Internal.hs index 4707048e8..e46516e30 100644 --- a/src/Database/Esqueleto/Internal/Internal.hs +++ b/src/Database/Esqueleto/Internal/Internal.hs @@ -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 "" diff --git a/src/Database/Esqueleto/PostgreSQL.hs b/src/Database/Esqueleto/PostgreSQL.hs index 11197b064..3011741b4 100644 --- a/src/Database/Esqueleto/PostgreSQL.hs +++ b/src/Database/Esqueleto/PostgreSQL.hs @@ -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