Koha/installer/data/mysql/fr-CA/facultatif/sample_z3950_servers.sql
Jonathan Druart 5ebf75ecd0
Bug 23997: Escape z3950servers.rank as it's a new MySQL 8 kw
This patch will fix installation of Koha on MySQL 8
DBD::mysql::st execute failed: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'rank, syntax, encoding,recordtype) VALUES
('lx2.loc.gov',210,'LCDB','','','LIBRA' at line 2 at /usr/share/perl5/DBIx/RunSQL.pm line 273.

https://dev.mysql.com/doc/refman/8.0/en/keywords.html
=> RANK (R); added in 8.0.2 (reserved)

Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
2019-11-08 11:22:31 +00:00

8 lines
712 B
SQL

INSERT INTO z3950servers
(host, port, db, userid, password, servername, checked, `rank`, syntax, encoding,recordtype) VALUES
('lx2.loc.gov',210,'LCDB','','','Bibliothèque du congrès',1,1,'USMARC','utf8','biblio'),
('lx2.loc.gov',210,'NAF','','','Bibliothèque du congrès NOMS',1,1,'USMARC','utf8','authority'),
('lx2.loc.gov',210,'SAF','','','Bibliothèque du congrès SUJETS',1,2,'USMARC','utf8','authority'),
('amicus.collectionscanada.gc.ca',210,'NL','','','AMICUS',0,0,'USMARC','MARC-8','biblio'),
('catalogue.banq.qc.ca',210,'IRIS','','','BANQ',0,1,'USMARC','MARC-8','biblio'),
('siris-libraries.si.edu',210,'Default','','','Bibliothèques de l''institution Smithsonian',0,0,'USMARC','MARC-8','biblio');