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

VSCode: Error reported when "CALL {h-schema}" is used in @Query #1395

Open
awn70 opened this issue Oct 28, 2024 · 1 comment
Open

VSCode: Error reported when "CALL {h-schema}" is used in @Query #1395

awn70 opened this issue Oct 28, 2024 · 1 comment
Assignees
Labels

Comments

@awn70
Copy link

awn70 commented Oct 28, 2024

When I use the {h-schema} placeholder in a @query native query with CALL for a stored procedure the following error is shown:
PostgreSQL: no viable alternative at input 'CALLh' vscode-spring-boot(SQL_SYNTAX)

Code:
@Modifying
@query( value = "CALL {h-schema}calcRequest( :i_session_id );", nativeQuery = true )
void calcRequest( @param( "i_session_id" ) String sessionId );

@martinlippert
Copy link
Member

Thanks for reporting this, we will look into this to improve the validation here. In the meantime, you can switch off the query validation in the preferences (if the error is too annoying).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants