diff options
Diffstat (limited to 'sql/sql_trigger.cc')
-rw-r--r-- | sql/sql_trigger.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sql/sql_trigger.cc b/sql/sql_trigger.cc index f83004cd2a4..6f1a21ab791 100644 --- a/sql/sql_trigger.cc +++ b/sql/sql_trigger.cc @@ -2356,9 +2356,9 @@ void Table_triggers_list::mark_fields_used(trg_event_type event) trg_field= trg_field->next_trg_field) { /* We cannot mark fields which does not present in table. */ - if (trg_field->field_idx != (uint)-1) + if (trg_field->field_idx != NO_CACHED_FIELD_INDEX) { - DBUG_PRINT("info", ("marking field: %d", trg_field->field_idx)); + DBUG_PRINT("info", ("marking field: %u", (uint) trg_field->field_idx)); if (trg_field->get_settable_routine_parameter()) bitmap_set_bit(trigger_table->write_set, trg_field->field_idx); trigger_table->mark_column_with_deps( |