https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38342 Bug ID: 38342 Summary: Koha::Object->store warning on invalid ENUM value Change sponsored?: --- Product: Koha Version: Main Hardware: All OS: All Status: NEW Severity: minor Priority: P5 - low Component: Architecture, internals, and plumbing Assignee: koha-bugs@lists.koha-community.org Reporter: tomascohen@gmail.com QA Contact: testopia@bugs.koha-community.org Bug 38175 introduced handling for truncated enum values. But the exception that is thrown is missing a parameter, and as such prints a warning when stringifying the exception. To test: 1. On KTD, run: $ ktd --shell k$ prove t/db_dependent/Koha/Booking.t => FAIL: There's: ``` DBIx::Class::Storage::DBI::_dbh_execute(): DBI Exception: DBD::mysql::st execute failed: Data truncated for column 'status' at row 1 at /kohadevbox/koha/Koha/Object.pm line 172 Use of uninitialized value in sprintf at /kohadevbox/koha/Koha/Exceptions/Object.pm line 84. Use of uninitialized value in sprintf at /kohadevbox/koha/Koha/Exceptions/Object.pm line 84. ok 1 - Throws exception when passed booking status would fail enum constraint ``` The 'Use of initialized...' ones are not correct. -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes.