| 9541 | } |
| 9542 | |
| 9543 | int 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 | |
| 9563 | void TABLE::period_prepare_autoinc() |
| 9564 | { |
no test coverage detected