To prevent
DBD::mysql::db begin_work failed: Already in a transaction at /usr/share/perl5/DBIx/Class/Storage/DBI.pm line 1588, <GEN45> line 1.
Test plan:
1 - Export more than 100 records
2 - Use bulkmarcimport (with -commit=10) to import them
perl misc/migration_tools/bulkmarcimport.pl -b -file testbmi.xml -v -m=MARCXML --commit=10
3 - Modify a record to make the import fail (for instance having a too long
lccn)
4 - Use bulkmarcimport (with -commit=10) to import them
perl misc/migration_tools/bulkmarcimport.pl -b -file testbmi.xml -v -m=MARCXML --commit=10
5 - Notice that the import stops but that the imported record are imported (apart from the last batch of 10)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
|
||
|---|---|---|
| .. | ||
| 22_to_30 | ||
| ifla | ||
| buildCOUNTRY.pl | ||
| buildEDITORS.pl | ||
| buildLANG.pl | ||
| build_oai_sets.pl | ||
| bulkmarcimport.pl | ||
| checkNonIndexedBiblios.pl | ||
| create_analytical_rel.pl | ||
| fix_onloan.pl | ||
| import_lexile.pl | ||
| koha-svc.pl | ||
| rebuild_zebra.pl | ||
| rebuild_zebra_sliced.sh | ||
| remove_unused_authorities.pl | ||
| switch_marc21_series_info.pl | ||
| upgradeitems.pl | ||