summaryrefslogtreecommitdiff
path: root/mysql-test/suite/roles/set_default_role_ps-6960.test
Commit message (Collapse)AuthorAgeFilesLines
* MDEV-17658 change the structure of mysql.user tableSergei Golubchik2018-12-121-2/+5
| | | | | | Implement User_table_json. Fix scripts to use mysql.global_priv. Fix tests.
* fix mtr warnings after 5f0510225aaSergei Golubchik2018-06-241-0/+2
|
* MDEV-6960 Server crashes in check_alter_user on setting a default role via PSSergei Golubchik2015-02-281-0/+15
There were two issues: * set_var_default_role::user was overwritten with a new value, allocated in the thd->mem_root, which is reset between executions. That was causing the crash. Solved by introducing set_var_default_role::real_user * when privilege tables were opened on EXECUTE, the reprepare_observer would abort the statement (as privilege tables are opened using the local TABLE_LIST that doesn't preserve metadata from PREPARE, so reprepare_observer thought they're changed). This issue also applied to SET PASSWORD. Solved by disabling reprepare_observer.