Skip to content

[backport] Native query validation defaults to PostgreSQL when MariaDB and H2 driver in class path #1840

Closed

Description

@martinlippert

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 this to the 5.1.1.RELEASE milestone on Mar 12, 2026
  2. added
    for: eclipse
    for: vscode
    on Mar 12, 2026
  3. BoykoAlex commented on Mar 13, 2026

    @BoykoAlex
    Contributor

    PR merged

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