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
6e76b402
Commit
6e76b402
authored
May 14, 2018
by
Thirunarayanan Balathandayuthapani
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adjust the alter_foreign_crash test case for MariaDB
parent
a1f392a9
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
7 deletions
+8
-7
mysql-test/suite/innodb/r/alter_foreign_crash.result
mysql-test/suite/innodb/r/alter_foreign_crash.result
+4
-3
mysql-test/suite/innodb/t/alter_foreign_crash.test
mysql-test/suite/innodb/t/alter_foreign_crash.test
+4
-4
No files found.
mysql-test/suite/innodb/r/alter_foreign_crash.result
View file @
6e76b402
...
...
@@ -6,14 +6,16 @@ call mtr.add_suppression("InnoDB: Failed to load table");
create database bug;
use bug;
create table parent(a serial) engine=innodb;
create table child(a serial, foreign key fk (a) references parent(a));
create table child(a serial, foreign key fk (a) references parent(a))
engine=innodb
;
insert into parent values(1);
insert into child values(1);
connect con1,localhost,root,,bug;
SET DEBUG_SYNC='innodb_rename_table_ready SIGNAL s1 WAIT_FOR s2 EXECUTE 2';
ALTER TABLE child ROW_FORMAT=DYNAMIC, ALGORITHM=COPY;
connection default;
SET DEBUG_SYNC='now WAIT_FOR s1';
SET DEBUG_SYNC='now SIGNAL s2 WAIT_FOR s1';
# Kill and restart
disconnect con1;
show tables;
Tables_in_bug
parent
...
...
@@ -21,5 +23,4 @@ alter table parent row_format=dynamic;
Warnings:
Warning 1088 InnoDB: Could not add foreign key constraints.
drop table parent;
ERROR 23000: Cannot delete or update a parent row: a foreign key constraint fails
drop database bug;
mysql-test/suite/innodb/t/alter_foreign_crash.test
View file @
6e76b402
...
...
@@ -14,7 +14,7 @@ create database bug;
use
bug
;
create
table
parent
(
a
serial
)
engine
=
innodb
;
create
table
child
(
a
serial
,
foreign
key
fk
(
a
)
references
parent
(
a
));
create
table
child
(
a
serial
,
foreign
key
fk
(
a
)
references
parent
(
a
))
engine
=
innodb
;
insert
into
parent
values
(
1
);
insert
into
child
values
(
1
);
...
...
@@ -25,13 +25,13 @@ SET DEBUG_SYNC='innodb_rename_table_ready SIGNAL s1 WAIT_FOR s2 EXECUTE 2';
connection
default
;
SET
DEBUG_SYNC
=
'now WAIT_FOR s1'
;
SET
DEBUG_SYNC
=
'now SIGNAL s2 WAIT_FOR s1'
;
--
source
include
/
kill_and_restart_mysqld
.
inc
--
let
$shutdown_timeout
=
0
--
source
include
/
restart_mysqld
.
inc
disconnect
con1
;
show
tables
;
alter
table
parent
row_format
=
dynamic
;
--
error
ER_ROW_IS_REFERENCED
drop
table
parent
;
drop
database
bug
;
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