Skip to content

feat(duckdb): DuckDB Server plugin for the v4.0 chassis (MySQL + PostgreSQL) - #6133

Open
renecannao wants to merge 53 commits into
v3.0from
feature/duckdb-server-plugin
Open

feat(duckdb): DuckDB Server plugin for the v4.0 chassis (MySQL + PostgreSQL)#6133
renecannao wants to merge 53 commits into
v3.0from
feature/duckdb-server-plugin

test: link DuckDB TAP bench without libproxysql

de4cce5
Select commit
Loading
Failed to load commit list.
SonarQubeCloud / SonarCloud Code Analysis failed Sep 3, 2026 in 10m 3s

Quality Gate failed

Failed conditions
D Security Rating on New Code (required ≥ A)

See analysis details on SonarQube Cloud

Catch issues before they fail your Quality Gate with our IDE extension SonarQube for IDE

Annotations

Check failure on line 71 in plugins/duckdb/include/duckdb_listener.h

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Add a mutable mutex to class 'DuckDBListener' to guard the mutable field 'mutex_'.

See more on https://sonarcloud.io/project/issues?id=sysown_proxysql&issues=AaBYXzKgPpeKOIzQtCBA&open=AaBYXzKgPpeKOIzQtCBA&pullRequest=6133

Check failure on line 32 in plugins/duckdb/src/duckdb_session.cpp

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Call a function from <locale> instead of a function from <ctype.h>.

See more on https://sonarcloud.io/project/issues?id=sysown_proxysql&issues=AaBCbrTpIYsR4EMGg2vU&open=AaBCbrTpIYsR4EMGg2vU&pullRequest=6133

Check failure on line 122 in plugins/duckdb/src/duckdb_listener.cpp

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove this use of "union".

See more on https://sonarcloud.io/project/issues?id=sysown_proxysql&issues=AaBCbrTyIYsR4EMGg2vf&open=AaBCbrTyIYsR4EMGg2vf&pullRequest=6133

Check failure on line 1009 in lib/sqlite3db.cpp

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Replace the use of "new" with an operation that automatically manages the memory.

See more on https://sonarcloud.io/project/issues?id=sysown_proxysql&issues=AaBYXzMwPpeKOIzQtCBC&open=AaBYXzMwPpeKOIzQtCBC&pullRequest=6133

Check failure on line 123 in test/tap/tests/unit/duckdb_listener_unit-t.cpp

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Replace the use of "new" with an operation that automatically manages the memory.

See more on https://sonarcloud.io/project/issues?id=sysown_proxysql&issues=AaBCbqu5IYsR4EMGg2vG&open=AaBCbqu5IYsR4EMGg2vG&pullRequest=6133

Check failure on line 329 in plugins/duckdb/src/duckdb_session.cpp

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Refactor this code to not nest more than 3 if|for|do|while|switch statements.

See more on https://sonarcloud.io/project/issues?id=sysown_proxysql&issues=AaBYXzI0PpeKOIzQtCA3&open=AaBYXzI0PpeKOIzQtCA3&pullRequest=6133

Check failure on line 348 in plugins/duckdb/src/duckdb_session.cpp

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Refactor this code to not nest more than 3 if|for|do|while|switch statements.

See more on https://sonarcloud.io/project/issues?id=sysown_proxysql&issues=AaBYXzI0PpeKOIzQtCA4&open=AaBYXzI0PpeKOIzQtCA4&pullRequest=6133

Check failure on line 47 in test/tap/tests/unit/duckdb_engine_unit-t.cpp

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Make sure publicly writable directories are used safely here.

See more on https://sonarcloud.io/project/issues?id=sysown_proxysql&issues=AaBfFdO5FDXtqp5Vars1&open=AaBfFdO5FDXtqp5Vars1&pullRequest=6133

Check failure on line 554 in plugins/duckdb/src/duckdb_listener.cpp

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Rewrite the code so that you no longer need this "delete".

See more on https://sonarcloud.io/project/issues?id=sysown_proxysql&issues=AaBCbrTyIYsR4EMGg2vk&open=AaBCbrTyIYsR4EMGg2vk&pullRequest=6133

Check failure on line 211 in plugins/duckdb/src/duckdb_result.cpp

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Refactor this function to reduce its Cognitive Complexity from 31 to the 25 allowed.

See more on https://sonarcloud.io/project/issues?id=sysown_proxysql&issues=AaBhJNKSBGPEAHToUxK-&open=AaBhJNKSBGPEAHToUxK-&pullRequest=6133

Check failure on line 530 in test/tap/tests/test_duckdb_bench-t.cpp

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Rewrite the code so that you no longer need this "delete".

See more on https://sonarcloud.io/project/issues?id=sysown_proxysql&issues=AaBk7p4gu5-z-bmkHjy5&open=AaBk7p4gu5-z-bmkHjy5&pullRequest=6133

Check failure on line 634 in plugins/duckdb/src/duckdb_session.cpp

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Refactor this function to reduce its Cognitive Complexity from 26 to the 25 allowed.

See more on https://sonarcloud.io/project/issues?id=sysown_proxysql&issues=AaBkqAoAdXLyAbOLlNwo&open=AaBkqAoAdXLyAbOLlNwo&pullRequest=6133

Check failure on line 752 in plugins/duckdb/src/duckdb_session.cpp

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Rewrite the code so that you no longer need this "delete".

See more on https://sonarcloud.io/project/issues?id=sysown_proxysql&issues=AaBCbrTpIYsR4EMGg2vc&open=AaBCbrTpIYsR4EMGg2vc&pullRequest=6133

Check failure on line 218 in plugins/duckdb/src/duckdb_result.cpp

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Replace the use of "new" with an operation that automatically manages the memory.

See more on https://sonarcloud.io/project/issues?id=sysown_proxysql&issues=AaBCbrUCIYsR4EMGg2vp&open=AaBCbrUCIYsR4EMGg2vp&pullRequest=6133

Check failure on line 17 in test/tap/tests/unit/duckdb_admin_schema_unit-t.cpp

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Add a nested comment explaining why this method is empty, or complete the implementation.

See more on https://sonarcloud.io/project/issues?id=sysown_proxysql&issues=AaBYXy_3PpeKOIzQtCAz&open=AaBYXy_3PpeKOIzQtCAz&pullRequest=6133

Check failure on line 447 in plugins/duckdb/src/duckdb_listener.cpp

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Replace the use of "new" with an operation that automatically manages the memory.

See more on https://sonarcloud.io/project/issues?id=sysown_proxysql&issues=AaBCbrTyIYsR4EMGg2vl&open=AaBCbrTyIYsR4EMGg2vl&pullRequest=6133

Check failure on line 254 in test/tap/tests/unit/duckdb_listener_unit-t.cpp

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Rewrite the code so that you no longer need this "delete".

See more on https://sonarcloud.io/project/issues?id=sysown_proxysql&issues=AaBCbqu5IYsR4EMGg2vL&open=AaBCbqu5IYsR4EMGg2vL&pullRequest=6133

Check failure on line 363 in plugins/duckdb/src/duckdb_session.cpp

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Refactor this code to not nest more than 3 if|for|do|while|switch statements.

See more on https://sonarcloud.io/project/issues?id=sysown_proxysql&issues=AaBYXzI0PpeKOIzQtCA6&open=AaBYXzI0PpeKOIzQtCA6&pullRequest=6133

Check failure on line 317 in plugins/duckdb/src/duckdb_listener.cpp

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Refactor this function to reduce its Cognitive Complexity from 32 to the 25 allowed.

See more on https://sonarcloud.io/project/issues?id=sysown_proxysql&issues=AaBYXzJSPpeKOIzQtCA9&open=AaBYXzJSPpeKOIzQtCA9&pullRequest=6133

Check failure on line 226 in test/tap/tests/test_duckdb_bench-t.cpp

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Replace the use of "new" with an operation that automatically manages the memory.

See more on https://sonarcloud.io/project/issues?id=sysown_proxysql&issues=AaBk7p4gu5-z-bmkHjyw&open=AaBk7p4gu5-z-bmkHjyw&pullRequest=6133

Check failure on line 78 in plugins/duckdb/src/duckdb_session.cpp

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Replace the use of "new" with an operation that automatically manages the memory.

See more on https://sonarcloud.io/project/issues?id=sysown_proxysql&issues=AaBCbrTpIYsR4EMGg2vV&open=AaBCbrTpIYsR4EMGg2vV&pullRequest=6133

Check failure on line 366 in plugins/duckdb/src/duckdb_session.cpp

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Refactor this code to not nest more than 3 if|for|do|while|switch statements.

See more on https://sonarcloud.io/project/issues?id=sysown_proxysql&issues=AaBYXzI0PpeKOIzQtCA7&open=AaBYXzI0PpeKOIzQtCA7&pullRequest=6133

Check warning on line 86 in test/tap/tests/test_duckdb_e2e_mysql-t.cpp

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Make sure use of "strlen" is safe here.

See more on https://sonarcloud.io/project/issues?id=sysown_proxysql&issues=AaBkqAR8dXLyAbOLlNwn&open=AaBkqAR8dXLyAbOLlNwn&pullRequest=6133

Check failure on line 194 in plugins/duckdb/src/duckdb_listener.cpp

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Explicitly capture "err", "bound" in a non-transient lambda.

See more on https://sonarcloud.io/project/issues?id=sysown_proxysql&issues=AaBCbrTyIYsR4EMGg2vh&open=AaBCbrTyIYsR4EMGg2vh&pullRequest=6133

Check failure on line 211 in plugins/duckdb/src/duckdb_admin_schema.cpp

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Replace this use of "void *" with a more meaningful type.

See more on https://sonarcloud.io/project/issues?id=sysown_proxysql&issues=AaBCbrT6IYsR4EMGg2vo&open=AaBCbrT6IYsR4EMGg2vo&pullRequest=6133