[MDEV-12060] Crash in EXECUTE IMMEDIATE with an expression returning a GRANT command Created: 2017-02-14 Updated: 2018-06-12 Resolved: 2018-06-12 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Prepared Statements |
| Affects Version/s: | 10.1, 10.2 |
| Fix Version/s: | 10.1.34, 10.2.16, 10.3.8, 10.4.0 |
| Type: | Bug | Priority: | Major |
| Reporter: | Alexander Barkov | Assignee: | Alexander Barkov |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Issue Links: |
|
||||||||
| Sprint: | 10.1.22 | ||||||||
| Description |
|
I create a role and a procedure p1:
Now I create a procedure p2 and execute it. It works fine:
Now I change the procedure body slightly and re-run it. It crashes:
This procedure also crashes:
So does this one:
|
| Comments |
| Comment by Alexander Barkov [ 2017-02-15 ] | |||||||||||||||||||||||
|
The same problem is repeatable in 10.1:
| |||||||||||||||||||||||
| Comment by Alexander Barkov [ 2018-06-11 ] | |||||||||||||||||||||||
|
The same problem is repeatable (in 10.1) with an anonymous block, with a SET STATEMENT..PREPARE, which creates a character set conversion Item at the SET STATEMENT stage:
Note, EXECUTE is not needed. It crashes just with PREPARE:
The problem is also repeatable with SET STATEMENT..EXECUTE:
|