[MDEV-22210] ERROR 1054 Unknown column 'ID' in 'field list' exists on 10.4, but doesn't exist on 10.3 Created: 2020-04-10 Updated: 2020-05-18 Resolved: 2020-05-18 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Stored routines |
| Affects Version/s: | 10.3.22, 10.4.12 |
| Fix Version/s: | N/A |
| Type: | Bug | Priority: | Major |
| Reporter: | Alena Subotina | Assignee: | Elena Stepanova |
| Resolution: | Not a Bug | Votes: | 0 |
| Labels: | need_feedback | ||
| Attachments: |
|
| Description |
| Comments |
| Comment by Elena Stepanova [ 2020-04-13 ] | ||||||||||
|
The error seems to be correct though, isn't it? ID indeed isn't defined in the function/package, and the statement it's used in doesn't refer to any table. The simplified example is this:
In 10.4, it throws an error upon function creation:
but in 10.3 it only throws the error upon function call:
The difference was introduced in 10.4.0. We could find what exactly caused it, there was extensive refactoring in parser and around it, but I'm not sure it makes much sense. The behavior in 10.4 seems to be correct, so there is nothing to fix; but the difference is not critical enough to backport the change to 10.3. |