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

Fix GROUP BY aggregation alias to not duplicate "_" chars #36876

Merged
merged 1 commit into from
Aug 7, 2019

Conversation

kamipo
Copy link
Member

@kamipo kamipo commented Aug 7, 2019

c9e4c84 has one performance optimization for aggregate_alias to early
returning by aggregate_alias.match?(/\A\w+\z/), but it is caused a
regression that failing deduplication for non word chars #36867.

I've quited the optimization and add a test to prevent a future
regression.

Fixes #36867.

c9e4c84 has one performance optimization for `aggregate_alias` to early
returning by `aggregate_alias.match?(/\A\w+\z/)`, but it is caused a
regression that failing deduplication for non word chars rails#36867.

I've quited the optimization and add a test to prevent a future
regression.

Fixes rails#36867.
@kamipo kamipo merged commit 975a622 into rails:master Aug 7, 2019
@kamipo kamipo deleted the fix_group_by_aggregation_alias branch August 7, 2019 14:20
kamipo added a commit that referenced this pull request Aug 7, 2019
Fix GROUP BY aggregation alias to not duplicate "_" chars
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Rails6.0.0rc2 raises ActiveRecord::StatementInvalid: SQLite3::SQLException
1 participant