[MDEV-10862] Stored procedures: default values for parameters (optional parameters) Created: 2016-09-21 Updated: 2023-11-30 |
|
| Status: | Open |
| Project: | MariaDB Server |
| Component/s: | Data Definition - Procedure, Stored routines |
| Fix Version/s: | None |
| Type: | New Feature | Priority: | Major |
| Reporter: | Karl Levik | Assignee: | Unassigned |
| Resolution: | Unresolved | Votes: | 24 |
| Labels: | Compatibility | ||
| Issue Links: |
|
||||||||
| Description |
|
It would be nice if stored procedures supported parameters with default values. This way, if I need to modify a stored procedure to add more parameters to it, my old code with calls to the SP can continue to work. Also, this missing feature could be a blocker for migrations from other SQL DBMSes to MariaDB. To clarify, I would like to be able to do something like:
This feature exists e.g. in: Note that this is also a long-standing request for MySQL, and users continue to comment on the request to say how useful it would be, e.g. when converting from other DBMSes.
https://bugs.mysql.com/bug.php?id=15975 |
| Comments |
| Comment by Erkki Laaneoks [ 2020-02-18 ] |
|
So an important feature is not implemented. |
| Comment by Tadas Balaišis [ 2020-08-30 ] |
|
I think this issue is stalled because it's unassigned. I wait for it too long. Can someone argue why this feature is still unimplemented? |
| Comment by Karl Levik [ 2020-09-16 ] |
Hi @Tadas Balaišis - I think it simply needs a bit more votes so that whoever decides the roadmap can see it's a popular feature request. |