[Koha-bugs] [Bug 23289] Label Template - Creation not working (MariaDB >= 10.2.4)

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Sun Sep 1 21:29:25 CEST 2019


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23289

--- Comment #7 from Jonathan Druart <jonathan.druart at bugs.koha-community.org> ---
Created attachment 92520
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=92520&action=edit
Bug 23289: Quote new 'rows' MariaDB reserved word

Since MariaDB 10.2.4 rows is a reserved word:
https://mariadb.com/kb/en/library/mariadb-1024-release-notes/

"""
New reserved word: ROWS. This can no longer be used as an identifier
without being quoted.
"""

Test plan:
With MariaDB >= 10.2.4, create a new label template.
Also, prove t/db_dependent/Labels/t_Template.t

Without this patch you will get the following SQL error: 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 'rows, creator,
template_code, page_height,

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list