]> 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)
committerFridolin Somers <fridolin.somers@biblibre.com>
Thu, 15 Jun 2017 12:14:57 +0000 (14:14 +0200)
commit28928c69376fd25edaee8a7843dc4fd4309f0615
treeeed68acecf8a48132cd08bda36e8316708954a9f
parenta36282ca0b39b2085f1cefabefe15b9552235d70
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>
C4/OAI/Sets.pm
t/db_dependent/OAI/Sets.t