Skip to content

Native query validation defaults to PostgreSQL when MariaDB and H2 driver in class path #1839

Closed

Description

@alvinthen

Describe the bug
We are invalid VS Code SQL validation for Spring Data native queries after the latest update.

For projects using MariaDB native queries, the extension appears to fall back to PostgreSQL parsing/validation when it cannot find a MySQL connector on the classpath. This results in many false-positive validation errors for valid MariaDB SQL.

From looking at the code, I believe the relevant logic is here:
JdtDataQuerySemanticTokensProvider.java around line 120

We are using the MariaDB java client as follow

runtimeOnly 'org.mariadb.jdbc:mariadb-java-client'

Activity

  1. added
    for: eclipse
    for: vscode
    and removed on Mar 12, 2026
  2. martinlippert commented on Mar 12, 2026

    @martinlippert
    Member

    Candidate for a 5.1.1 patch release:
    #1840

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

Metadata

Metadata

Assignees

Labels

for: eclipsefor: vscodepatch candidatetheme: spring-data-supporttype: bug

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions