MCPcopy Create free account
hub / github.com/MariaDB/server / get_select_field_pos

Function get_select_field_pos

sql/handler.cc:9170–9181  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9168
9169
9170int get_select_field_pos(Alter_info *alter_info, bool versioned)
9171{
9172 int select_field_pos= alter_info->field_count();
9173 if (alter_info->select_field_count && versioned &&
9174 /*
9175 ALTER_PARSER_ADD_COLUMN indicates system fields was created implicitly,
9176 select_field_count guarantees it's not ALTER TABLE
9177 */
9178 alter_info->flags & ALTER_PARSER_ADD_COLUMN)
9179 select_field_pos-= 2;
9180 return select_field_pos;
9181}
9182
9183
9184bool Table_scope_and_contents_source_st::vers_check_system_fields(

Calls 1

field_countMethod · 0.45

Tested by

no test coverage detected