Koha-clms/C4
Tomas Cohen Arazi 10f8db2470 Bug 37476: Fix reserved word error on Serials.pm on MySQL 8
This patch fixes the fact `RANK` become a reserved word in MySQL 8.0.2
[1]

To test:
1. Launch KTD with MySQL 8:
   $ ktd down
   $ DB_IMAGE=mysql:8 ktd up -d
2. Open the logs
   $ ktd --shell
  k$ tail -f /var/log/koha/kohadev/*.log
3. Create a serial, receive an issue and try to create a routing list
4. Click on `+ Add recipients` and look for Henry
5. Click `Add` and then `Close`
=> FAIL: Henry not added
=> FAIL: The logs show an error about wrong SQL syntax
6. Run:
  k$ prove t/db_dependent/Serials.t
=> FAIL: Tests explode with the same kind of error!
6. Apply this patch
7. Restart plack
8. Repeat 3 through 6
=> SUCCESS: Henry added!
=> SUCCESS: No explosion about the SQL syntax in the logs
=> SUCCESS: Tests pass!
9. Sign off :-D

[1] https://dev.mysql.com/doc/refman/8.0/en/keywords.html

Signed-off-by: Emily Lamancusa <emily.lamancusa@montgomerycountymd.gov>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
(cherry picked from commit a4b9dcaf61)
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
2024-08-29 16:59:24 +00:00
..
AuthoritiesMarc
…
Barcodes
…
ClassSortRoutine
…
ClassSplitRoutine
…
Creators
…
External
…
Form
…
Heading Bug 36917: (follow-up) Remove Elasticsearch warnings and tidy 2024-05-24 15:36:42 +02:00
ILSDI Bug 28762: (follow-up) Fix missed not_for_loan_status rename 2024-08-28 20:20:34 +00:00
Installer
…
Labels
…
Linker
…
Members
…
OAI
…
Output
…
Patroncards
…
Reports Bug 37508: (QA follow-up) Use ->check_columns 2024-08-12 15:35:15 -03:00
SIP Bug 36948: (follow-up) Allow IPv[46] in port config 2024-07-03 16:17:55 +00:00
Search
…
Serials
…
Utils/DataTables
…
Accounts.pm
…
Acquisition.pm
…
Auth.pm Bug 36940: Resolve two warnings on undefined branchip 2024-07-18 17:48:12 +00:00
Auth_cas_servers.yaml.sample
…
Auth_with_cas.pm
…
Auth_with_ldap.pm Bug 36575: (bug 34893 follow-up) Return patron from LDAP 2024-06-06 10:49:20 +02:00
Auth_with_shibboleth.pm Bug 36575: (QA follow-up) Shibboleth POD and checkpw_internal call 2024-06-06 10:49:20 +02:00
AuthoritiesMarc.pm Bug 35989: (QA follow-up): Fix QA tests 2024-06-27 13:35:23 +00:00
Barcodes.pm
…
Biblio.pm
…
Breeding.pm
…
Budgets.pm
…
Calendar.pm
…
Charset.pm
…
Circulation.pm Bug 37016: Invalid due date in SIP renew response 2024-07-19 14:30:10 +00:00
ClassSortRoutine.pm
…
ClassSource.pm
…
ClassSplitRoutine.pm
…
Context.pm Bug 36793: Fix case of $var in Context->delete_preference 2024-05-17 10:36:34 +02:00
Contract.pm
…
CourseReserves.pm
…
Creators.pm
…
HTML5Media.pm
…
Heading.pm Bug 30047: (follow-up) Fix failing tests 2024-05-13 16:24:18 +02:00
HoldsQueue.pm
…
ImportBatch.pm
…
ImportExportFramework.pm
…
InstallAuth.pm
…
Installer.pm
…
ItemCirculationAlertPreference.pm
…
Items.pm
…
Koha.pm
…
Labels.pm
…
Languages.pm
…
Letters.pm Bug 37198: Improve GetPreparedLetter documentation 2024-07-19 15:32:34 +00:00
Linker.pm
…
Log.pm
…
MarcModificationTemplates.pm
…
Matcher.pm
…
Members.pm
…
Message.pm
…
Output.pm
…
Overdues.pm Bug 36128: Use of uninitialized value in string eq at /usr/share/koha/lib/C4/Overdues.pm 2024-07-19 15:21:50 +00:00
Patroncards.pm
…
Record.pm
…
Reports.pm
…
Reserves.pm
…
Ris.pm
…
RotatingCollections.pm
…
SMS.pm
…
Scheduler.pm
…
Scrubber.pm
…
Search.pm
…
Serials.pm Bug 37476: Fix reserved word error on Serials.pm on MySQL 8 2024-08-29 16:59:24 +00:00
Service.pm
…
ShelfBrowser.pm
…
SocialData.pm
…
Stats.pm
…
Suggestions.pm
…
TTParser.pm
…
Tags.pm Bug 36785: Typo unreconized and bilbio in tags code 2024-05-17 10:36:35 +02:00
Templates.pm
…
TmplToken.pm
…
TmplTokenType.pm
…
UsageStats.pm Bug 26176: (QA follow-up) Branch -> Library 2024-05-23 17:51:18 +02:00
XISBN.pm
…
XSLT.pm
…