Closed (fixed)
Project:
Views (for Drupal 7)
Version:
7.x-3.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
24 Jul 2010 at 12:13 UTC
Updated:
14 Jan 2011 at 08:40 UTC
Jump to comment: Most recent file
Comments
Comment #1
dawehnerAs you can read in the error message. This feature is not support by dbtng at the moment.
Comment #2
gr33nman commentedThanks for your reply. If this type of input is not helpful, please let me know.
Comment #3
dawehner.
Comment #4
esmerel commentedReally, this is more like "Can't fix", but once dbtng supports it, this might need revisiting.
Comment #5
gr33nman commentedOkay - good to know the limits of views in D7. Thanks.
Comment #6
Unnamed commentedI have a similar problem.
There's concluded views in which the same information.
If I set the value of Distinct: Yes, it appears a similar error:
(D7-dev, Views-dev)
Comment #7
mfer commentedNo field level distinct should have been filed against core. Now that it has this should be postponed until that is fixed. See #975936: No Field Level Distinct Query Support
Comment #8
damien tournoud commentedThis is a Views bug.
*I* added that exception to the code. Column-level distinct is a myth. What Views needs to use is a GROUP BY, and Views needs to decide what to do with the non-grouped fields.
Comment #9
damien tournoud commentedAs Dave Reid pointed out, Views already adds a GROUP BY in that case. Fixing the immediate bug should then be as easy as this.
Comment #10
dawehnerquery->distinct() is never called.
Uncommented the stuff out and moved a bit around.
This works for me.
Just as a notice, groupby and distinct together removes the "distinct"-feature by adding the base field to the groupby.
Comment #11
damien tournoud commentedThe point is: we don't want nor need this. The
add_groupbyis all that matters.Hm. What explains that clicking on this damn checkbox in the UI does something then?
Comment #12
dawehner$this->set_distinct set's $this->distinct
And
needs this flag.
Comment #13
dawehnerSo what about this patch.
Comment #14
mfer commentedDoes this mean no row level distinct support in Views? If not, how will distinct be handled?
Comment #15
Scott Reynolds commentedThis worked great guys, thanks!
Comment #16
dawehnerThanks
Commited to the 7.x branch.