[MDEV-11652] SP with cursors does not work well in combination with ALTER TABLE Created: 2016-12-23 Updated: 2022-12-05 |
|
| Status: | Confirmed |
| Project: | MariaDB Server |
| Component/s: | Data Definition - Alter Table |
| Affects Version/s: | 5.5, 10.0, 10.1, 10.2, 10.3, 10.4, 10.5, 10.6, 10.7, 10.8, 10.9, 10.10 |
| Fix Version/s: | 10.4 |
| Type: | Bug | Priority: | Major |
| Reporter: | Alexander Barkov | Assignee: | Dmitry Shulga |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | None | ||
| Issue Links: |
|
||||||||||||||||
| Description |
|
This script correctly returns an error, as the number of columns in the table (3) does not match the number of fetch variables (2).
Now I drop the column c, to make the number of columns in the table match the number of fetch variables, and re-execute the procedure:
It returns a strange error:
It seems it somehow cached the table structure. Now I exit the session, start a new session and re-execute the procedure.
It correctly returns the results:
|
| Comments |
| Comment by Elena Stepanova [ 2016-12-26 ] |
|
Probably a duplicate of MDEV-774. |