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

Method vers_check_update

sql/sql_update.cc:213–237  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

211
212
213bool TABLE::vers_check_update(List<Item> &items)
214{
215 List_iterator<Item> it(items);
216 if (!versioned_write())
217 return false;
218
219 while (Item *item= it++)
220 {
221 if (Item_field *item_field= item->field_for_view_update())
222 {
223 Field *field= item_field->field;
224 if (field->table == this && !field->vers_update_unversioned())
225 {
226 no_cache= true;
227 return true;
228 }
229 }
230 }
231 /*
232 Tell TRX_ID-versioning that it does not insert history row
233 (see calc_row_difference()).
234 */
235 vers_write= false;
236 return false;
237}
238
239/**
240 Re-read record if more columns are needed for error message.

Callers 4

update_single_tableMethod · 0.80
initialize_tablesMethod · 0.80
do_updatesMethod · 0.80

Calls 2

field_for_view_updateMethod · 0.45

Tested by

no test coverage detected