[MDEV-31250] ROW variables do not get assigned from subselects Created: 2023-05-12 Updated: 2023-09-25 Resolved: 2023-05-12 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Data Manipulation - Subquery, Data types, Stored routines |
| Affects Version/s: | 10.4, 10.5, 10.6, 10.7, 10.8, 10.9, 10.10, 10.11, 11.0, 11.1, 11.2 |
| Fix Version/s: | 10.4.31, 10.5.22, 10.6.15, 10.9.8, 10.10.6, 10.11.5, 11.0.3, 11.1.2 |
| Type: | Bug | Priority: | Critical |
| Reporter: | Alexander Barkov | Assignee: | Alexander Barkov |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Issue Links: |
|
||||||||||||||||||||
| Description |
|
This script using the SELECT..INTO syntax correctly initializes a ROW variable:
so far so good. However if I modify the script slightly and replace SELECT..INTO to an equivalent SET, it does not work:
Another equivalent script with a subselect in the DEFAULT clause of a variable declaration also does not work:
It should be fixed to have the secord and the third script produce equal results to the first script. |