| 754 | */ |
| 755 | |
| 756 | int make_old_format(THD *thd, ST_SCHEMA_TABLE *schema_table) |
| 757 | { |
| 758 | ST_FIELD_INFO *field_info= schema_table->fields_info; |
| 759 | Name_resolution_context *context= &thd->lex->select_lex.context; |
| 760 | for (; field_info->field_name; field_info++) |
| 761 | { |
| 762 | if (field_info->old_name) |
| 763 | { |
| 764 | Item_field *field= new Item_field(context, |
| 765 | NullS, NullS, field_info->field_name); |
| 766 | if (field) |
| 767 | { |
| 768 | field->item_name.copy(field_info->old_name); |
| 769 | if (add_item_to_list(thd, field)) |
| 770 | return 1; |
| 771 | } |
| 772 | } |
| 773 | } |
| 774 | return 0; |
| 775 | } |
| 776 | |
| 777 | |
| 778 | int make_schemata_old_format(THD *thd, ST_SCHEMA_TABLE *schema_table) |
nothing calls this directly
no test coverage detected