MCPcopy Create free account
hub / github.com/Meituan-Dianping/SQLAdvisor / make_old_format

Function make_old_format

sql/sql_show.cc:756–775  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

754*/
755
756int 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
778int make_schemata_old_format(THD *thd, ST_SCHEMA_TABLE *schema_table)

Callers

nothing calls this directly

Calls 2

add_item_to_listFunction · 0.85
copyMethod · 0.45

Tested by

no test coverage detected