diff options
author | Sergei Golubchik <serg@mariadb.org> | 2018-04-19 22:32:27 +0200 |
---|---|---|
committer | Sergei Golubchik <serg@mariadb.org> | 2018-04-19 22:32:27 +0200 |
commit | f1258e7cd2c57886e5eb4cf51b4ab3a9c030cbab (patch) | |
tree | 2edcba47da3dac6c8c8f8f11156f5b2e42329f75 /mysql-test/t | |
parent | 1a019d08012db7b3fa6a42d39342792c3418e75b (diff) | |
download | mariadb-git-f1258e7cd2c57886e5eb4cf51b4ab3a9c030cbab.tar.gz |
BUG#26881798: SERVER EXITS WHEN PRIMARY KEY IN MYSQL.PROC IS DROPPED
test case
Diffstat (limited to 'mysql-test/t')
-rw-r--r-- | mysql-test/t/sp-destruct.test | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/mysql-test/t/sp-destruct.test b/mysql-test/t/sp-destruct.test index 3a2e9259938..e5314f89fd5 100644 --- a/mysql-test/t/sp-destruct.test +++ b/mysql-test/t/sp-destruct.test @@ -289,3 +289,13 @@ create database mysqltest1; create procedure mysqltest1.foo() select "foo"; update mysql.proc set name='' where db='mysqltest1'; drop database mysqltest1; + +# +# BUG#26881798: SERVER EXITS WHEN PRIMARY KEY IN MYSQL.PROC IS DROPPED +# +create procedure p1() set @foo = 10; +alter table mysql.proc drop primary key; +--error ER_CANNOT_LOAD_FROM_TABLE +drop procedure p1; +alter table mysql.proc add primary key (db,name,type); +drop procedure p1; |