From 43985e90db4bbf7a936c4ce96306461249ded73c Mon Sep 17 00:00:00 2001
From: Tomas Cohen Arazi <tomascohen@theke.io>
Date: Thu, 25 Jul 2024 14:46:41 -0300
Subject: [PATCH] Bug 36936: (QA follow-up) Make the test work on MySQL 8.x

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
---
 t/db_dependent/api/v1/bookings.t | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/t/db_dependent/api/v1/bookings.t b/t/db_dependent/api/v1/bookings.t
index e616c35d75..27a11a67c8 100755
--- a/t/db_dependent/api/v1/bookings.t
+++ b/t/db_dependent/api/v1/bookings.t
@@ -269,7 +269,7 @@ subtest 'add() tests' => sub {
         $t->post_ok( "//$userid:$password@/api/v1/bookings" => json => $booking )->status_is(409)
             ->json_is( "/error" => "Duplicate booking_id" );
     }
-    qr/DBD::mysql::st execute failed: Duplicate entry '(.*?)' for key 'PRIMARY'/;
+    qr/DBD::mysql::st execute failed: Duplicate entry '(.*?)' for key '(.*\.?)PRIMARY'/;
 
     # TODO: Test bookings clashes
     # TODO: Test item auto-assignment
-- 
2.39.2