[MDEV-17387] MariaDB Server giving wrong error while executing select query from procedure Created: 2018-10-08 Updated: 2020-08-25 Resolved: 2018-11-09 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Data Definition - Procedure |
| Affects Version/s: | 10.3.8 |
| Fix Version/s: | 10.3.11 |
| Type: | Bug | Priority: | Major |
| Reporter: | Nilnandan Joshi | Assignee: | Alexander Barkov |
| Resolution: | Fixed | Votes: | 1 |
| Labels: | None | ||
| Environment: |
compatibility 10.2.14 build 21251 |
||
| Description |
|
While running procedure from package, it's giving an exception
Where even there is no record in the table which is accessed from the procedure.
Affected Versions: MariaDB 10.2.4 build (21251) and MariaDB 10.3 |
| Comments |
| Comment by Alice Sherepa [ 2018-10-08 ] | |||||||||||||||||||||||||||||||||||||||||||
|
| |||||||||||||||||||||||||||||||||||||||||||
| Comment by Alexander Barkov [ 2018-11-08 ] | |||||||||||||||||||||||||||||||||||||||||||
|
A smaller script demonstrating the same problem:
Note, if I comment the cursor declaration and uncomment an alternative cursor declaration (with IGNORE INDEX clause added), the warning goes away. | |||||||||||||||||||||||||||||||||||||||||||
| Comment by Alexander Barkov [ 2018-11-08 ] | |||||||||||||||||||||||||||||||||||||||||||
|
The same problem is repeatable with a standalone procedure:
|