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
9e4f2994
Commit
9e4f2994
authored
Feb 11, 2019
by
Marko Mäkelä
Browse files
Options
Browse Files
Download
Plain Diff
Merge 10.1 into 10.2
parents
ca325a46
be254148
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
19 additions
and
2 deletions
+19
-2
mysql-test/suite/innodb/r/foreign_key.result
mysql-test/suite/innodb/r/foreign_key.result
+10
-0
mysql-test/suite/innodb/t/foreign_key.test
mysql-test/suite/innodb/t/foreign_key.test
+9
-0
storage/innobase/handler/handler0alter.cc
storage/innobase/handler/handler0alter.cc
+0
-1
storage/xtradb/handler/handler0alter.cc
storage/xtradb/handler/handler0alter.cc
+0
-1
No files found.
mysql-test/suite/innodb/r/foreign_key.result
View file @
9e4f2994
...
...
@@ -239,6 +239,16 @@ ALTER TABLE t1 ADD FULLTEXT INDEX ft2 (f);
Warnings:
Warning 1088 failed to load FOREIGN KEY constraints
DROP TABLE t1;
CREATE TABLE t1 (f VARCHAR(256), FTS_DOC_ID BIGINT UNSIGNED PRIMARY KEY)
ENGINE=InnoDB;
SET SESSION FOREIGN_KEY_CHECKS = OFF;
ALTER TABLE t1 ADD FOREIGN KEY (f) REFERENCES non_existing_table (x);
SET SESSION FOREIGN_KEY_CHECKS = ON;
ALTER TABLE t1 ADD FULLTEXT INDEX ft1 (f);
Warnings:
Warning 1088 failed to load FOREIGN KEY constraints
ALTER TABLE t1 ADD FULLTEXT INDEX ft2 (f);
DROP TABLE t1;
# Start of 10.2 tests
#
# MDEV-13246 Stale rows despite ON DELETE CASCADE constraint
...
...
mysql-test/suite/innodb/t/foreign_key.test
View file @
9e4f2994
...
...
@@ -221,6 +221,15 @@ ALTER TABLE t1 ADD FULLTEXT INDEX ft1 (f);
ALTER
TABLE
t1
ADD
FULLTEXT
INDEX
ft2
(
f
);
DROP
TABLE
t1
;
CREATE
TABLE
t1
(
f
VARCHAR
(
256
),
FTS_DOC_ID
BIGINT
UNSIGNED
PRIMARY
KEY
)
ENGINE
=
InnoDB
;
SET
SESSION
FOREIGN_KEY_CHECKS
=
OFF
;
ALTER
TABLE
t1
ADD
FOREIGN
KEY
(
f
)
REFERENCES
non_existing_table
(
x
);
SET
SESSION
FOREIGN_KEY_CHECKS
=
ON
;
ALTER
TABLE
t1
ADD
FULLTEXT
INDEX
ft1
(
f
);
ALTER
TABLE
t1
ADD
FULLTEXT
INDEX
ft2
(
f
);
DROP
TABLE
t1
;
--
echo
# Start of 10.2 tests
--
echo
#
...
...
storage/innobase/handler/handler0alter.cc
View file @
9e4f2994
...
...
@@ -8872,7 +8872,6 @@ ha_innobase::commit_inplace_alter_table(
if
(
!
commit_cache_norebuild
(
ctx
,
table
,
trx
))
{
fk_fail
=
true
;
ut_ad
(
!
m_prebuilt
->
trx
->
check_foreigns
);
}
innobase_rename_or_enlarge_columns_cache
(
...
...
storage/xtradb/handler/handler0alter.cc
View file @
9e4f2994
...
...
@@ -6181,7 +6181,6 @@ ha_innobase::commit_inplace_alter_table(
if
(
!
commit_cache_norebuild
(
ctx
,
table
,
trx
))
{
fk_fail
=
true
;
ut_ad
(
!
prebuilt
->
trx
->
check_foreigns
);
}
innobase_rename_columns_cache
(
ha_alter_info
,
table
,
...
...
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