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
d77b26c8
Commit
d77b26c8
authored
Jan 31, 2006
by
marty@linux.site
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Post review fixes
parent
d0ede467
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
8 deletions
+4
-8
sql/sql_table.cc
sql/sql_table.cc
+4
-8
No files found.
sql/sql_table.cc
View file @
d77b26c8
...
...
@@ -3773,8 +3773,6 @@ static uint compare_tables(TABLE *table, List<create_field> *create_list,
index_drop_buffer
[(
*
index_drop_count
)
++
]
=
table_key
-
table
->
key_info
;
index_add_buffer
[(
*
index_add_count
)
++
]
=
new_key
-
key_info_buffer
;
field
=
table
->
field
[
new_key
->
key_part
->
fieldnr
];
// Add field to the key
new_key
->
key_part
->
field
=
table
->
field
[
new_key
->
key_part
->
fieldnr
];
// Mark field to be part of new key
field
->
add_index
=
1
;
DBUG_PRINT
(
"info"
,
(
"index changed: '%s'"
,
table_key
->
name
));
...
...
@@ -3796,12 +3794,10 @@ static uint compare_tables(TABLE *table, List<create_field> *create_list,
{
/* Key not found. Add the offset of the key to the add buffer. */
index_add_buffer
[(
*
index_add_count
)
++
]
=
new_key
-
key_info_buffer
;
field
=
table
->
field
[
new_key
->
key_part
->
fieldnr
];
// Add field to the key
new_key
->
key_part
->
field
=
table
->
field
[
new_key
->
key_part
->
fieldnr
];
// Mark field to be part of new key
field
->
add_index
=
1
;
DBUG_PRINT
(
"info"
,
(
"index added: '%s'"
,
new_key
->
name
));
field
=
table
->
field
[
new_key
->
key_part
->
fieldnr
];
// Mark field to be part of new key
field
->
add_index
=
1
;
DBUG_PRINT
(
"info"
,
(
"index added: '%s'"
,
new_key
->
name
));
}
}
...
...
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