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

I Found a bug with query #760

Closed
xiaolei123 opened this issue Jun 16, 2023 · 2 comments
Closed

I Found a bug with query #760

xiaolei123 opened this issue Jun 16, 2023 · 2 comments
Assignees

Comments

@xiaolei123
Copy link

myCode

@Query("SELECT * from Current")
Future<List<Current>> getCurrent();

log

Unhandled Exception: Bad state: Unsupported query "SELECT * from Current" for List return type.
 It should be SELECT, since DELETE, UPDATE, INSERT returns `int` type.
@dkaera
Copy link
Collaborator

dkaera commented Jun 16, 2023

Hello @xiaolei123
This problem occurs because Current key is a reserved word by SqlParser. Here is a similar discussion #755 List of reserved keys you can find here

@dkaera dkaera self-assigned this Jun 16, 2023
@dkaera
Copy link
Collaborator

dkaera commented Jul 4, 2023

It seems to have been answered.

@dkaera dkaera closed this as completed Jul 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants