The Spring Boot logs with error:
Caused by: org.postgresql.util.PSQLException: ERROR: syntax error at or near "user" when run VirtualAssistantApplication.
This error is caused by "user" being a reserved word in postgresSQL.
Steps
Move to dev branch
Run VirtualAssistantApplication main.
Workaround:
A workaround is to query using quotes. Example:
Select * From "user";
And for this error with springBoot it would be:
@Table(name = "\"user\"")
Another solution is to change the name of the table
Actual Result
Attachement Image1Expected Result
Spring Boot logs without errors.
The Spring Boot logs with error:
Caused by: org.postgresql.util.PSQLException: ERROR: syntax error at or near "user"
when runVirtualAssistantApplication
. This error is caused by "user" being a reserved word in postgresSQL. Stepsdev
branchWorkaround: A workaround is to query using quotes. Example:
Select * From "user";
And for this error with springBoot it would be:@Table(name = "\"user\"")
Another solution is to change the name of the tableActual Result Attachement Image1 Expected Result Spring Boot logs without errors.
Attachments: Image1: