[MDEV-33399] Package variables return a wrong result when changed inside a function Created: 2024-02-07 Updated: 2024-02-07 |
|
| Status: | Open |
| Project: | MariaDB Server |
| Component/s: | Stored routines |
| Affects Version/s: | 10.5, 10.6, 10.7, 10.8, 10.9, 10.10, 10.11, 11.0, 11.1, 11.2, 11.3, 11.4, 11.5 |
| Fix Version/s: | 10.5, 11.5 |
| Type: | Bug | Priority: | Major |
| Reporter: | Alexander Barkov | Assignee: | Unassigned |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | None | ||
| Issue Links: |
|
||||||||||||||||
| Description |
|
I create the following package in Oracle-19.0 and call its procedure:
Now I create the same package in MariaDB (in Oracle compatibility mode) and call its procedure:
Notice, it returns a different result. |
| Comments |
| Comment by Alexander Barkov [ 2024-02-07 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
If I slightly change the script for Oracle-19.0 as follows, it still returns the same result with the first script version for Oracle:
If I change the script for MariaDB the same way, it returns a different result (comparing to Oracle and comparing to the first MariaDB script):
|