MySQL 8.3.0
Source Code Documentation
Cached_item_decimal Class Reference

#include <item.h>

Inheritance diagram for Cached_item_decimal:
[legend]

Public Member Functions

 Cached_item_decimal (Item *item_par)
 
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 () const
 
Item ** get_item_ptr ()
 

Private Attributes

my_decimal 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_decimal()

Cached_item_decimal::Cached_item_decimal ( Item item_par)
inlineexplicit

Member Function Documentation

◆ cmp()

bool Cached_item_decimal::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

◆ value

my_decimal Cached_item_decimal::value
private

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