summaryrefslogtreecommitdiff
path: root/mysql-test/main/show_bad_definer-5553.test
blob: 38b6134826d6b4d7db77aa7195e95ec4c123e6c4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
--source include/not_embedded.inc
--source include/default_charset.inc

#
# MDEV-5553 A view or procedure with a non existing definer can block "SHOW TABLE STATUS" with an unclear error message
#

create database mysqltest1; # all-open privileges on test db desroy the test
use mysqltest1;
create table t1(id int primary key);
create definer=unknownuser@'%' sql security definer view v1 as select t1.id from t1 group by t1.id;
--replace_column 8 # 12 # 13 # 19 #
show table status;
drop database mysqltest1;