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

Function switch_to_nullable_trigger_fields

sql/sql_base.cc:9376–9390  ·  view source on GitHub ↗

Prepare Item_field's for fill_record_n_invoke_before_triggers() This means redirecting from table->field to table->field_to_fill(), if needed. */

Source from the content-addressed store, hash-verified

9374 table->field_to_fill(), if needed.
9375*/
9376void switch_to_nullable_trigger_fields(List<Item> &items, TABLE *table)
9377{
9378 Field** field= table->field_to_fill();
9379
9380 /* True if we have NOT NULL fields and BEFORE triggers */
9381 if (field != table->field)
9382 {
9383 List_iterator_fast<Item> it(items);
9384 Item *item;
9385
9386 while ((item= it++))
9387 item->walk(&Item::switch_to_nullable_fields_processor,
9388 field, WALK_SUBQUERY);
9389 }
9390}
9391
9392
9393/**

Callers 5

mysql_insertFunction · 0.85
prepare2Method · 0.85
update_single_tableMethod · 0.85
prepareMethod · 0.85
mysql_loadFunction · 0.85

Calls 2

field_to_fillMethod · 0.80
walkMethod · 0.45

Tested by

no test coverage detected