Skip to content

Commit 1952bcb

Browse files
committed
update skipLocked() method for OCI8
1 parent 2598374 commit 1952bcb

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Models/QueueJobModel.php

+4
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,10 @@ private function skipLocked(string $sql): string
100100
return str_replace('WHERE', $replace, $sql);
101101
}
102102

103+
if ($this->db->DBDriver === 'OCI8') {
104+
$sql = "SELECT * FROM ({$sql}) subquery";
105+
}
106+
103107
return $sql .= ' FOR UPDATE SKIP LOCKED';
104108
}
105109

0 commit comments

Comments
 (0)