Skip to content

Commit cdcd3ca

Browse files
authored
Fix docs - pessimistic locking SQL (#10280)
1 parent 53a68fe commit cdcd3ca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

queries.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1447,7 +1447,7 @@ DB::transaction(function () {
14471447
->find(1);
14481448

14491449
$receiver = DB::table('users')
1450-
->lockForUpdate();
1450+
->lockForUpdate()
14511451
->find(2);
14521452

14531453
if ($sender->balance < 100) {

0 commit comments

Comments
 (0)