[Koha-bugs] [Bug 25513] Integer casting in Koha::Object->TO_JSON causes random test failures
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Wed May 27 15:09:27 CEST 2020
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=25513
--- Comment #28 from Tomás Cohen Arazi <tomascohen at gmail.com> ---
Created attachment 105395
-->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=105395&action=edit
Bug 25513: Remove unneeded integer casting in Koha::Object->TO_JSON
This patch removes a problematic integer casting happening in TO_JSON.
The original need for this cast (a DBD::mysql bug) is now fixed. We
remove the cast as it is causing random failures.
To test:
1. Apply the regression tests
2. Run:
$ kshell
k$ prove t/db_dependent/api/v1/acquisitions_orders.t
=> FAIL: Tests fail with select high values (i.e. casting gives wrong
results)
3. Apply this patch
4. Repeat 2
=> SUCCESS: Tests now pass!
5. Sign off :-D
Signed-off-by: Victor Grousset/tuxayo <victor at tuxayo.net>
Signed-off-by: Tomas Cohen Arazi <tomascohen at theke.io>
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list