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

JPQL parser can't handle an attribute named "value" #3028

Closed
gregturn opened this issue Jun 15, 2023 · 1 comment
Closed

JPQL parser can't handle an attribute named "value" #3028

gregturn opened this issue Jun 15, 2023 · 1 comment
Assignees
Labels
in: query-parser Everything related to parsing JPQL or SQL type: regression A regression from a previous release

Comments

@gregturn
Copy link
Contributor

A query like select t.value from TestEntity t will generate the following exception:

line 1:9 no viable alternative at input 't.value'

org.springframework.data.jpa.repository.query.BadJpqlGrammarException: Line 1:9 no viable alternative at input 't.value'; Bad JPQL grammar [select t.value from TestEntity t]

NOTE: This works fine in the HQL parser.

@gregturn gregturn added type: regression A regression from a previous release in: query-parser Everything related to parsing JPQL or SQL labels Jun 15, 2023
@gregturn gregturn added this to the 3.1.1 (2023.0.1) milestone Jun 15, 2023
@gregturn gregturn self-assigned this Jun 15, 2023
@gregturn
Copy link
Contributor Author

Merged to main and backported to 3.1.x

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
Projects
None yet
Development

No branches or pull requests

1 participant