Bug 24590: Fix Koha/Object.t on MySQL 8
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Wed, 5 Feb 2020 09:36:14 +0000 (10:36 +0100)
committerLucas Gass <lucas@bywatersolutions.com>
Mon, 9 Mar 2020 17:16:32 +0000 (17:16 +0000)
commit649c0b2df7e288488fe016408f90440041ff59fb
tree28197e41fc2623bff5c91285adb45dd8f69eb2ef
parent444a9b435d5ac571ff4147382594369f20bee479
Bug 24590: Fix Koha/Object.t on MySQL 8

% prove t/db_dependent/Koha/Object.t
is failing on MySQL 8 with:

 kohadev-koha@9bbf9ac68519:/kohadevbox/koha$ prove t/db_dependent/Koha/Object.t
 t/db_dependent/Koha/Object.t .. 15/18
     #   Failed test 'Exception field is correct'
     #   at t/db_dependent/Koha/Object.t line 650.
     #          got: 'api_keys.secret'
     #     expected: 'secret'
     # Looks like you failed 1 test of 16.
 t/db_dependent/Koha/Object.t .. 16/18
 #   Failed test 'store() tests'
 #   at t/db_dependent/Koha/Object.t line 723.

MySQL 8 displays the tablename in the error.

Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Joy Nelson <joy@bywatersolutions.com>
(cherry picked from commit d5cd348c27b0c0d18474d11a8b78d1e2468f9a7a)

Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
t/db_dependent/Koha/Object.t