]> git.koha-community.org Git - koha.git/commit
Bug 33183: Error inserting matchpoint_components when creating record matching rules...
authorKyle Hall <kyle@bywatersolutions.com>
Thu, 9 Mar 2023 16:35:42 +0000 (11:35 -0500)
committerArthur Suzuki <arthur.suzuki@biblibre.com>
Thu, 20 Apr 2023 09:18:22 +0000 (11:18 +0200)
commit9425cc79ec0093f7059cfd5ad60ceb5fc57319f9
treeef3138465205ba6c4ae96227d98d94c899637e93
parent23d1e5d0087f6d7be2c0911e2aeece0b82c99c3b
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@web.de>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
(cherry picked from commit 4628d2e81cf97951e978ae1e18a6939767ad2b09)
Signed-off-by: Matt Blenkinsop <matt.blenkinsop@ptfs-europe.com>
(cherry picked from commit ece005da13e632778c9e5546a5061323e05a4cf0)
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
(cherry picked from commit 021a11f1114b8a3a6bd2c88c7506d86f955e9735)
Signed-off-by: Arthur Suzuki <arthur.suzuki@biblibre.com>
C4/Matcher.pm