]> git.koha-community.org Git - koha.git/commit
Bug 10643: fix inappropriate uses of $sth->finish() in C4::ClassSource.pm
authorroot <root@kenza-VirtualBox>
Thu, 25 Jul 2013 12:03:32 +0000 (14:03 +0200)
committerChris Hall <followingthepath@gmail.com>
Tue, 17 Sep 2013 07:56:36 +0000 (19:56 +1200)
commit662e43c91f6fd625c2b80acd0bfb33c6ea5bcc89
treeda88c894cc85eaef3c678399a366099f8aee46ec
parent098c00da44a12832f12f51be3cd226b912a69e7c
Bug 10643: fix inappropriate uses of $sth->finish() in C4::ClassSource.pm

This patch gets rid of finish() and replace prepare_cached by prepare.

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.

Signed-off-by: Srdjan <srdjan@catalyst.net.nz>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
(cherry picked from commit 5cba6457aa00f3f3b2038f70057df300d9c6b9c3)
Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
(cherry picked from commit cfb48010ad23e50fc93d893963164a17d4208c7b)
Signed-off-by: Bernardo Gonzalez Kriegel <bgkriegel@gmail.com>
(cherry picked from commit cfb48010ad23e50fc93d893963164a17d4208c7b)
Signed-off-by: Chris Hall <followingthepath@gmail.com>
(cherry picked from commit 0a47d3444dfa749f5b9c99252cd129bc80cee54a)
C4/ClassSource.pm