-
Notifications
You must be signed in to change notification settings - Fork 38.6k
Description
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
.