Bugzilla – Attachment 97181 Details for
Bug 24396
Suggestions.t is failing with MySQL 8
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 24396: Fix Suggestions.t with MySQL 8
Bug-24396-Fix-Suggestionst-with-MySQL-8.patch (text/plain), 1.19 KB, created by
Martin Renvoize (ashimema)
on 2020-01-10 10:41:27 UTC
(
hide
)
Description:
Bug 24396: Fix Suggestions.t with MySQL 8
Filename:
MIME Type:
Creator:
Martin Renvoize (ashimema)
Created:
2020-01-10 10:41:27 UTC
Size:
1.19 KB
patch
obsolete
>From 8a75d61823c9b0a491567a3d7b59bc59a33aebe7 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Fri, 10 Jan 2020 11:29:15 +0100 >Subject: [PATCH] Bug 24396: Fix Suggestions.t with MySQL 8 > > # Failed test 'DelSuggestion deletes the correct suggestion' > # at t/db_dependent/Suggestions.t line 413. > # got: 'my title 3' > # expected: 'my deleted title' > t/db_dependent/Suggestions.t .. 112/113 # Looks like you failed 1 test of 113. > >Suggestions were returned in the reverse order. Adding an ORDER BY clause fixes the problem. > >Test plan: > % prove t/db_dependent/Suggestions.t >must return green > >Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> >--- > C4/Suggestions.pm | 1 + > 1 file changed, 1 insertion(+) > >diff --git a/C4/Suggestions.pm b/C4/Suggestions.pm >index 23f6d826e2..8157e59024 100644 >--- a/C4/Suggestions.pm >+++ b/C4/Suggestions.pm >@@ -353,6 +353,7 @@ sub GetSuggestionByStatus { > LEFT JOIN categories AS C1 ON C1.categorycode=U1.categorycode > LEFT JOIN branches AS B1 on B1.branchcode=U1.branchcode > WHERE status = ? >+ ORDER BY suggestionid > }; > > # filter on branch >-- >2.20.1
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 24396
:
97176
| 97181