Some basic datatypes and functions in oracle compatibility mode do not work (MDEV-19162)

[MDEV-20238] sql_mode="oracle" does not support "DEFAULT" parameters for functions/procedures Created: 2019-08-02  Updated: 2019-09-10

Status: Open
Project: MariaDB Server
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Technical task Priority: Major
Reporter: Faisal Saeed (Inactive) Assignee: Unassigned
Resolution: Unresolved Votes: 1
Labels: Compatibility


 Description   

Following is an example where users can define a DEFAULT parameter which makes it as optional, the user can then call the procedure or the function without passing any value for the default parameters.

SET SQL_MODE=ORACLE;
 
DELIMITER //
create or replace
    procedure default_values(
        p_parm1 varchar2,
        p_parm2 varchar2 default 'AAA',
        p_parm3 varchar2 default 'BBB' ) as
begin
    select param1, param2, param3;
end default_values//
 
DELIMITER ;


Generated at Thu Feb 08 08:57:55 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.