[MDEV-15097] Stored procedures are unaware of metadata changes Created: 2018-01-27 Updated: 2020-08-25 Resolved: 2018-01-27 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Stored routines |
| Affects Version/s: | 10.2.12, 10.3.4 |
| Fix Version/s: | N/A |
| Type: | Bug | Priority: | Major |
| Reporter: | Hartmut Holzgraefe | Assignee: | Unassigned |
| Resolution: | Duplicate | Votes: | 0 |
| Labels: | None | ||
| Issue Links: |
|
||||||||
| Description |
|
In MySQL 5.6 stored routines are aware of metadata changes, and automatic re-prepare happens in a similar fashion as with prepared statements, see e.g.: http://alexandernozdrin.blogspot.de/2012/09/mysql-56-handling-metadata-changes-in.html MariaDB stored procedures are not aware of metadata changes though. Example: Setup:
Now calling the procedure again in the same session
MariaDB does not notice the schema change though, and so the procedure still returns only one column instead of two when called from the same session as before:
|
| Comments |
| Comment by Elena Stepanova [ 2018-01-27 ] |
|
hholzgra, |
| Comment by Hartmut Holzgraefe [ 2018-01-27 ] |
|
Ah ... didn't find that one ... perfectly ok to close this one as duplicate. |