Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
f1258e7c
Commit
f1258e7c
authored
Apr 19, 2018
by
Sergei Golubchik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
BUG#26881798: SERVER EXITS WHEN PRIMARY KEY IN MYSQL.PROC IS DROPPED
test case
parent
1a019d08
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
0 deletions
+16
-0
mysql-test/r/sp-destruct.result
mysql-test/r/sp-destruct.result
+6
-0
mysql-test/t/sp-destruct.test
mysql-test/t/sp-destruct.test
+10
-0
No files found.
mysql-test/r/sp-destruct.result
View file @
f1258e7c
...
@@ -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;
mysql-test/t/sp-destruct.test
View file @
f1258e7c
...
@@ -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
;
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment