We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f6c24af commit b86806eCopy full SHA for b86806e
src/Locker/PostgresAdvisoryLocker.php
@@ -53,7 +53,7 @@ public function tryAcquireLockWithinTransaction(
53
// TODO: Need to sanitize humanReadableValue?
54
$statement = $dbConnection->prepare(
55
<<<SQL
56
- SELECT PG_ADVISORY_XACT_LOCK(:lock_id); -- $postgresLockId->humanReadableValue
+ SELECT PG_TRY_ADVISORY_XACT_LOCK(:lock_id); -- $postgresLockId->humanReadableValue
57
SQL,
58
);
59
$statement->execute(
0 commit comments