[MDEV-11584] GRANT inside an SP does not work well on 2nd execution Created: 2016-12-16 Updated: 2016-12-28 Resolved: 2016-12-28 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Authentication and Privilege System, Prepared Statements, Stored routines |
| Affects Version/s: | 10.1.20, 10.2 |
| Fix Version/s: | 10.1.21, 10.2.4 |
| Type: | Bug | Priority: | Major |
| Reporter: | Alexander Barkov | Assignee: | Oleksandr Byelkin |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Sprint: | 10.2.4-5 |
| Description |
|
I run this script:
It seems to work fine.
|
| Comments |
| Comment by Elena Stepanova [ 2016-12-17 ] | ||||||
|
Same with prepared statements. MySQL 5.5-5.7 and MariaDB 5.5, 10.0 are not affected. | ||||||
| Comment by Oleksandr Byelkin [ 2016-12-21 ] | ||||||
|
| ||||||
| Comment by Oleksandr Byelkin [ 2016-12-21 ] | ||||||
|
Buffer for password hash was allocated in wrong memory. | ||||||
| Comment by Oleksandr Byelkin [ 2016-12-21 ] | ||||||
|
revision-id: b730003a34661cbd3dc2beea73130cb67cebd30c (mariadb-10.2.2-257-gb730003a346)
Allocate password hash in statment memory — | ||||||
| Comment by Oleksandr Byelkin [ 2016-12-21 ] | ||||||
|
10.1 version:
Allocate password hash in statment memory — |