Closed
Bug 577602
Opened 15 years ago
Closed 15 years ago
[PostgreSQL] Can't use multi-selects as buglist columns
Categories
(Bugzilla :: Query/Bug List, defect)
Tracking
()
RESOLVED
FIXED
Bugzilla 4.0
People
(Reporter: mkanat, Assigned: mkanat)
References
Details
Attachments
(2 files, 1 obsolete file)
825 bytes,
patch
|
mkanat
:
review+
|
Details | Diff | Splinter Review |
824 bytes,
patch
|
LpSolit
:
review+
|
Details | Diff | Splinter Review |
Trying to use a custom multi-select as a buglist column fails on PostgreSQL with the error:
ERROR: aggregates not allowed in GROUP BY clause
LINE 1: ...bugs.bug_id AS bug_id, array_to_string(array_sort(array_accu...
Assignee | ||
Updated•15 years ago
|
Blocks: pg-xt-search
Target Milestone: --- → Bugzilla 3.6
![]() |
||
Updated•15 years ago
|
Flags: blocking4.0?
Flags: blocking3.6.2?
Assignee | ||
Updated•15 years ago
|
Flags: blocking4.0?
Flags: blocking4.0+
Flags: blocking3.6.2?
Flags: blocking3.6.2+
Assignee | ||
Comment 1•15 years ago
|
||
This fixes it and is verified as working by xt/search.t. Those columns shouldn't have been in the GROUP BY on any platform--I guess MySQL just wasn't complaining for some reason.
It will require a very minor backportt for 3.6 ("keywords" does in fact belong in GROUP BY in 3.6).
Assignee | ||
Comment 2•15 years ago
|
||
Actually, turns out it requires a backport for 4.0 and 3.6 both, because 4.2 has $multi_select_fields where 4.0 has @multi_select_fields.
Attachment #456661 -
Flags: review?(LpSolit)
Assignee | ||
Comment 3•15 years ago
|
||
And in 3.6, the "keywords" field still needs to be in GROUP BY.
Attachment #456662 -
Flags: review?(LpSolit)
Assignee | ||
Comment 4•15 years ago
|
||
I went ahead and checked this in on trunk, since xt/search.t shows it's working just fine and I have ownership on trunk. (And I want to continue with any other required search.t fixes, but I can't until this is checked in.)
However, the branch backports still need review.
Committing to: bzr+ssh://bzr.mozilla.org/bugzilla/trunk/
modified Bugzilla/Search.pm
Committed revision 7322.
![]() |
||
Comment 5•15 years ago
|
||
Comment on attachment 456661 [details] [diff] [review]
v1 (4.0)
r=LpSolit
Attachment #456661 -
Flags: review?(LpSolit) → review+
![]() |
||
Comment 6•15 years ago
|
||
Comment on attachment 456662 [details] [diff] [review]
v1 (3.6)
Custom multi-select fields are not allowed in buglists in 3.6.
Attachment #456662 -
Flags: review?(LpSolit) → review-
![]() |
||
Updated•15 years ago
|
Flags: blocking3.6.2+ → blocking3.6.2-
Target Milestone: Bugzilla 3.6 → Bugzilla 4.0
![]() |
||
Updated•15 years ago
|
Flags: approval4.0+
Flags: approval+
Assignee | ||
Updated•15 years ago
|
Attachment #456662 -
Attachment is obsolete: true
Assignee | ||
Comment 7•15 years ago
|
||
Committing to: bzr+ssh://bzr.mozilla.org/bugzilla/4.0/
modified Bugzilla/Search.pm
Committed revision 7314.
Status: ASSIGNED → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•