Commit 1c4d1f3d authored by Marko Mäkelä's avatar Marko Mäkelä

innobase_col_check_fk(): Remove copying

parent 5cfc7799
...@@ -1376,14 +1376,10 @@ innobase_col_check_fk( ...@@ -1376,14 +1376,10 @@ innobase_col_check_fk(
{ {
dict_s_col_list::const_iterator it; dict_s_col_list::const_iterator it;
for (it = s_cols->begin(); for (it = s_cols->begin(); it != s_cols->end(); ++it) {
it != s_cols->end(); ++it) { for (ulint j = it->num_base; j--; ) {
dict_s_col_t s_col = *it; if (!strcmp(col_name, dict_table_get_col_name(
table, it->base_col[j]->ind))) {
for (ulint j = 0; j < s_col.num_base; j++) {
if (strcmp(col_name, dict_table_get_col_name(
table,
s_col.base_col[j]->ind)) == 0) {
return(true); return(true);
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment