From 75dfba987697fc6e9c3e7ffbf829d7c8ff268793 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Tue, 6 May 2025 16:07:39 +0200 Subject: [PATCH] Bug 38944: Fix for Mysql8 Signed-off-by: Jonathan Druart --- t/db_dependent/Koha/Object.t | 2 +- t/db_dependent/Koha/Patron.t | 2 +- t/db_dependent/Koha/Patron/Relationship.t | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/t/db_dependent/Koha/Object.t b/t/db_dependent/Koha/Object.t index 21d72c21db7..a98357f757f 100755 --- a/t/db_dependent/Koha/Object.t +++ b/t/db_dependent/Koha/Object.t @@ -1000,7 +1000,7 @@ subtest 'store() tests' => sub { 'Koha::Exceptions::Object::DuplicateID', 'Exception is thrown correctly'; }, - qr{Duplicate entry.* for key 'title'} + qr{Duplicate entry.* for key '(library_groups\.)?title'} ); is( diff --git a/t/db_dependent/Koha/Patron.t b/t/db_dependent/Koha/Patron.t index dc2ed4dca07..e908706c8b5 100755 --- a/t/db_dependent/Koha/Patron.t +++ b/t/db_dependent/Koha/Patron.t @@ -405,7 +405,7 @@ subtest 'add_guarantor() tests' => sub { 'Koha::Exceptions::Patron::Relationship::DuplicateRelationship', 'Exception is thrown for duplicated relationship'; }, - qr{Duplicate entry.* for key 'guarantor_guarantee_idx'} + qr{Duplicate entry.* for key '(borrower_relationships\.)?guarantor_guarantee_idx'} ); $schema->storage->txn_rollback; diff --git a/t/db_dependent/Koha/Patron/Relationship.t b/t/db_dependent/Koha/Patron/Relationship.t index 45601294159..b0e0c581c89 100755 --- a/t/db_dependent/Koha/Patron/Relationship.t +++ b/t/db_dependent/Koha/Patron/Relationship.t @@ -117,7 +117,7 @@ subtest 'store() tests' => sub { 'Koha::Exceptions::Patron::Relationship::DuplicateRelationship', 'Exception is thrown for duplicated relationship'; }, - qr{Duplicate entry.* for key 'guarantor_guarantee_idx'} + qr{Duplicate entry.* for key '(borrower_relationships\.)?guarantor_guarantee_idx'} ); is( -- 2.34.1