MySQL 9.7.0
Source Code Documentation
Cached_item_date Class Reference

#include <item.h>

Inheritance diagram for Cached_item_date:
[legend]

Public Member Functions

 Cached_item_date (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

Date_val m_date
 

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_date()

Cached_item_date::Cached_item_date ( Item item_par)
inlineexplicit

Member Function Documentation

◆ cmp()

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

◆ m_date

Date_val Cached_item_date::m_date
private

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