Commit f1258e7c authored by Sergei Golubchik's avatar Sergei Golubchik

BUG#26881798: SERVER EXITS WHEN PRIMARY KEY IN MYSQL.PROC IS DROPPED

test case
parent 1a019d08
...@@ -174,3 +174,9 @@ create database mysqltest1; ...@@ -174,3 +174,9 @@ create database mysqltest1;
create procedure mysqltest1.foo() select "foo"; create procedure mysqltest1.foo() select "foo";
update mysql.proc set name='' where db='mysqltest1'; update mysql.proc set name='' where db='mysqltest1';
drop database mysqltest1; drop database mysqltest1;
create procedure p1() set @foo = 10;
alter table mysql.proc drop primary key;
drop procedure p1;
ERROR HY000: Cannot load from mysql.proc. The table is probably corrupted
alter table mysql.proc add primary key (db,name,type);
drop procedure p1;
...@@ -289,3 +289,13 @@ create database mysqltest1; ...@@ -289,3 +289,13 @@ create database mysqltest1;
create procedure mysqltest1.foo() select "foo"; create procedure mysqltest1.foo() select "foo";
update mysql.proc set name='' where db='mysqltest1'; update mysql.proc set name='' where db='mysqltest1';
drop database 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;
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment