summaryrefslogtreecommitdiff
path: root/mysql-test/main/show_bad_definer-5553.test
blob: 7c7f253ae7d6fc057aac3b160b7e164a01ae3171 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
--source include/not_embedded.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;