? Success

User tests: Successful: Unsuccessful:

avatar andrepereiradasilva
andrepereiradasilva
26 Nov 2016

Pull Request for New Issue.

Summary of Changes

If you enable associations in language filter 4.0 bracnh is producing an sql error because of the group by clause.

Related to the more strict ONLY_FULL_GROUP_BY sql_mode added in 4.0 branch (#12494)

Testing Instructions

Mainly code review, but you can also

  • Use 4.0 branch
  • Enable language filter plugin and associations
  • Go to menus -> all menus you get an sql error
  • Apply patch, no error

Documentation Changes Required

None.

avatar andrepereiradasilva andrepereiradasilva - open - 26 Nov 2016
avatar andrepereiradasilva andrepereiradasilva - change - 26 Nov 2016
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 26 Nov 2016
Category Administration com_menus
avatar ggppdk
ggppdk - comment - 26 Nov 2016

I have not tested this or the other similar PRs,
i only want to say, that fixing this is 2 parts

  • 1st part not SQL error occurs
  • 2nd part is making sure that the result of the query gives the desired data and not something else !
avatar ggppdk
ggppdk - comment - 26 Nov 2016

Again without testing, and beside making sure that correct results are given by the modified group-by

The group-by is becoming very big


There must be better solutions than making the groub-by very big

The fact that we need some extra data and we join with tables to get them,

  • this then forces us to add ALL non-aggregated columns into the Group-by because of ONLY_FULL_GROUP_BY

this really seems wasteful, the solution should be (i guess) to use a JOIN with a single subquery that will contain the group-by and which will group-by on a lot less columns ?

avatar andrepereiradasilva
andrepereiradasilva - comment - 26 Nov 2016

@ggppdk i understand your point of view, but the issue here is there is a group by and using ONLY_FULL_GROUP_BY sql mode (4.0) it's not working properly.

So this PR solves that issue.

Any further otimizations on this queries is out of the scope of this PR

avatar ggppdk
ggppdk - comment - 26 Nov 2016

yes, i see,
the views need to work again and possibly revise the queries later,

then i only argue to make a list of the queries that had their group-by enlarged because of the new mode

avatar andrepereiradasilva
andrepereiradasilva - comment - 26 Nov 2016

well ... are being marked by this PRs ?

avatar wilsonge
wilsonge - comment - 21 Dec 2016

Can you rebase this one please?

avatar zero-24 zero-24 - change - 22 Dec 2016
Milestone Added:
avatar andrepereiradasilva
andrepereiradasilva - comment - 2 Jan 2017

@wilsonge done

55c091d 2 Jan 2017 avatar andrepereiradasilva cs
avatar wilsonge wilsonge - change - 15 Jan 2017
Status Pending Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2017-01-15 15:18:50
Closed_By wilsonge
avatar wilsonge wilsonge - close - 15 Jan 2017
avatar wilsonge wilsonge - merge - 15 Jan 2017
avatar wilsonge
wilsonge - comment - 15 Jan 2017

Thanks :)

Add a Comment

Login with GitHub to post a comment