File tree Expand file tree Collapse file tree 5 files changed +1
-52
lines changed Expand file tree Collapse file tree 5 files changed +1
-52
lines changed Original file line number Diff line number Diff line change @@ -654,41 +654,6 @@ dict_table_get_col_name(
654
654
return (s);
655
655
}
656
656
657
- /* *********************************************************************/ /* *
658
- Returns a column's name.
659
- @return column name. NOTE: not guaranteed to stay valid if table is
660
- modified in any way (columns added, etc.). */
661
- UNIV_INTERN
662
- const char *
663
- dict_table_get_col_name_for_mysql (
664
- /* ==============================*/
665
- const dict_table_t * table, /* !< in: table */
666
- const char * col_name)/* ! in: MySQL table column name */
667
- {
668
- ulint i;
669
- const char * s;
670
-
671
- ut_ad (table);
672
- ut_ad (col_name);
673
- ut_ad (table->magic_n == DICT_TABLE_MAGIC_N);
674
-
675
- s = table->col_names ;
676
- if (s) {
677
- /* If we have many virtual columns MySQL key_part->fieldnr
678
- could be larger than number of columns in InnoDB table
679
- when creating new indexes. */
680
- for (i = 0 ; i < table->n_def ; i++) {
681
-
682
- if (!innobase_strcasecmp (s, col_name)) {
683
- break ; /* Found */
684
- }
685
- s += strlen (s) + 1 ;
686
- }
687
- }
688
-
689
- return (s);
690
- }
691
-
692
657
/* * Returns a virtual column's name.
693
658
@param[in] table target table
694
659
@param[in] col_nr virtual column number (nth virtual column)
Original file line number Diff line number Diff line change @@ -2183,7 +2183,6 @@ innobase_create_index_field_def(
2183
2183
#else
2184
2184
index_field->is_v_col = false ;
2185
2185
index_field->col_no = key_part->fieldnr - num_m_v;
2186
- index_field->col_name = altered_table ? field->field_name : fields[key_part->fieldnr ]->field_name ;
2187
2186
#endif /* MYSQL_VIRTUAL_COLUMNS */
2188
2187
2189
2188
if (DATA_LARGE_MTYPE (col_type)
Original file line number Diff line number Diff line change @@ -613,18 +613,6 @@ dict_table_get_col_name(
613
613
ulint col_nr) /* !< in: column number */
614
614
MY_ATTRIBUTE((nonnull, warn_unused_result));
615
615
616
- /* *********************************************************************/ /* *
617
- Returns a column's name.
618
- @return column name. NOTE: not guaranteed to stay valid if table is
619
- modified in any way (columns added, etc.). */
620
- UNIV_INTERN
621
- const char *
622
- dict_table_get_col_name_for_mysql (
623
- /* ==============================*/
624
- const dict_table_t * table, /* !< in: table */
625
- const char * col_name)/* !< in: MySQL table column name */
626
- MY_ATTRIBUTE((nonnull, warn_unused_result));
627
-
628
616
/* * Returns a virtual column's name.
629
617
@param[in] table table object
630
618
@param[in] col_nr virtual column number(nth virtual column)
Original file line number Diff line number Diff line change @@ -114,7 +114,6 @@ struct index_field_t {
114
114
ulint col_no ; /*!< column offset */
115
115
ulint prefix_len ; /*!< column prefix length, or 0
116
116
if indexing the whole column */
117
- const char * col_name ; /*!< column name or NULL */
118
117
bool is_v_col ; /*!< whether this is a virtual column */
119
118
};
120
119
Original file line number Diff line number Diff line change @@ -4509,9 +4509,7 @@ row_merge_create_index(
4509
4509
if (col_names && col_names[i]) {
4510
4510
name = col_names[i];
4511
4511
} else {
4512
- name = ifield->col_name ?
4513
- dict_table_get_col_name_for_mysql (table, ifield->col_name ) :
4514
- dict_table_get_col_name (table, ifield->col_no );
4512
+ name = dict_table_get_col_name (table, ifield->col_no );
4515
4513
}
4516
4514
}
4517
4515
You can’t perform that action at this time.
0 commit comments