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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
7567b9fa
Commit
7567b9fa
authored
Jun 28, 2015
by
Sergei Golubchik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update tests to pass
parent
4d4f2ed2
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
mysql-test/extra/binlog_tests/database.test
mysql-test/extra/binlog_tests/database.test
+1
-1
mysql-test/suite/rpl/t/rpl_drop_db_fail.test
mysql-test/suite/rpl/t/rpl_drop_db_fail.test
+1
-1
No files found.
mysql-test/extra/binlog_tests/database.test
View file @
7567b9fa
...
@@ -84,7 +84,7 @@ CREATE TABLE t3 (a INT, KEY (a), FOREIGN KEY(a) REFERENCES db1.t2(b))
...
@@ -84,7 +84,7 @@ CREATE TABLE t3 (a INT, KEY (a), FOREIGN KEY(a) REFERENCES db1.t2(b))
engine
=
innodb
;
engine
=
innodb
;
RESET
MASTER
;
RESET
MASTER
;
--
error
ER_ROW_IS_REFERENCED
--
error
ER_ROW_IS_REFERENCED
_2
DROP
DATABASE
db1
;
# Fails because of the fk
DROP
DATABASE
db1
;
# Fails because of the fk
SHOW
TABLES
FROM
db1
;
# t1 was dropped, t2 remains
SHOW
TABLES
FROM
db1
;
# t1 was dropped, t2 remains
--
source
include
/
show_binlog_events
.
inc
# Check that the binlog drops t1
--
source
include
/
show_binlog_events
.
inc
# Check that the binlog drops t1
...
...
mysql-test/suite/rpl/t/rpl_drop_db_fail.test
View file @
7567b9fa
...
@@ -25,7 +25,7 @@ use db2;
...
@@ -25,7 +25,7 @@ use db2;
CREATE
TABLE
table_child
(
id
INT
PRIMARY
KEY
,
info
VARCHAR
(
20
),
father_id
INT
)
ENGINE
=
INNODB
;
CREATE
TABLE
table_child
(
id
INT
PRIMARY
KEY
,
info
VARCHAR
(
20
),
father_id
INT
)
ENGINE
=
INNODB
;
ALTER
TABLE
table_child
ADD
CONSTRAINT
aaa
FOREIGN
KEY
(
father_id
)
REFERENCES
db1
.
table_father
(
id
);
ALTER
TABLE
table_child
ADD
CONSTRAINT
aaa
FOREIGN
KEY
(
father_id
)
REFERENCES
db1
.
table_father
(
id
);
--
error
ER_ROW_IS_REFERENCED
--
error
ER_ROW_IS_REFERENCED
_2
DROP
DATABASE
db1
;
DROP
DATABASE
db1
;
DROP
DATABASE
db2
;
DROP
DATABASE
db2
;
--
sync_slave_with_master
--
sync_slave_with_master
...
...
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