Skip to content

SQL syntax validation #1273

Closed as duplicate
Closed as duplicate

Description

@BoykoAlex

Currently MySQL grammar is used for semantic tokens and syntax validation for the native queries.
However, there are more flavours of SQL available: PostGres, MariaDB, etc (see https://github.com/antlr/grammars-v4/tree/master/sql)

Perhaps an inference can be made from the classpath JARs to indicate which SQL parser should be used... Perhaps we may want to opt out from supporting native query syntax validation completely (too much for a rather limited use case), perhaps the same is true for semantic tokens... The most commonly used ones might be supported and for the rest no syntax validation... TBD

Activity

  1. added
    for: eclipse
    for: vscode
    and removed on Jun 14, 2024
  2. martinlippert commented on Oct 16, 2026

    @martinlippert
    Member

    @BoykoAlex Isn't this more or less solved by the new preference that allows users to define which SQL dialects to use?

  3. BoykoAlex commented on Oct 16, 2026

    @BoykoAlex
    ContributorAuthor

    I'll mark it as fixed as we did introduce a way to pick SQL dialect manually without classpath inference. I have not encountered the case of SQL beyong MySQL or Postgres int terms semantic tokens and sytax validation so far hence i'm closing this as fixed

  4. martinlippert commented on Oct 16, 2026

    @martinlippert
    Member

    The related issue is: #1975

  5. added this to the 5.5.0.RELEASE milestone on Oct 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    for: eclipsefor: vscodetheme: spring-data-supporttype: enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions