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
69e55227
Commit
69e55227
authored
Feb 07, 2019
by
Andrei Elkin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
merge fixes: sql_table.cc and partition_info.cc (caused by
ef4ccb6c
) done
parent
1efc1990
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
8 deletions
+8
-8
sql/partition_info.cc
sql/partition_info.cc
+1
-1
sql/sql_table.cc
sql/sql_table.cc
+7
-7
No files found.
sql/partition_info.cc
View file @
69e55227
...
@@ -878,7 +878,7 @@ void partition_info::vers_set_hist_part(THD *thd)
...
@@ -878,7 +878,7 @@ void partition_info::vers_set_hist_part(THD *thd)
return
;
return
;
warn:
warn:
my_error
(
WARN_VERS_PART_FULL
,
MYF
(
ME_WARNING
|
ME_ERROR_LOG
),
my_error
(
WARN_VERS_PART_FULL
,
MYF
(
ME_WARNING
|
ME_ERROR_LOG
),
table
->
s
->
db
.
str
,
table
->
s
->
error_table_name
()
,
table
->
s
->
db
.
str
,
table
->
s
->
table_name
.
str
,
vers_info
->
hist_part
->
partition_name
);
vers_info
->
hist_part
->
partition_name
);
}
}
...
...
sql/sql_table.cc
View file @
69e55227
...
@@ -8423,7 +8423,7 @@ mysql_prepare_alter_table(THD *thd, TABLE *table,
...
@@ -8423,7 +8423,7 @@ mysql_prepare_alter_table(THD *thd, TABLE *table,
}
}
if
(
!
drop
)
if
(
!
drop
)
{
{
if
(
alter_info
->
flags
&
A
lter_info
::
A
LTER_RENAME_COLUMN
)
if
(
alter_info
->
flags
&
ALTER_RENAME_COLUMN
)
{
{
check
->
expr
->
walk
(
&
Item
::
rename_fields_processor
,
1
,
check
->
expr
->
walk
(
&
Item
::
rename_fields_processor
,
1
,
&
column_rename_param
);
&
column_rename_param
);
...
@@ -9310,7 +9310,7 @@ bool mysql_alter_table(THD *thd, const LEX_CSTRING *new_db,
...
@@ -9310,7 +9310,7 @@ bool mysql_alter_table(THD *thd, const LEX_CSTRING *new_db,
THD_STAGE_INFO
(
thd
,
stage_setup
);
THD_STAGE_INFO
(
thd
,
stage_setup
);
if
(
alter_info
->
flags
&
A
lter_info
::
A
LTER_DROP_CHECK_CONSTRAINT
)
if
(
alter_info
->
flags
&
ALTER_DROP_CHECK_CONSTRAINT
)
{
{
/*
/*
ALTER TABLE DROP CONSTRAINT
ALTER TABLE DROP CONSTRAINT
...
@@ -9323,7 +9323,7 @@ bool mysql_alter_table(THD *thd, const LEX_CSTRING *new_db,
...
@@ -9323,7 +9323,7 @@ bool mysql_alter_table(THD *thd, const LEX_CSTRING *new_db,
List
<
FOREIGN_KEY_INFO
>
fk_child_key_list
;
List
<
FOREIGN_KEY_INFO
>
fk_child_key_list
;
table
->
file
->
get_foreign_key_list
(
thd
,
&
fk_child_key_list
);
table
->
file
->
get_foreign_key_list
(
thd
,
&
fk_child_key_list
);
alter_info
->
flags
&=
~
A
lter_info
::
A
LTER_DROP_CHECK_CONSTRAINT
;
alter_info
->
flags
&=
~
ALTER_DROP_CHECK_CONSTRAINT
;
while
((
drop
=
drop_it
++
))
while
((
drop
=
drop_it
++
))
{
{
...
@@ -9340,7 +9340,7 @@ bool mysql_alter_table(THD *thd, const LEX_CSTRING *new_db,
...
@@ -9340,7 +9340,7 @@ bool mysql_alter_table(THD *thd, const LEX_CSTRING *new_db,
drop
->
name
)
==
0
)
drop
->
name
)
==
0
)
{
{
drop
->
type
=
Alter_drop
::
FOREIGN_KEY
;
drop
->
type
=
Alter_drop
::
FOREIGN_KEY
;
alter_info
->
flags
|=
A
lter_info
::
DROP_FOREIGN_KEY
;
alter_info
->
flags
|=
A
LTER_
DROP_FOREIGN_KEY
;
goto
do_continue
;
goto
do_continue
;
}
}
}
}
...
@@ -9354,16 +9354,16 @@ bool mysql_alter_table(THD *thd, const LEX_CSTRING *new_db,
...
@@ -9354,16 +9354,16 @@ bool mysql_alter_table(THD *thd, const LEX_CSTRING *new_db,
{
{
if
((
table
->
key_info
[
n_key
].
flags
&
HA_NOSAME
)
&&
if
((
table
->
key_info
[
n_key
].
flags
&
HA_NOSAME
)
&&
my_strcasecmp
(
system_charset_info
,
my_strcasecmp
(
system_charset_info
,
drop
->
name
,
table
->
key_info
[
n_key
].
name
)
==
0
)
drop
->
name
,
table
->
key_info
[
n_key
].
name
.
str
)
==
0
)
// Merge todo: review '.str'
{
{
drop
->
type
=
Alter_drop
::
KEY
;
drop
->
type
=
Alter_drop
::
KEY
;
alter_info
->
flags
|=
A
lter_info
::
A
LTER_DROP_INDEX
;
alter_info
->
flags
|=
ALTER_DROP_INDEX
;
goto
do_continue
;
goto
do_continue
;
}
}
}
}
}
}
}
}
alter_info
->
flags
|=
A
lter_info
::
A
LTER_DROP_CHECK_CONSTRAINT
;
alter_info
->
flags
|=
ALTER_DROP_CHECK_CONSTRAINT
;
do_continue:
;
do_continue:
;
}
}
}
}
...
...
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