Skip to content

Add MariaDB to the supported database products for procedures and functions #25811

@queueseven

Description

@queueseven

After switching the database driver from mysql-connector-java to mariadb-java-client in one of our applications, stored procedures called with SimpleJdbcCall no longer worked and failed with an exception like java.sql.SQLSyntaxErrorException: Incorrect number of arguments for PROCEDURE foo.bar; expected 12, got 0.

After some investigation I noticed that the CallMetaDataProviderFactory has a list called supportedDatabaseProductsForProcedures (which contains MySQL, but not MariaDB) so accessProcedureColumnMetaData was set to false and initializeWithProcedureColumnMetaData was not called on the CallMetaDataProvider; thus no parameters where added to the procedure call, resulting in the SQLSyntaxErrorException.

So I think MariaDB should be added to the supportedDatabaseProductsForProcedures.

Metadata

Metadata

Assignees

Labels

in: dataIssues in data modules (jdbc, orm, oxm, tx)status: backportedAn issue that has been backported to maintenance branchestype: enhancementA general enhancement

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions