-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
NPE in HqlQueryTransformer.isSubquery
for INSERT from SELECT HQL
#2977
Labels
in: query-parser
Everything related to parsing JPQL or SQL
type: regression
A regression from a previous release
Milestone
Comments
spring-projects-issues
added
the
status: waiting-for-triage
An issue we've not yet triaged
label
May 24, 2023
I've reproduced the same thing using:
This reason this works with Spring Data JPA 3.0 is we didn't introduce the HQL parser until 3.1, so that switches to the old way. |
gregturn
added
type: regression
A regression from a previous release
in: query-parser
Everything related to parsing JPQL or SQL
and removed
status: waiting-for-triage
An issue we've not yet triaged
labels
May 24, 2023
gregturn
added a commit
that referenced
this issue
May 24, 2023
Potentialy subqueries can crop up inside INSERT statements. We need to handle this as well. NOTE: INSERT statements aren't defined in JPQL, so this problem doesn't overlap with standard JPA queries. See #2977
gregturn
added a commit
that referenced
this issue
May 24, 2023
Potentialy subqueries can crop up inside INSERT statements. We need to handle this as well. NOTE: INSERT statements aren't defined in JPQL, so this problem doesn't overlap with standard JPA queries. See #2977
gregturn
added a commit
that referenced
this issue
May 24, 2023
Potentialy subqueries can crop up inside INSERT statements. We need to handle this as well. NOTE: INSERT statements aren't defined in JPQL, so this problem doesn't overlap with standard JPA queries. See #2977
That's merged to |
That was fast, thanks a lot :) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
in: query-parser
Everything related to parsing JPQL or SQL
type: regression
A regression from a previous release
With 3.1.0, repository initialization fails with
when declaring the following named query:
Entities:
Repository:
Reproducer:
demo.zip
Extract and run
./mvnw spring-boot:run
to observe the exception.In the pom.xml, change the
spring-data-jpa.version
from3.1.0
to3.0.6
and run again, now it works.The text was updated successfully, but these errors were encountered: