[Koha-bugs] [Bug 20169] Two tests are failing with DBD::mysql 4.041

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Fri Feb 9 18:32:35 CET 2018


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=20169

--- Comment #1 from Julian Maurice <julian.maurice at biblibre.com> ---
Created attachment 71388
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=71388&action=edit
Bug 20169: Fix two tests when DBD::mysql is 4.041

Tests pass with DBD::mysql 4.028, but not with 4.041. I'm not sure which
exact version makes those tests to fail.

The problem is that with newer versions of DBD::mysql, 'float' columns
get converted to numbers instead of string, thus the comparison fail.

This patch converts the expected values to numbers so the
comparison should succeed with both versions of DBD::mysql

Test plan:
1. Install DBD::mysql 4.041 or newer
2. prove t/db_dependent/Accounts.t t/db_dependent/Bookseller.t

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list