Anel Husakovic
d2dddbff4e
MDEV-26080: SHOW GRANTS does not quote role names properly for DEFAULT ROLE
...
- Used single quotes, back quotes are used with commit
fafb35ee51 in 10.3 and will be changed.
Reviewed by: serg@mariadb.org
2021-07-09 08:25:54 +02:00
Anel Husakovic
4e987b1c6b
MDEV-22313: Neither SHOW CREATE USER nor SHOW GRANTS prints a user's default role
...
Reviewed-by: serg@mariadb.com
2020-10-24 16:32:07 +02:00
Sergei Golubchik
e54a7ac1b3
MDEV-23010 UPDATE privilege at Database and Table level fail to update with SELECT command denied to user
...
check both column- and table-level grants when looking for SELECT
privilege on UPDATE statement.
2020-07-29 14:56:24 +02:00
Sergei Golubchik
8ede9b3ae5
MDEV-17975 Assertion ! is_set()' or !is_set() || (m_status == DA_OK_BULK && is_bulk_op())' failed upon REVOKE under LOCK TABLE
...
open_grant_tables() returns -1/0/1, where -1 is an error, while 1 is not.
Don't store it's return value in bool
2018-12-20 08:39:54 +01:00
Sergei Golubchik
d821dd106a
MDEV-9580 SHOW GRANTS FOR <current_user> fails
...
use get_current_user() to distinguish user name without
a hostname and a role name.
move privilege checks inside mysql_show_grants() to remove
duplicate get_current_user() calls
2016-04-24 18:15:20 +02:00
Sergei Golubchik
57a43b8435
MDEV-6625 SHOW GRANTS for current_user_name@wrong_host_name
2014-08-21 21:25:22 +02:00