| 2036 | */ |
| 2037 | |
| 2038 | int vers_insert_history_row(TABLE *table) |
| 2039 | { |
| 2040 | DBUG_ASSERT(table->versioned(VERS_TIMESTAMP)); |
| 2041 | DBUG_ASSERT(table->vers_write); |
| 2042 | restore_record(table,record[1]); |
| 2043 | |
| 2044 | // Set Sys_end to now() |
| 2045 | table->vers_update_end(); |
| 2046 | |
| 2047 | Field *row_start= table->vers_start_field(); |
| 2048 | Field *row_end= table->vers_end_field(); |
| 2049 | if (row_start->cmp(row_start->ptr, row_end->ptr) >= 0) |
| 2050 | return 0; |
| 2051 | |
| 2052 | return table->file->ha_write_row(table->record[0]); |
| 2053 | } |
| 2054 | |
| 2055 | /* |
| 2056 | Retrieve the old (duplicated) row into record[1] to be able to |
no test coverage detected