Skip to content

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

@martinlippert

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'

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions