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

Relax table name detection in from to allow any extension like INDEX hint #35441

Merged
merged 1 commit into from Mar 1, 2019

Conversation

kamipo
Copy link
Member

@kamipo kamipo commented Mar 1, 2019

#35360 allows table name qualified if from has original table name.
But that is still too strict. We have a valid use case that from with
INDEX hint (e.g. from("comments USE INDEX (PRIMARY)")).
So I've relaxed the table name detection in from to allow any
extension like INDEX hint.

Fixes #35359.

…X hint

rails#35360 allows table name qualified if `from` has original table name.
But that is still too strict. We have a valid use case that `from` with
INDEX hint (e.g. `from("comments USE INDEX (PRIMARY)")`).
So I've relaxed the table name detection in `from` to allow any
extension like INDEX hint.

Fixes rails#35359.
@kamipo kamipo merged commit 6568d7d into rails:master Mar 1, 2019
@kamipo kamipo deleted the allow_from_with_index_hint branch March 1, 2019 14:34
kamipo added a commit that referenced this pull request Mar 1, 2019
Relax table name detection in `from` to allow any extension like INDEX hint
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.

None yet

1 participant