My Project
Public Member Functions
Item_copy_string Class Reference

#include <item.h>

Inheritance diagram for Item_copy_string:
Item_copy Item

List of all members.

Public Member Functions

 Item_copy_string (Item *item)
Stringval_str (String *)
my_decimalval_decimal (my_decimal *)
double val_real ()
longlong val_int ()
bool get_date (MYSQL_TIME *ltime, uint fuzzydate)
bool get_time (MYSQL_TIME *ltime)
void copy ()
type_conversion_status save_in_field (Field *field, bool no_conversions)

Detailed Description

Implementation of a string cache.

Uses Item::str_value for storage

Member Function Documentation

void Item_copy_string::copy ( ) [virtual]

Update the cache with the value of the original item

This is the method that updates the cached value. It must be explicitly called by the user of this class to store the value of the orginal item in the cache.

Implements Item_copy.

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

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

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

Implements Item_copy.

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