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)

defect
Not set
major

Tracking

()

RESOLVED FIXED
Bugzilla 4.0

People

(Reporter: mkanat, Assigned: mkanat)

References

Details

Attachments

(2 files, 1 obsolete file)

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...
Blocks: pg-xt-search
Target Milestone: --- → Bugzilla 3.6
Flags: blocking4.0?
Flags: blocking3.6.2?
Flags: blocking4.0?
Flags: blocking4.0+
Flags: blocking3.6.2?
Flags: blocking3.6.2+
Attached patch v1Splinter Review
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: query-and-buglist → mkanat
Status: NEW → ASSIGNED
Attachment #456660 - Flags: review+
Attached patch v1 (4.0)Splinter Review
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)
Attached patch v1 (3.6) (obsolete) — Splinter Review
And in 3.6, the "keywords" field still needs to be in GROUP BY.
Attachment #456662 - Flags: review?(LpSolit)
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 on attachment 456661 [details] [diff] [review] v1 (4.0) r=LpSolit
Attachment #456661 - Flags: review?(LpSolit) → review+
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-
Flags: blocking3.6.2+ → blocking3.6.2-
Target Milestone: Bugzilla 3.6 → Bugzilla 4.0
Flags: approval4.0+
Flags: approval+
Attachment #456662 - Attachment is obsolete: true
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.

Attachment

General

Created:
Updated:
Size: