]> git.koha-community.org Git - koha.git/commit
Bug 10642: fix inappropriate uses of $sth->finish() in C4::RotatingCollections.pm
authorroot <root@kenza-VirtualBox>
Thu, 25 Jul 2013 11:47:09 +0000 (13:47 +0200)
committerChris Hall <followingthepath@gmail.com>
Mon, 21 Oct 2013 19:39:06 +0000 (08:39 +1300)
commit4b7a656f4a7545a2e9387b2548d64188fdd8a1b4
treea75ab97b8fd66fa18d72e40be3363ee04392c683
parent0cd6eaad35ca710d1eb23ccf9350490b9e288b36
Bug 10642: fix inappropriate uses of $sth->finish() in C4::RotatingCollections.pm

From the man page

finish()
Indicate that no more data will be fetched from this statement handle
before it is either executed again or destroyed.
You almost certainly do not need to call this method.

Adding calls to "finish" after loop that fetches all rows is a common
mistake, don't do it, it can mask genuine problems like uncaught fetch errors.

To test:

Verify that prove -v t/db_dependent/RotatingCollections.t passes

Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Passes koha-qa.pl, passes UT provided by bug 10653

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
(cherry picked from commit d1b3e4ab6b432844e076e1eb0662a9c04a5f412e)
Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
(cherry picked from commit 0311e39c269291156f82393fbb7269caab7b679e)
Signed-off-by: Bernardo Gonzalez Kriegel <bgkriegel@gmail.com>
(cherry picked from commit 0311e39c269291156f82393fbb7269caab7b679e)
Signed-off-by: Chris Hall <followingthepath@gmail.com>
(cherry picked from commit 38e8a13b6ba331207dc7451c676e6aa868e14e79)
C4/RotatingCollections.pm