Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[DRAFT][BUGFIX] Fix for sql_mode=only_full_group_by #11

Open
wants to merge 1 commit into
base: release/v8-v9
Choose a base branch
from

Conversation

sypets
Copy link

@sypets sypets commented Jan 14, 2020

In newer MySQL versions the query in GlossaryRepository::findAllForIndex()
will fail if sql_mode contains only_full_group_by.

The problem is the ORDER BY clause which does not match the GROUP BY.

Resolves: #10

@svewap
Copy link
Collaborator

svewap commented Jan 14, 2020

Thank you very much. I will check this and merge it.

@sypets sypets force-pushed the sypets/fix-for-only_full_group_by branch from 51bc260 to 0d72e93 Compare January 14, 2020 11:31
@sypets
Copy link
Author

sypets commented Jan 14, 2020

It is not finished. I removed the ordering entirely. The order should be changed to 'char'. Sorry about that. (I initially replaced the Extbase query entirely with QueryBuilder and then changed that back. That's when I forgot to handle the sorting as well.)

@sypets
Copy link
Author

sypets commented Jan 14, 2020

Just replacing the current order with 'char' resulted in an exception. So, it's a little challenge to get this to work, at least for me currently.

I added another PR #12 as an alternative. This will not work for 8.7 (I think) because of the way the language was retrieved.

@sypets sypets changed the title [BUGFIX] Fix for sql_mode=only_full_group_by [DRAFT][BUGFIX] Fix for sql_mode=only_full_group_by Jan 14, 2020
In newer MySQL versions the query in GlossaryRepository::findAllForIndex()
will fail if sql_mode contains only_full_group_by.

The problem is the ORDER BY clause which does not match the GROUP BY.

Resolves: WapplerSystems#10
@sypets sypets force-pushed the sypets/fix-for-only_full_group_by branch from 0d72e93 to 5feeea6 Compare January 14, 2020 13:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 errors on 9.5.9 after upgrade from 8.7.27
2 participants