[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
Wed Mar 15 16:54:15 CET 2023
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33183
Martin Renvoize <martin.renvoize at ptfs-europe.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #148025|0 |1
is obsolete| |
--- Comment #5 from Martin Renvoize <martin.renvoize at ptfs-europe.com> ---
Created attachment 148222
-->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=148222&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>
Signed-off-by: Martin Renvoize <martin.renvoize at ptfs-europe.com>
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list