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

Method update_generated_fields

sql/table.cc:9543–9561  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9541}
9542
9543int TABLE::update_generated_fields()
9544{
9545 int res= 0;
9546 if (next_number_field)
9547 {
9548 res= next_number_field->set_default();
9549 if (likely(!res))
9550 res= file->update_auto_increment();
9551 next_number_field= NULL;
9552 }
9553
9554 if (likely(!res) && vfield)
9555 res= update_virtual_fields(file, VCOL_UPDATE_FOR_WRITE);
9556 if (likely(!res) && versioned())
9557 vers_update_fields();
9558 if (likely(!res))
9559 res= verify_constraints(false) == VIEW_CHECK_ERROR;
9560 return res;
9561}
9562
9563void TABLE::period_prepare_autoinc()
9564{

Callers 1

update_portion_of_timeFunction · 0.80

Calls 2

set_defaultMethod · 0.45
update_auto_incrementMethod · 0.45

Tested by

no test coverage detected