My Project
Public Member Functions
Item_uint Class Reference
Inheritance diagram for Item_uint:
Item_int Item_num Item_basic_constant Item

List of all members.

Public Member Functions

 Item_uint (const char *str_arg, uint length)
 Item_uint (ulonglong i)
 Item_uint (const Name_string &name_arg, longlong i, uint length)
double val_real ()
Stringval_str (String *)
Itemclone_item ()
type_conversion_status save_in_field (Field *field, bool no_conversions)
virtual void print (String *str, enum_query_type query_type)
Item_numneg ()
uint decimal_precision () const
bool check_partition_func_processor (uchar *bool_arg)

Member Function Documentation

void Item_uint::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_int.

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

Store this item's int-value in a field

Parameters:
fieldThe field where the int value is to be stored
no_conversionsOnly applies if the value to store is NULL (null_value is true) and NULL is not allowed in field. In that case: if no_coversion is true, do nothing and return with error TYPE_ERR_NULL_CONSTRAINT_VIOLATION. If no_coversion is false, the field's default value is stored if one exists. Otherwise an error is returned.
Return values:
TYPE_OKStoring of value went fine without warnings or errors
!TYPE_OKWarning/error as indicated by type_conversion_status enum value

Reimplemented from Item_int.


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