Details
-
Bug
-
Status: Closed (View Workflow)
-
Major
-
Resolution: Duplicate
-
10.3(EOL)
-
None
Description
Hello I tried short example to try compatibility of Oracle with MariaDB but it's not work :
sql_mode = Oracle
create or replace function ean_13(P_Str In Varchar2) Return Varchar2 Is
|
l_Sum Number;
|
l_Multiple Number;
|
Begin For I in 1..12 Loop |
If mod(i,2) = 0 Then |
l_Multiple := 3; |
Else l_Multiple := 1; |
End If;
|
l_Sum := Nvl(l_Sum, 0) + Substr(P_Str, i, 1) * l_Multiple; End Loop; |
If Floor(l_Sum/10) - Mod(l_Sum, 10) = Substr(P_Str, 13) Then Return('TRUE'); |
Else Return('FALSE'); |
End If;
|
End; /
|
Attachments
Issue Links
- duplicates
-
MDEV-10654 IN, OUT, INOUT parameters in CREATE FUNCTION
-
- Closed
-
Activity
Field | Original Value | New Value |
---|---|---|
Epic Colour | ghx-label-4 | |
Epic Name | mode = Oracle and Store procedure | |
Epic Status | To Do [ 10100 ] | |
Issue Type | Epic [ 5 ] | Bug [ 1 ] |
Affects Version/s | 10.3 [ 22126 ] |
Component/s | Stored routines [ 13905 ] |
Component/s | Documentation [ 10903 ] | |
Fix Version/s | 10.3 [ 22126 ] | |
Assignee | Alexander Barkov [ bar ] |
Status | Open [ 1 ] | Confirmed [ 10101 ] |
Link |
This issue duplicates |
Fix Version/s | N/A [ 14700 ] | |
Fix Version/s | 10.3 [ 22126 ] | |
Resolution | Duplicate [ 3 ] | |
Status | Confirmed [ 10101 ] | Closed [ 6 ] |
Workflow | MariaDB v3 [ 86283 ] | MariaDB v4 [ 154049 ] |
It appears to be a limitation of the current implementation. There is a separate task for support of IN/OUT for functions, it hasn't been done yet:
MDEV-10654bar, it probably needs to be documented somehow here.