drizzle
C++ MySQL-protocol-compatible database server
Loading...
Searching...
No Matches
drizzled::Item_default_value Class Reference
Inheritance diagram for drizzled::Item_default_value:
[legend]
Collaboration diagram for drizzled::Item_default_value:
[legend]

Public Member Functions

 Item_default_value (Name_resolution_context *context_arg)
 Item_default_value (Name_resolution_context *context_arg, Item *a)
enum Type type () const
bool eq (const Item *item, bool binary_cmp) const
bool fix_fields (Session *, Item **)
virtual void print (String *str)
int save_in_field (Field *field_arg, bool no_conversions)
table_map used_tables () const
bool walk (Item_processor processor, bool walk_subquery, unsigned char *args)
Item * transform (Item_transformer transformer, unsigned char *args)
Public Member Functions inherited from drizzled::Item_field
 Item_field (Name_resolution_context *context_arg, const char *db_arg, const char *table_name_arg, const char *field_name_arg)
 Item_field (Session *session, Item_field *item)
 Item_field (Session *session, Name_resolution_context *context_arg, Field *field)
 Item_field (Field *field)
enum Type type () const
bool eq (const Item *item, bool binary_cmp) const
double val_real ()
int64_t val_int ()
type::Decimal * val_decimal (type::Decimal *)
String * val_str (String *)
double val_result ()
int64_t val_int_result ()
String * str_result (String *tmp)
type::Decimal * val_decimal_result (type::Decimal *)
bool val_bool_result ()
void send (plugin::Client *client, String *str_arg)
void reset_field (Field *f)
bool fix_fields (Session *, Item **)
void fix_after_pullout (Select_Lex *new_parent, Item **ref)
void make_field (SendField *tmp_field)
int save_in_field (Field *field, bool no_conversions)
void save_org_in_field (Field *field)
table_map used_tables () const
enum Item_result result_type () const
Item_result cast_to_int_type () const
enum_field_types field_type () const
int64_t val_int_endpoint (bool left_endp, bool *incl_endp)
Field * get_tmp_table_field ()
Field * tmp_table_field (Table *)
bool get_date (type::Time &ltime, uint32_t fuzzydate)
bool get_date_result (type::Time &ltime, uint32_t fuzzydate)
bool get_time (type::Time &ltime)
bool is_null ()
void update_null_value ()
Item * get_tmp_table_item (Session *session)
bool collect_item_field_processor (unsigned char *arg)
bool find_item_in_field_list_processor (unsigned char *arg)
bool register_field_in_read_map (unsigned char *arg)
void cleanup ()
bool result_as_int64_t ()
Item_equal * find_item_equal (COND_EQUAL *cond_equal)
bool subst_argument_checker (unsigned char **arg)
Item * equal_fields_propagator (unsigned char *arg)
bool set_no_const_sub (unsigned char *arg)
Item * replace_equal_field (unsigned char *arg)
uint32_t max_disp_length ()
Item * safe_charset_converter (const charset_info_st *const tocs)
int fix_outer_field (Session *session, Field **field, Item **reference)
virtual Item * update_value_transformer (unsigned char *select_arg)
Public Member Functions inherited from drizzled::Item_ident
 Item_ident (Name_resolution_context *context_arg, const char *db_name_arg, const char *table_name_arg, const char *field_name_arg)
 Item_ident (Session *session, Item_ident *item)
const char * full_name () const
void cleanup ()
bool remove_dependence_processor (unsigned char *arg)
virtual bool change_context_processor (unsigned char *cntx)
Public Member Functions inherited from drizzled::Item
bool is_unsigned () const
virtual bool negative () const
 Item ()
 Item (Session *session, Item *item)
void set_name (str_ref arg)
void set_name (const char *arg)
void set_name (const char *str, uint32_t length, const charset_info_st *cs=system_charset_info)
void init_make_field (SendField *tmp_field, enum_field_types type)
Field * make_string_field (Table *table)
void quick_fix_field ()
virtual int save_safe_in_field (Field *field)
virtual enum_field_types string_field_type () const
uint64_t val_uint ()
virtual bool val_bool ()
String * val_string_from_real (String *str)
String * val_string_from_int (String *str)
String * val_string_from_decimal (String *str)
type::Decimal * val_decimal_from_real (type::Decimal *decimal_value)
type::Decimal * val_decimal_from_int (type::Decimal *decimal_value)
type::Decimal * val_decimal_from_string (type::Decimal *decimal_value)
type::Decimal * val_decimal_from_date (type::Decimal *decimal_value)
type::Decimal * val_decimal_from_time (type::Decimal *decimal_value)
int64_t val_int_from_decimal ()
double val_real_from_decimal ()
bool save_time_in_field (Field *field)
bool save_date_in_field (Field *field)
int save_str_value_in_field (Field *field, String *result)
virtual table_map not_null_tables () const
virtual bool basic_const_item () const
virtual Item * clone_item ()
virtual cond_result eq_cmp_result () const
uint32_t float_length (uint32_t decimals_par) const
virtual uint32_t decimal_precision () const
int decimal_int_part () const
virtual bool const_item () const
virtual bool const_during_execution () const
void print_item_w_name (String *)
virtual void update_used_tables ()
virtual void split_sum_func (Session *session, Item **ref_pointer_array, List< Item > &fields)
void split_sum_func (Session *session, Item **ref_pointer_array, List< Item > &fields, Item **ref, bool skip_registered)
virtual void top_level_item (void)
virtual void set_result_field (Field *field)
virtual bool is_result_field (void)
virtual bool is_bool_func (void)
virtual void save_in_result_field (bool no_conversions)
virtual void no_rows_in_result (void)
virtual Item * copy_or_same (Session *session)
virtual Item * copy_andor_structure (Session *session)
virtual Item * real_item (void)
virtual const Item * real_item (void) const
virtual const charset_info_st * compare_collation ()
virtual Item * compile (Item_analyzer analyzer, unsigned char **arg_p, Item_transformer transformer, unsigned char *arg_t)
virtual void traverse_cond (Cond_traverser traverser, void *arg, traverse_order order)
virtual bool cache_const_expr_analyzer (unsigned char **arg)
virtual Item * cache_const_expr_transformer (unsigned char *arg)
virtual uint32_t cols ()
virtual Item * element_index (uint32_t i)
virtual Item ** addr (uint32_t i)
virtual bool check_cols (uint32_t c)
virtual bool null_inside ()
virtual void bring_value ()
Field * tmp_table_field_from_field_type (Table *table, bool fixed_length)
virtual Item * neg_transformer (Session *session)
void delete_self ()
bool is_datetime ()
virtual bool is_expensive ()
String * check_well_formed_result (String *str, bool send_error=0)
bool eq_by_collation (Item *item, bool binary_cmp, const charset_info_st *const cs)
uint32_t char_to_byte_length_safe (uint32_t char_length_arg, uint32_t mbmaxlen_arg)
uint32_t max_char_length () const
void fix_char_length (uint32_t max_char_length_arg)

Public Attributes

Item * arg
Public Attributes inherited from drizzled::Item_field
Field * field
Field * result_field
Item_equal * item_equal
bool no_const_subst
uint32_t have_privileges
bool any_privileges
Public Attributes inherited from drizzled::Item_ident
Name_resolution_context * context
const char * db_name
const char * table_name
const char * field_name
bool alias_name_used
uint32_t cached_field_index
TableList * cached_table
Select_Lex * depended_from
Public Attributes inherited from drizzled::Item
String str_value
const char * name
uint32_t name_length
Item * next
uint32_t max_length
int8_t marker
uint8_t decimals
bool fixed
bool maybe_null
bool null_value
bool unsigned_flag
bool with_sum_func
bool is_autogenerated_name
bool with_subselect
DTCollation collation
Item_result cmp_context

Additional Inherited Members

Public Types inherited from drizzled::Item
enum  Type {
  FIELD_ITEM = 0 , FUNC_ITEM , SUM_FUNC_ITEM , STRING_ITEM ,
  INT_ITEM , REAL_ITEM , NULL_ITEM , VARBIN_ITEM ,
  COPY_STR_ITEM , FIELD_AVG_ITEM , DEFAULT_VALUE_ITEM , PROC_ITEM ,
  COND_ITEM , REF_ITEM , FIELD_STD_ITEM , FIELD_VARIANCE_ITEM ,
  INSERT_VALUE_ITEM , SUBSELECT_ITEM , ROW_ITEM , CACHE_ITEM ,
  TYPE_HOLDER , PARAM_ITEM , BOOLEAN_ITEM , DECIMAL_ITEM
}
enum  traverse_order { T_POSTFIX , T_PREFIX }
enum  cond_result { COND_UNDEF , COND_OK , COND_TRUE , COND_FALSE }
Static Public Member Functions inherited from drizzled::Item
static const charset_info_st * default_charset ()
Static Public Member Functions inherited from drizzled::memory::SqlAlloc
static void * operator new (size_t size)
static void * operator new[] (size_t size)
static void * operator new (size_t size, Root &root)
static void * operator new[] (size_t size, Root &root)
static void * operator new (size_t size, Root *root)
static void * operator new[] (size_t size, Root *root)
static void operator delete (void *)
static void operator delete[] (void *)
static void operator delete (void *, Root &)
static void operator delete[] (void *, Root &)
static void operator delete (void *, Root *)
static void operator delete[] (void *, Root *)
Protected Member Functions inherited from drizzled::Item_field
void set_field (Field *field)
Protected Member Functions inherited from drizzled::Item
Session & getSession ()
Protected Attributes inherited from drizzled::Item_ident
const char * orig_db_name
const char * orig_table_name
const char * orig_field_name

Detailed Description

Definition at line 27 of file default_value.h.

Constructor & Destructor Documentation

◆ Item_default_value() [1/2]

drizzled::Item_default_value::Item_default_value ( Name_resolution_context * context_arg)
inline

Definition at line 31 of file default_value.h.

◆ Item_default_value() [2/2]

drizzled::Item_default_value::Item_default_value ( Name_resolution_context * context_arg,
Item * a )
inline

Definition at line 35 of file default_value.h.

Member Function Documentation

◆ eq()

bool drizzled::Item_default_value::eq ( const Item * item,
bool binary_cmp ) const
virtual

Compares this Item to another Item, returning true if Item's are functionally equal.

This function is called when:

  • Comparing items in the WHERE clause (when doing where optimization)
  • When trying to find an order_st BY/GROUP BY item in the SELECT part

Reimplemented from drizzled::Item.

Definition at line 30 of file default_value.cc.

◆ fix_fields()

bool drizzled::Item_default_value::fix_fields ( Session * session,
Item **  )
virtual

Reimplemented from drizzled::Item.

Definition at line 37 of file default_value.cc.

◆ print()

void drizzled::Item_default_value::print ( String * str)
virtual

This method is used for to:

  • to generate a view definition query (SELECT-statement);
  • to generate a SQL-query for EXPLAIN EXTENDED;
  • to generate a SQL-query to be shown in INFORMATION_SCHEMA;
  • debug.

For more information about view definition query, INFORMATION_SCHEMA query and why they should be generated from the Item-tree,

See also
register_view().

Reimplemented from drizzled::Item_field.

Definition at line 73 of file default_value.cc.

◆ save_in_field()

int drizzled::Item_default_value::save_in_field ( Field * field_arg,
bool no_conversions )
virtual

Reimplemented from drizzled::Item.

Definition at line 86 of file default_value.cc.

◆ transform()

Item * drizzled::Item_default_value::transform ( Item_transformer transformer,
unsigned char * args )
virtual

This method like the walk method traverses the item tree, but at the same time it can replace some nodes in the tree.

Reimplemented from drizzled::Item.

Definition at line 112 of file default_value.cc.

◆ type()

enum Type drizzled::Item_default_value::type ( ) const
inlinevirtual

Implements drizzled::Item.

Definition at line 39 of file default_value.h.

◆ used_tables()

table_map drizzled::Item_default_value::used_tables ( ) const
inlinevirtual

Returns bit map of tables used by item

Reimplemented from drizzled::Item.

Definition at line 44 of file default_value.h.

◆ walk()

bool drizzled::Item_default_value::walk ( Item_processor processor,
bool walk_subquery,
unsigned char * args )
inlinevirtual

Reimplemented from drizzled::Item.

Definition at line 46 of file default_value.h.

Member Data Documentation

◆ arg

Item* drizzled::Item_default_value::arg

Definition at line 30 of file default_value.h.


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