[MDEV-15615] Unexpected syntax error instead of "Unknown system variable" inside an SP Created: 2018-03-21 Updated: 2018-03-27 Resolved: 2018-03-27 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Stored routines |
| Affects Version/s: | 10.1, 10.2, 10.3 |
| Fix Version/s: | 10.3.6 |
| Type: | Bug | Priority: | Major |
| Reporter: | Alexander Barkov | Assignee: | Alexander Barkov |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Issue Links: |
|
||||||||||||
| Sprint: | 10.3.6-1 | ||||||||||||
| Description |
|
I run this script, it correctly returns an "Unknown system variable" error:
Now I modify the script slightly: additionally declare a local variable with name a:
The error message looks confusing. The expected error message would be to return "Unknown system variable". |