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
bcb4180a
Commit
bcb4180a
authored
Oct 05, 2018
by
Marko Mäkelä
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
prepare_instant(): Assert that added columns are in the same order
parent
2edc17dd
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
0 deletions
+11
-0
storage/innobase/handler/handler0alter.cc
storage/innobase/handler/handler0alter.cc
+11
-0
No files found.
storage/innobase/handler/handler0alter.cc
View file @
bcb4180a
...
...
@@ -409,9 +409,20 @@ struct ha_innobase_inplace_ctx : public inplace_alter_handler_ctx
d
=
n_old_drop
;
uint
j
=
0
,
n_nullable
=
0
;
ut_d
(
uint
n_core_null
=
0
);
ut_d
(
uint
max_new_col
=
0
);
for
(
uint
i
=
0
;
i
<
n_fields
;
i
++
)
{
DBUG_ASSERT
(
j
<=
i
);
if
(
i
>=
old
->
n_fields
)
{
{
/* Ensure that newly added
columns are at the end of the
index in the same order as
in the table definition. */
ut_d
(
uint
ni
=
instant
->
fields
[
j
].
col
->
ind
);
ut_ad
(
max_new_col
<=
ni
);
max_new_col
=
ni
+
1
;
}
existing_field:
fields
[
i
]
=
instant
->
fields
[
j
++
];
DBUG_ASSERT
(
!
fields
[
i
].
col
...
...
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