[Koha-bugs] [Bug 24883] Command line utility to load yaml files

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Thu Mar 19 16:58:47 CET 2020


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

--- Comment #13 from Bernardo Gonzalez Kriegel <bgkriegel at gmail.com> ---
(In reply to Jonathan Druart from comment #12)
> We got problems with AutoCommit=0 and transactions, and decided to use DBIC
> transactions only. I am surprised however do not have the same results
> between both.

Understood.

Works well, nice to load multiple file in one go, a few qa errors.

Now, the conversion part. 
The problem here is that all values are printed as strings, producing
INSERT INTO marc_tag_structure (
`authorised_value`,`frameworkcode`,`liblibrarian`,`libopac`,`mandatory`,`repeatable`,`tagfield`
) VALUES 
('', '', 'LEADER', 'LEADER', '1', '0', '000'),

instead of
('', '', 'LEADER', 'LEADER', 1, 0, '000'),

A file like this will fail to load with strict mode.

This could be fixed if we declare on each table which fields are numeric, and
take that into account when doing the conversion.
What do you think?

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


More information about the Koha-bugs mailing list