MySQL 9.5.0
Source Code Documentation
in_datetime Class Referencefinal

#include <item_cmpfunc.h>

Inheritance diagram for in_datetime:
[legend]

Public Member Functions

 in_datetime (MEM_ROOT *mem_root, Item *warn_item_arg, uint elements)
 
Itemcreate_item (MEM_ROOT *mem_root) const override
 Create an instance of Item_{type} (e.g. More...
 
- Public Member Functions inherited from In_vector_int
 In_vector_int (MEM_ROOT *mem_root, uint elements)
 
void value_to_item (uint pos, Item *item) const override
 Store the value at position pos into provided item object. More...
 
bool find_item (Item *item) override
 Calls item->val_int() or item->val_str() etc. More...
 
bool compare_elems (uint pos1, uint pos2) const override
 Compare values number pos1 and pos2 for equality. More...
 
- Public Member Functions inherited from In_vector
 In_vector (uint elements)
 See Item_func_in::resolve_type() for why we need both count and used_count. More...
 
virtual ~In_vector ()=default
 
virtual bool is_row_result () const
 
bool fill (Item **items, uint item_count)
 Fill the vector by evaluating the items passed as arguments. More...
 
virtual void cleanup ()
 

Private Member Functions

bool set (uint pos, Item *item) override
 Evaluate item and set value into element "pos" of the vector. More...
 
bool val_item (Item *item, packed_longlong *result) override
 

Private Attributes

Itemwarn_item
 An item used to issue warnings. More...
 

Additional Inherited Members

- Public Attributes inherited from In_vector
uint m_used_size {0}
 The actual size of the vector (NULL may be ignored) More...
 
- Protected Attributes inherited from In_vector_int
Mem_root_array< packed_longlongbase
 

Constructor & Destructor Documentation

◆ in_datetime()

in_datetime::in_datetime ( MEM_ROOT mem_root,
Item warn_item_arg,
uint  elements 
)
inline

Member Function Documentation

◆ create_item()

Item * in_datetime::create_item ( MEM_ROOT mem_root) const
inlineoverridevirtual

Create an instance of Item_{type} (e.g.

Item_decimal) constant object which type allows it to hold an element of this vector without any conversions. The purpose of this function is to be able to get elements of this vector in form of Item_xxx constants without creating Item_xxx object for every array element you get (i.e. this implements "FlyWeight" pattern)

Parameters
mem_rootWhere to allocate the Item.

Reimplemented from In_vector_int.

◆ set()

bool in_datetime::set ( uint  pos,
Item item 
)
overrideprivatevirtual

Evaluate item and set value into element "pos" of the vector.

Parameters
poselement number in vector
itemitem to evaluate
Returns
false if successful evaluation and not null value, true otherwise

Reimplemented from In_vector_int.

◆ val_item()

bool in_datetime::val_item ( Item item,
packed_longlong result 
)
overrideprivatevirtual

Reimplemented from In_vector_int.

Member Data Documentation

◆ warn_item

Item* in_datetime::warn_item
private

An item used to issue warnings.


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