MySQL 8.0.39
Source Code Documentation
upd_field_t Struct Reference

#include <row0upd.h>

Public Member Functions

 upd_field_t ()
 
bool is_virtual () const
 
void push_lob_diff (const Lob_diff &lob_diff)
 
std::ostream & print (std::ostream &out) const
 
void reset ()
 Empty the information collected on LOB diffs. More...
 

Public Attributes

unsigned field_no: 16
 field number in an index, usually the clustered index, but in updating a secondary index record in btr0cur.cc this is the position in the secondary index, also it could be the position in virtual index for virtual column More...
 
uint16_t field_phy_pos {UINT16_MAX}
 
unsigned orig_len: 16
 original length of the locally stored part of an externally stored column, or 0 More...
 
que_node_texp
 expression for calculating a new value: it refers to column values and constants in the symbol table of the query graph More...
 
dfield_t old_val
 old value for the column More...
 
dfield_t new_val
 new value for the column More...
 
dfield_told_v_val
 old value for the virtual column More...
 
Fieldmysql_field
 the mysql field object. More...
 
bool ext_in_old
 If true, the field was stored externally in the old row. More...
 
Lob_diff_vectorlob_diffs
 List of changes done to this updated field. More...
 
page_no_t lob_first_page_no
 The LOB first page number. More...
 
ulint lob_version
 
trx_id_t last_trx_id
 The last trx that modified the LOB. More...
 
undo_no_t last_undo_no
 The last stmt within trx that modified the LOB. More...
 
mem_heap_theap
 Memory heap in which this object is allocated. More...
 

Constructor & Destructor Documentation

◆ upd_field_t()

upd_field_t::upd_field_t ( )
inline

Member Function Documentation

◆ is_virtual()

bool upd_field_t::is_virtual ( ) const
inline

◆ print()

std::ostream & upd_field_t::print ( std::ostream &  out) const

◆ push_lob_diff()

void upd_field_t::push_lob_diff ( const Lob_diff lob_diff)
inline

◆ reset()

void upd_field_t::reset ( void  )
inline

Empty the information collected on LOB diffs.

Member Data Documentation

◆ exp

que_node_t* upd_field_t::exp

expression for calculating a new value: it refers to column values and constants in the symbol table of the query graph

◆ ext_in_old

bool upd_field_t::ext_in_old

If true, the field was stored externally in the old row.

◆ field_no

unsigned upd_field_t::field_no

field number in an index, usually the clustered index, but in updating a secondary index record in btr0cur.cc this is the position in the secondary index, also it could be the position in virtual index for virtual column

◆ field_phy_pos

uint16_t upd_field_t::field_phy_pos {UINT16_MAX}

◆ heap

mem_heap_t* upd_field_t::heap

Memory heap in which this object is allocated.

◆ last_trx_id

trx_id_t upd_field_t::last_trx_id

The last trx that modified the LOB.

◆ last_undo_no

undo_no_t upd_field_t::last_undo_no

The last stmt within trx that modified the LOB.

◆ lob_diffs

Lob_diff_vector* upd_field_t::lob_diffs

List of changes done to this updated field.

This is usually populated from the undo log.

◆ lob_first_page_no

page_no_t upd_field_t::lob_first_page_no

The LOB first page number.

This information is read from the undo log.

◆ lob_version

ulint upd_field_t::lob_version

◆ mysql_field

Field* upd_field_t::mysql_field

the mysql field object.

◆ new_val

dfield_t upd_field_t::new_val

new value for the column

◆ old_v_val

dfield_t* upd_field_t::old_v_val

old value for the virtual column

◆ old_val

dfield_t upd_field_t::old_val

old value for the column

◆ orig_len

unsigned upd_field_t::orig_len

original length of the locally stored part of an externally stored column, or 0


The documentation for this struct was generated from the following files: