mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
cleanup: renames
enum_mark_columns -> enum_column_usage mark_used_columns -> column_usage further commits will replace MARK_COLUMN_NONE with COLUMN_READ and COLUMN_WRITE that convey the intention without causing columns to be marked
This commit is contained in:
@ -1299,7 +1299,7 @@ static bool check_view_insertability(THD * thd, TABLE_LIST *view)
|
||||
uint used_fields_buff_size= bitmap_buffer_size(table->s->fields);
|
||||
uint32 *used_fields_buff= (uint32*)thd->alloc(used_fields_buff_size);
|
||||
MY_BITMAP used_fields;
|
||||
enum_mark_columns save_mark_used_columns= thd->mark_used_columns;
|
||||
enum_column_usage saved_column_usage= thd->column_usage;
|
||||
DBUG_ENTER("check_key_in_view");
|
||||
|
||||
if (!used_fields_buff)
|
||||
@ -1315,20 +1315,20 @@ static bool check_view_insertability(THD * thd, TABLE_LIST *view)
|
||||
we must not set query_id for fields as they're not
|
||||
really used in this context
|
||||
*/
|
||||
thd->mark_used_columns= MARK_COLUMNS_NONE;
|
||||
thd->column_usage= MARK_COLUMNS_NONE;
|
||||
/* check simplicity and prepare unique test of view */
|
||||
for (trans= trans_start; trans != trans_end; trans++)
|
||||
{
|
||||
if (!trans->item->fixed && trans->item->fix_fields(thd, &trans->item))
|
||||
{
|
||||
thd->mark_used_columns= save_mark_used_columns;
|
||||
thd->column_usage= saved_column_usage;
|
||||
DBUG_RETURN(TRUE);
|
||||
}
|
||||
Item_field *field;
|
||||
/* simple SELECT list entry (field without expression) */
|
||||
if (!(field= trans->item->field_for_view_update()))
|
||||
{
|
||||
thd->mark_used_columns= save_mark_used_columns;
|
||||
thd->column_usage= saved_column_usage;
|
||||
DBUG_RETURN(TRUE);
|
||||
}
|
||||
if (field->field->unireg_check == Field::NEXT_NUMBER)
|
||||
@ -1340,7 +1340,7 @@ static bool check_view_insertability(THD * thd, TABLE_LIST *view)
|
||||
*/
|
||||
trans->item= field;
|
||||
}
|
||||
thd->mark_used_columns= save_mark_used_columns;
|
||||
thd->column_usage= saved_column_usage;
|
||||
/* unique test */
|
||||
for (trans= trans_start; trans != trans_end; trans++)
|
||||
{
|
||||
|
Reference in New Issue
Block a user