From 90d13965d321d12cf2984a18c4bbcdde210526ab Mon Sep 17 00:00:00 2001 From: Paul Poulain Date: Thu, 19 Apr 2012 10:21:47 +0200 Subject: [PATCH] Revert "Bug 7785: Remove unused function columns() which uses a MySQLism." This reverts commit 1c8df08aea5eb173d7216cdfc9895fdd601a5f11. See: http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=7785#c5 and http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=7975 This patch broke tools/import_borrowers.pl Signed-off-by: Paul Poulain --- C4/Members.pm | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/C4/Members.pm b/C4/Members.pm index 056f7e44cd..6161ac9f30 100644 --- a/C4/Members.pm +++ b/C4/Members.pm @@ -692,6 +692,10 @@ sub GetMemberIssuesAndFines { return ($overdue_count, $issue_count, $total_fines); } +sub columns(;$) { + return @{C4::Context->dbh->selectcol_arrayref("SHOW columns from borrowers")}; +} + =head2 ModMember my $success = ModMember(borrowernumber => $borrowernumber, -- 2.39.5