Bugzilla – Attachment 71642 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.07 KB, created by
Julian Maurice
on 2018-02-15 10:19:16 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-15 10:19:16 UTC
Size:
1.07 KB
patch
obsolete
>From 7d325208a7c639efd76cc6ca98f33cb6d1c98e28 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> >Signed-off-by: Julian Maurice <julian.maurice@biblibre.com> >--- > Koha/Patrons.pm | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/Koha/Patrons.pm b/Koha/Patrons.pm >index fe8dd524a1..1e37159d5a 100644 >--- a/Koha/Patrons.pm >+++ b/Koha/Patrons.pm >@@ -162,7 +162,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