Add MariaDB to the supported database products for procedures and functions #25811
Labels
in: data
Issues in data modules (jdbc, orm, oxm, tx)
status: backported
An issue that has been backported to maintenance branches
type: enhancement
A general enhancement
Milestone
After switching the database driver from
mysql-connector-java
tomariadb-java-client
in one of our applications, stored procedures called withSimpleJdbcCall
no longer worked and failed with an exception likejava.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 calledsupportedDatabaseProductsForProcedures
(which containsMySQL
, but notMariaDB
) soaccessProcedureColumnMetaData
was set tofalse
andinitializeWithProcedureColumnMetaData
was not called on theCallMetaDataProvider
; thus no parameters where added to the procedure call, resulting in theSQLSyntaxErrorException
.So I think
MariaDB
should be added to thesupportedDatabaseProductsForProcedures
.The text was updated successfully, but these errors were encountered: