[MDEV-26606] ROW_NUMBER property value isn't passed from inside a stored procedure Created: 2021-09-14 Updated: 2021-10-06 Resolved: 2021-10-06 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Stored routines |
| Affects Version/s: | 10.7.0 |
| Fix Version/s: | 10.7.1 |
| Type: | Bug | Priority: | Critical |
| Reporter: | Elena Stepanova | Assignee: | Rucha Deodhar |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Issue Links: |
|
||||||||||||||||
| Description |
|
ERROR_INDEX value implemented in the scope of
In the test cases below, remember to replace delimiter with the MTR syntax if you run it via MTR
|
| Comments |
| Comment by Rucha Deodhar [ 2021-09-17 ] | ||||||||||||||||||||||||||||||||||||||||
|
Not repeatable anymore after: d552e092c9f3e20da078d1b62b976f629f73d3a4 | ||||||||||||||||||||||||||||||||||||||||
| Comment by Elena Stepanova [ 2021-09-24 ] | ||||||||||||||||||||||||||||||||||||||||
|
It isn't reproducible only because now the default value of ERROR_INDEX is 1, which happens to coincide with the expected value in the test cases from the description (you created another JIRA item to get rid of this confusion). But the complaint remains the same, the value isn't passed from inside a procedure. Try this, for example:
The first output is from inside the procedure, and it shows the correct ERROR_INDEX value 2. But outside, it is 1. | ||||||||||||||||||||||||||||||||||||||||
| Comment by Rucha Deodhar [ 2021-09-25 ] | ||||||||||||||||||||||||||||||||||||||||
|
Patch: https://github.com/MariaDB/server/commit/4156071ebe24fce28bfe8709923b72288928674e | ||||||||||||||||||||||||||||||||||||||||
| Comment by Sergei Golubchik [ 2021-10-06 ] | ||||||||||||||||||||||||||||||||||||||||
|
4156071ebe24 is ok to push. Just fix it to use ROW_NUMBER, and don't forget to do it in the commit comment too (to match the new MDEV title) |