]> git.koha-community.org Git - koha.git/commit
Bug 18601: OAI/Sets.t mangles data due to truncate in ModOAISetsBiblios
authorMarcel de Rooy <m.de.rooy@rijksmuseum.nl>
Mon, 15 May 2017 07:58:04 +0000 (09:58 +0200)
committerMason James <mtj@kohaaloha.com>
Sun, 30 Jul 2017 13:02:04 +0000 (01:02 +1200)
commit60983fc92937711d239652d08341bd94783493fe
treea69efd16c1888266f1aafeb54fe0a28723777055
parent21f0fae7a48d47a12affe8d7dd12585300c6e417
Bug 18601: OAI/Sets.t mangles data due to truncate in ModOAISetsBiblios

This patch replaces the TRUNCATE statement in ModOAISetsBiblios by a
DELETE statement. A truncate will cause an implicit commit and will
therefore commit the transaction started in the test script.

Also simplifying the module load in the test script.

Test plan:
Do not apply this patch and observe that biblio records are added to your
database by running t/db_dependent/OAI/Sets.t.
Apply this patch, run the test again and verify that it does no longer
add records to your biblio table.

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Josef Moravec <josef.moravec@gmail.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
(cherry picked from commit e0444e8600efbe06016ff857f23ea85893a93041)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
(cherry picked from commit 28928c69376fd25edaee8a7843dc4fd4309f0615)
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
C4/OAI/Sets.pm
t/db_dependent/OAI/Sets.t