My Project
Public Member Functions | Protected Attributes
Item_decimal Class Reference
Inheritance diagram for Item_decimal:
Item_num Item_basic_constant Item

List of all members.

Public Member Functions

 Item_decimal (const char *str_arg, uint length, const CHARSET_INFO *charset)
 Item_decimal (const Name_string &name_arg, const my_decimal *val_arg, uint decimal_par, uint length)
 Item_decimal (my_decimal *value_par)
 Item_decimal (longlong val, bool unsig)
 Item_decimal (double val, int precision, int scale)
 Item_decimal (const uchar *bin, int precision, int scale)
enum Type type () const
enum Item_result result_type () const
enum_field_types field_type () const
longlong val_int ()
double val_real ()
Stringval_str (String *)
my_decimalval_decimal (my_decimal *val)
bool get_date (MYSQL_TIME *ltime, uint fuzzydate)
bool get_time (MYSQL_TIME *ltime)
type_conversion_status save_in_field (Field *field, bool no_conversions)
bool basic_const_item () const
Itemclone_item ()
virtual void print (String *str, enum_query_type query_type)
Item_numneg ()
uint decimal_precision () const
bool eq (const Item *, bool binary_cmp) const
void set_decimal_value (my_decimal *value_par)
bool check_partition_func_processor (uchar *bool_arg)

Protected Attributes

my_decimal decimal_value

Member Function Documentation

bool Item_decimal::eq ( const Item item,
bool  binary_cmp 
) const [virtual]

This function is called when:

  • Comparing items in the WHERE clause (when doing where optimization)
  • When trying to find an ORDER BY/GROUP BY item in the SELECT part
  • When matching fields in multiple equality objects (Item_equal)

Reimplemented from Item.

void Item_decimal::print ( String str,
enum_query_type  query_type 
) [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:
mysql_register_view().

Reimplemented from Item.

type_conversion_status Item_decimal::save_in_field ( Field field,
bool  no_conversions 
) [virtual]

Save a temporal value in packed longlong format into a Field. Used in optimizer.

Parameters:
OUTfield The field to set the value to.
Return values:
0On success.
>0In error.

Reimplemented from Item.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines