[Koha-bugs] [Bug 33183] Error inserting matchpoint_components when creating record matching rules with MariaDB 10.6
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Thu Mar 9 19:47:12 CET 2023
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33183
Katrin Fischer <katrin.fischer at bsz-bw.de> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #148017|0 |1
is obsolete| |
--- Comment #2 from Katrin Fischer <katrin.fischer at bsz-bw.de> ---
Created attachment 148025
-->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=148025&action=edit
Bug 33183: Error inserting matchpoint_components when creating record matching
rules with MariaDB 10.6
The word "offset" is now a keyword. At the very least we need to escape the
fieldname with backticks. It would be nice to switch to Koha::Objects for this
module eventually.
C4::Matcher::_store_matchpoint(): DBI Exception: DBD::mysql::st execute failed:
You have an error in your SQL syntax; check the manual that corresponds to your
MariaDB server version for the right syntax to use near 'offset, length) VALUES
('27', '1', '999'...' at line 2 at /usr/share/koha/lib/C4/Matcher.pm line 314
Test Plan:
1) Set up Koha with MariaDB 10.6
2) Attempt to create a matching rule
3) Note the error screen
4) Apply this patch
5) Restart all the things!
6) Attempt to create another matching rule
7) No errors this time
Signed-off-by: Katrin Fischer <katrin.fischer.83 at web.de>
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list