Bug 38944: Fix for Mysql8

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
This commit is contained in:
Jonathan Druart 2025-05-06 16:07:39 +02:00 committed by Katrin Fischer
parent ea8a81fd68
commit cbd53ca899
No known key found for this signature in database
GPG Key ID: 0EF6E2C03357A834
3 changed files with 3 additions and 3 deletions

View File

@ -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(

View File

@ -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;

View File

@ -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(