Skip to content

Support SPEL expressions inside SQL queries #1270

Closed

Description

@BoykoAlex

Spring Data Query annotations can have SQL if nativeQuery=true is present.
This embedded SQL can have embedded SPEL expressions. Syntax highlighting and validation for such SQL queries isn't working yet (it does for HQL and JPQL though)

Activity

  1. added this to the 4.24.0.RELEASE milestone on Jun 13, 2024
  2. BoykoAlex commented on Jul 17, 2024

    @BoykoAlex
    ContributorAuthor

    MySQL and PostgreSQL is supported with parameters including SPEL. Syntax highlighting and validation. If mysql-connector-* is on the classpath then MySQL support is in action if postgresql is on the classpath then PostgreSQL support is working. If it is nether MySQL nor PostgreSQL then only syntax highlighting for MySQL is active for native queries.
    (See 4361299 and fcbd052)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions