summaryrefslogtreecommitdiff
path: root/mysql-test/suite/roles/drop_current_user-5176.result
diff options
context:
space:
mode:
authorSergei Golubchik <sergii@pisem.net>2013-10-23 09:54:10 -0700
committerSergei Golubchik <sergii@pisem.net>2013-10-23 09:54:10 -0700
commit65eee0be5f238861b6338fa64152b5a8a1ebb759 (patch)
treeef4618280715098fcddb0ac16ef8d53130756eb0 /mysql-test/suite/roles/drop_current_user-5176.result
parent7761a278f682d852fc1f7b8cc109cf42ab5c710f (diff)
downloadmariadb-git-65eee0be5f238861b6338fa64152b5a8a1ebb759.tar.gz
MDEV-5176 Server crashes in fill_schema_applicable_roles on select from APPLICABLE_ROLES after a suicide
Don't assume that thd->security_ctx->priv_user is an actually existing user account
Diffstat (limited to 'mysql-test/suite/roles/drop_current_user-5176.result')
-rw-r--r--mysql-test/suite/roles/drop_current_user-5176.result9
1 files changed, 9 insertions, 0 deletions
diff --git a/mysql-test/suite/roles/drop_current_user-5176.result b/mysql-test/suite/roles/drop_current_user-5176.result
new file mode 100644
index 00000000000..8e01bb10bd5
--- /dev/null
+++ b/mysql-test/suite/roles/drop_current_user-5176.result
@@ -0,0 +1,9 @@
+grant create user on *.* to foo@localhost;
+drop user foo@localhost;
+select * from information_schema.applicable_roles;
+GRANTEE ROLE_NAME IS_GRANTABLE
+show grants;
+ERROR 42000: There is no such grant defined for user 'foo' on host 'localhost'
+select current_user();
+current_user()
+foo@localhost