is it possible (or maybe will it be?) to use polymorphism in CREATE PACKAGE
and CREATE PACKAGE BODY
statements in MariaDB?
This is due to a migration of some package from Oracle to MariaDB. I have to recode some parts but I cannot change names (i.e. I should change every call to the new-named procedures in the rest of the software to migrate).
Example (set @@sql_mode already called):
create package P as
procedure X (par1 INT)
procedure X (par2 VARCHAR, par3 INT)
function F (par1 INT) return INT
function F (par2 VARCHAR) return VARCHAR
end;
At the moment, of course, the statement execution fails with error:
ERROR 1304 (42000) at line 3 in file: 'filename.sql': PROCEDURE P.X already exists
Thank you all.
Configuration: Oracle Virtualbox - Mariadb 10.6.4, Xubuntu 20.4.3 LTS