Prepare Item_field's for fill_record_n_invoke_before_triggers() This means redirecting from table->field to table->field_to_fill(), if needed. */
| 9374 | table->field_to_fill(), if needed. |
| 9375 | */ |
| 9376 | void 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 | /** |
no test coverage detected