#include <sql_select.h>
Inheritance diagram for store_key_item:


Public Member Functions | |
| store_key_item (THD *thd, Field *to_field_arg, char *ptr, char *null_ptr_arg, uint length, Item *item_arg) | |
| enum store_key_result | copy () |
| const char * | name () const |
Protected Attributes | |
| Item * | item |
Definition at line 520 of file sql_select.h.
| store_key_item::store_key_item | ( | THD * | thd, | |
| Field * | to_field_arg, | |||
| char * | ptr, | |||
| char * | null_ptr_arg, | |||
| uint | length, | |||
| Item * | item_arg | |||
| ) | [inline] |
Definition at line 525 of file sql_select.h.
00527 :store_key(thd, to_field_arg,ptr, 00528 null_ptr_arg ? null_ptr_arg : item_arg->maybe_null ? 00529 &err : NullS, length), item(item_arg) 00530 {}
| enum store_key_result store_key_item::copy | ( | ) | [inline, virtual] |
Implements store_key.
Reimplemented in store_key_const_item.
Definition at line 531 of file sql_select.h.
References dbug_tmp_restore_column_map(), dbug_tmp_use_all_columns(), store_key::err, item, Item::save_in_field(), store_key::STORE_KEY_FATAL, Field::table, store_key::to_field, and st_table::write_set.
00532 { 00533 TABLE *table= to_field->table; 00534 my_bitmap_map *old_map= dbug_tmp_use_all_columns(table, 00535 table->write_set); 00536 int res= item->save_in_field(to_field, 1); 00537 dbug_tmp_restore_column_map(table->write_set, old_map); 00538 return (err != 0 || res > 2 ? STORE_KEY_FATAL : (store_key_result) res); 00539 00540 }
Here is the call graph for this function:

| const char* store_key_item::name | ( | ) | const [inline, virtual] |
Implements store_key.
Reimplemented in store_key_const_item.
Definition at line 541 of file sql_select.h.
Item* store_key_item::item [protected] |
Definition at line 523 of file sql_select.h.
Referenced by store_key_const_item::copy(), and copy().
1.4.7

