The world's most popular open source database
#include <sql_select.h>
Inheritance diagram for store_key_const_item:


Public Member Functions | |
| store_key_const_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 |
Private Attributes | |
| bool | inited |
Definition at line 545 of file sql_select.h.
| store_key_const_item::store_key_const_item | ( | THD * | thd, | |
| Field * | to_field_arg, | |||
| char * | ptr, | |||
| char * | null_ptr_arg, | |||
| uint | length, | |||
| Item * | item_arg | |||
| ) | [inline] |
Definition at line 549 of file sql_select.h.
00552 :store_key_item(thd, to_field_arg,ptr, 00553 null_ptr_arg ? null_ptr_arg : item_arg->maybe_null ? 00554 &err : NullS, length, item_arg), inited(0) 00555 { 00556 }
| enum store_key_result store_key_const_item::copy | ( | ) | [inline, virtual] |
Reimplemented from store_key_item.
Definition at line 557 of file sql_select.h.
References store_key::err, inited, store_key_item::item, Item::save_in_field(), store_key::STORE_KEY_FATAL, and store_key::to_field.
00558 { 00559 int res; 00560 if (!inited) 00561 { 00562 inited=1; 00563 if ((res= item->save_in_field(to_field, 1))) 00564 { 00565 if (!err) 00566 err= res; 00567 } 00568 } 00569 return (err > 2 ? STORE_KEY_FATAL : (store_key_result) err); 00570 }
Here is the call graph for this function:

| const char* store_key_const_item::name | ( | ) | const [inline, virtual] |
bool store_key_const_item::inited [private] |
1.4.7

