SET ROLE checks privileges differently from check_access()

Description

Test case:

Note that SELECT fails, while SET ROLE succeeds. Both grants were to c@%.

Environment

None

Assignee

Sergei Golubchik

Reporter

Sergei Golubchik

Labels

None

Fix versions

Priority

Major
Configure