From 19c154b88a111bb2531403401c59c7b7ae9e3dec Mon Sep 17 00:00:00 2001 From: Rob Lambell Date: Sat, 24 Jun 2017 16:24:35 +0100 Subject: [PATCH] detect lock wait timeout as deadlock --- src/Illuminate/Database/DetectsDeadlocks.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Illuminate/Database/DetectsDeadlocks.php b/src/Illuminate/Database/DetectsDeadlocks.php index dcbbd00bbe21..ee034b60fe6c 100644 --- a/src/Illuminate/Database/DetectsDeadlocks.php +++ b/src/Illuminate/Database/DetectsDeadlocks.php @@ -25,6 +25,7 @@ protected function causedByDeadlock(Exception $e) 'database table is locked', 'A table in the database is locked', 'has been chosen as the deadlock victim', + 'Lock wait timeout exceeded; try restarting transaction', ]); } }