Bugzilla – Attachment 10153 Details for
Bug 8223
Properly format SQL query in C4::Bookseller::GetBookSeller
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 8223 - Properly format SQL query in C4::Bookseller::GetBookSeller
Bug-8223---Properly-format-SQL-query-in-C4Booksell.patch (text/plain), 1.17 KB, created by
Kyle M Hall
on 2012-06-11 08:46:30 UTC
(
hide
)
Description:
Bug 8223 - Properly format SQL query in C4::Bookseller::GetBookSeller
Filename:
MIME Type:
Creator:
Kyle M Hall
Created:
2012-06-11 08:46:30 UTC
Size:
1.17 KB
patch
obsolete
>From 64b0dcc669b7769bcf40a2bf428fad8f0a4a36a8 Mon Sep 17 00:00:00 2001 >From: Kyle M Hall <kyle@bywatersolutions.com> >Date: Mon, 11 Jun 2012 04:45:57 -0400 >Subject: [PATCH] Bug 8223 - Properly format SQL query in C4::Bookseller::GetBookSeller > >--- > C4/Bookseller.pm | 9 ++++++--- > 1 files changed, 6 insertions(+), 3 deletions(-) > >diff --git a/C4/Bookseller.pm b/C4/Bookseller.pm >index 3fded79..a737b71 100644 >--- a/C4/Bookseller.pm >+++ b/C4/Bookseller.pm >@@ -63,9 +63,12 @@ aqbooksellers table in the Koha database. > sub GetBookSeller { > my $searchstring = shift; > $searchstring = q{%} . $searchstring . q{%}; >- my $query = >-'select aqbooksellers.*, count(*) as basketcount from aqbooksellers left join aqbasket ' >- . 'on aqbasket.booksellerid = aqbooksellers.id where name like ? group by aqbooksellers.id order by name'; >+ my $query = " >+ SELECT aqbooksellers.*, count(*) AS basketcount >+ FROM aqbooksellers >+ LEFT JOIN aqbasket ON aqbasket.booksellerid = aqbooksellers.id >+ WHERE name LIKE ? GROUP BY aqbooksellers.id ORDER BY name >+ "; > > my $dbh = C4::Context->dbh; > my $sth = $dbh->prepare($query); >-- >1.7.2.5
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 8223
:
10153
|
10209