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

DATAJPA-1506 - Fix alias detection for native query. #379

Conversation

florianluediger
Copy link
Contributor

@florianluediger florianluediger commented May 9, 2019

When no alias is specified in a native query that does not contain a WHERE clause right after the FROM clause, this is now correctly detected.

Link to Jira Ticket

I have added support for the ORDER BY and GROUP BY clauses because these are fairly common and available in almost every SQL flavor. Should I consider to add more possible clauses like LIMIT?

When no alias is specified in a native query that does not contain a WHERE clause right after the FROM clause, this is now correctly detected.
odrotbohm pushed a commit that referenced this pull request May 9, 2019
When no alias is specified in a native query that does not contain a WHERE clause right after the FROM clause, this is now correctly detected.

Original pull request: #379.
odrotbohm added a commit that referenced this pull request May 9, 2019
Extracted new tests into separate test method. Switch to AssertJ assertions.

Original pull request: #379.
odrotbohm pushed a commit that referenced this pull request May 9, 2019
When no alias is specified in a native query that does not contain a WHERE clause right after the FROM clause, this is now correctly detected.

Original pull request: #379.
odrotbohm added a commit that referenced this pull request May 9, 2019
Extracted new tests into separate test method. Switch to AssertJ assertions.

Original pull request: #379.
odrotbohm pushed a commit that referenced this pull request May 9, 2019
When no alias is specified in a native query that does not contain a WHERE clause right after the FROM clause, this is now correctly detected.

Original pull request: #379.
odrotbohm added a commit that referenced this pull request May 9, 2019
Extracted new tests into separate test method.

Original pull request: #379.
odrotbohm pushed a commit that referenced this pull request May 9, 2019
When no alias is specified in a native query that does not contain a WHERE clause right after the FROM clause, this is now correctly detected.

Original pull request: #379.
odrotbohm added a commit that referenced this pull request May 9, 2019
Extracted new tests into separate test method. Switch to AssertJ assertions.

Original pull request: #379.
odrotbohm added a commit that referenced this pull request May 9, 2019
Extracted new tests into separate test method. Switch to AssertJ assertions.

Original pull request: #379.
odrotbohm added a commit that referenced this pull request May 9, 2019
Extracted new tests into separate test method.

Original pull request: #379.
odrotbohm added a commit that referenced this pull request May 9, 2019
Extracted new tests into separate test method. Switch to AssertJ assertions.

Original pull request: #379.
odrotbohm added a commit that referenced this pull request May 9, 2019
Extracted new tests into separate test method. Switch to AssertJ assertions.

Original pull request: #379.
@odrotbohm odrotbohm self-assigned this May 9, 2019
@odrotbohm
Copy link
Member

Merged, polished and backported. Thanks!

@odrotbohm odrotbohm closed this May 9, 2019
stsypanov pushed a commit to stsypanov/spring-data-jpa that referenced this pull request Dec 13, 2019
When no alias is specified in a native query that does not contain a WHERE clause right after the FROM clause, this is now correctly detected.

Original pull request: spring-projects#379.
stsypanov pushed a commit to stsypanov/spring-data-jpa that referenced this pull request Dec 13, 2019
Extracted new tests into separate test method. Switch to AssertJ assertions.

Original pull request: spring-projects#379.
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.

2 participants