Bug 24360 - issues.renewal limits to 127
Summary: issues.renewal limits to 127
Status: NEW
Alias: None
Product: Koha
Classification: Unclassified
Component: Circulation (show other bugs)
Version: unspecified
Hardware: All All
: P5 - low minor (vote)
Assignee: Bugs List
QA Contact: Testopia
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-01-07 11:20 UTC by Jonathan Druart
Modified: 2020-01-07 11:20 UTC (History)
2 users (show)

See Also:
Change sponsored?: ---
Patch complexity: ---
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jonathan Druart 2020-01-07 11:20:37 UTC
Certainly not a big deal but reporting it here anyway.

From a test in t/db_dependent/Circulation/issue.t:

koha_1       | DBD::mysql::st execute failed: Out of range value for column 'renewals' at row 1 [for Statement "UPDATE issues SET date_due = ?, renewals = ?, lastreneweddate = ?
koha_1       |                                 WHERE borrowernumber=?
koha_1       |                                 AND itemnumber=?" with ParamValues: 0='2019-12-24 00:00', 1=128, 2='2019-12-24', 3='494', 4='1266'] at /kohadevbox/koha/C4/Circulation.pm line 2936.

The values for issue has been generated from TestBuilder, which set issues.renewal to 127. However the test calls AddRenewal which increments this value, and we reach the limit.