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
9f68cdd2
Commit
9f68cdd2
authored
Jan 31, 2006
by
unknown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Post review fixes
parent
0923c390
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 @
9f68cdd2
...
...
@@ -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