Bugzilla – Attachment 71475 Details for
Bug 20182
Remove group by clause in search_patrons_to_anonymise
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 20182: [sql_modes] Remove group by clause in search_patrons_to_anonymise
Bug-20182-sqlmodes-Remove-group-by-clause-in-searc.patch (text/plain), 1.01 KB, created by
Julian Maurice
on 2018-02-12 14:30:40 UTC
(
hide
)
Description:
Bug 20182: [sql_modes] Remove group by clause in search_patrons_to_anonymise
Filename:
MIME Type:
Creator:
Julian Maurice
Created:
2018-02-12 14:30:40 UTC
Size:
1.01 KB
patch
obsolete
>From 3313f580154eb45ef7c90d0c70917817f34c3534 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Mon, 5 Feb 2018 17:06:55 -0300 >Subject: [PATCH] Bug 20182: [sql_modes] Remove group by clause in > search_patrons_to_anonymise > >Not trivial, more attention needed on this one! > >Fix for: >'koha_kohadev.me.cardnumber' isn't in GROUP BY > >Looks like the query is complexified, perf tests needed, see bug 19599. > >Signed-off-by: Josef Moravec <josef.moravec@gmail.com> >--- > Koha/Patrons.pm | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/Koha/Patrons.pm b/Koha/Patrons.pm >index fd2b997583..d33fddfc63 100644 >--- a/Koha/Patrons.pm >+++ b/Koha/Patrons.pm >@@ -141,7 +141,7 @@ sub search_patrons_to_anonymise { > ( $library ? ( 'old_issues.branchcode' => $library ) : () ), > }, > { join => ["old_issues"], >- group_by => 'borrowernumber' >+ distinct => 1, > } > ); > return Koha::Patrons->_new_from_dbic($rs); >-- >2.14.2
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 20182
:
71475
|
71642