File: drop_current_user-5176.test

package info (click to toggle)
mariadb 1%3A11.8.5-1
  • links: PTS, VCS
  • area: main
  • in suites: forky
  • size: 774,648 kB
  • sloc: ansic: 2,415,394; cpp: 1,796,628; asm: 381,336; perl: 62,933; sh: 50,563; pascal: 40,908; java: 39,363; python: 25,814; yacc: 20,444; sql: 17,907; xml: 12,354; ruby: 8,544; cs: 6,542; makefile: 6,145; ada: 1,879; lex: 1,194; javascript: 996; objc: 80; tcl: 73; awk: 46; php: 22
file content (14 lines) | stat: -rw-r--r-- 390 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#
# MDEV-5176 Server crashes in fill_schema_applicable_roles on select from APPLICABLE_ROLES after a suicide
#
--source include/not_embedded.inc

create user foo@localhost;
grant create user on *.* to foo@localhost;
--connect (foo,localhost,foo,,)
drop user foo@localhost;
select * from information_schema.applicable_roles;
--error ER_NONEXISTING_GRANT
show grants;
select current_user();