From 65eee0be5f238861b6338fa64152b5a8a1ebb759 Mon Sep 17 00:00:00 2001 From: Sergei Golubchik Date: Wed, 23 Oct 2013 09:54:10 -0700 Subject: 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 --- mysql-test/suite/roles/drop_current_user-5176.result | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 mysql-test/suite/roles/drop_current_user-5176.result (limited to 'mysql-test/suite/roles/drop_current_user-5176.result') 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 -- cgit v1.2.1