MySQL 8.0.40
Source Code Documentation
Cached_item_str Class Reference

#include <item.h>

Inheritance diagram for Cached_item_str:
[legend]

Public Member Functions

 Cached_item_str (Item *arg)
 
bool cmp () override
 Compare the value associated with the item with the stored value. More...
 
- Public Member Functions inherited from Cached_item
virtual ~Cached_item ()=default
 
Itemget_item ()
 
Item ** get_item_ptr ()
 

Private Attributes

String value {"", 0, &my_charset_bin}
 
String tmp_value
 

Additional Inherited Members

- Public Attributes inherited from Cached_item
bool null_value {true}
 
- Protected Member Functions inherited from Cached_item
 Cached_item (Item *i)
 
- Protected Attributes inherited from Cached_item
Itemitem
 The item whose value to cache. More...
 

Constructor & Destructor Documentation

◆ Cached_item_str()

Cached_item_str::Cached_item_str ( Item arg)
inlineexplicit

Member Function Documentation

◆ cmp()

bool Cached_item_str::cmp ( )
overridevirtual

Compare the value associated with the item with the stored value.

If they are different, update the stored value with item's value and return true.

Returns
true if item's value and stored value are different. Notice that first call is to establish an initial value and return value should be ignored.

Implements Cached_item.

Member Data Documentation

◆ tmp_value

String Cached_item_str::tmp_value
private

◆ value

String Cached_item_str::value {"", 0, &my_charset_bin}
private

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