[Koha-bugs] [Bug 26328] New: barcode.pl: ValueBuilder::incremental should cast barcode to unsigned integer
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Tue Sep 1 02:24:31 CEST 2020
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=26328
Bug ID: 26328
Summary: barcode.pl: ValueBuilder::incremental should cast
barcode to unsigned integer
Change sponsored?: ---
Product: Koha
Version: master
Hardware: All
OS: All
Status: NEW
Severity: enhancement
Priority: P5 - low
Component: Cataloging
Assignee: koha-bugs at lists.koha-community.org
Reporter: pablo.bianchi at gmail.com
QA Contact: testopia at bugs.koha-community.org
CC: m.de.rooy at rijksmuseum.nl
When using barcode.pl or barcode_manual.pl:, if a barcode is "85350E65",
because of the "E" the value builder interprets it as having exponential
notation: "8.535e69".
This happens on C4::Barcodes::ValueBuilder::incremental, on get_barcode().
When it says
SELECT MAX(ABS(barcode)) FROM items;
probably should be instead
SELECT MAX(ABS(CAST(barcode AS UNSIGNED))) FROM items;
--
You are receiving this mail because:
You are watching all bug changes.
You are the assignee for the bug.
More information about the Koha-bugs
mailing list