#include <item_func.h>
Inheritance diagram for Item_func_get_system_var:


Public Member Functions | |
| Item_func_get_system_var (sys_var *var_arg, enum_var_type var_type_arg, LEX_STRING *component_arg, const char *name_arg, size_t name_len_arg) | |
| bool | fix_fields (THD *thd, Item **ref) |
| double | val_real () |
| longlong | val_int () |
| String * | val_str (String *) |
| void | fix_length_and_dec () |
| const char * | func_name () const |
Private Attributes | |
| sys_var * | var |
| enum_var_type | var_type |
| LEX_STRING | component |
Definition at line 1287 of file item_func.h.
| Item_func_get_system_var::Item_func_get_system_var | ( | sys_var * | var_arg, | |
| enum_var_type | var_type_arg, | |||
| LEX_STRING * | component_arg, | |||
| const char * | name_arg, | |||
| size_t | name_len_arg | |||
| ) |
Definition at line 4243 of file item_func.cc.
References Item::set_name(), and system_charset_info.
04246 :var(var_arg), var_type(var_type_arg), component(*component_arg) 04247 { 04248 /* set_name() will allocate the name */ 04249 set_name(name_arg, name_len_arg, system_charset_info); 04250 }
Here is the call graph for this function:

Reimplemented from Item_func.
Definition at line 4254 of file item_func.cc.
References component, DBUG_ENTER, DBUG_RETURN, sys_var::item(), Item::name, Item::set_name(), system_charset_info, var, and var_type.
04255 { 04256 Item *item; 04257 DBUG_ENTER("Item_func_get_system_var::fix_fields"); 04258 04259 /* 04260 Evaluate the system variable and substitute the result (a basic constant) 04261 instead of this item. If the variable can not be evaluated, 04262 the error is reported in sys_var::item(). 04263 */ 04264 if (!(item= var->item(thd, var_type, &component))) 04265 DBUG_RETURN(1); // Impossible 04266 item->set_name(name, 0, system_charset_info); // don't allocate a new name 04267 thd->change_item_tree(ref, item); 04268 04269 DBUG_RETURN(0); 04270 }
Here is the call graph for this function:

| void Item_func_get_system_var::fix_length_and_dec | ( | ) | [inline, virtual] |
Implements Item_result_field.
Definition at line 1304 of file item_func.h.
References DBUG_ASSERT.
01304 { DBUG_ASSERT(0); }
| const char* Item_func_get_system_var::func_name | ( | ) | const [inline, virtual] |
| longlong Item_func_get_system_var::val_int | ( | void | ) | [inline, virtual] |
Implements Item.
Definition at line 1302 of file item_func.h.
References DBUG_ASSERT.
01302 { DBUG_ASSERT(0); return 0; }
| double Item_func_get_system_var::val_real | ( | void | ) | [inline, virtual] |
Implements Item.
Definition at line 1301 of file item_func.h.
References DBUG_ASSERT.
01301 { DBUG_ASSERT(0); return 0.0; }
Implements Item.
Definition at line 1303 of file item_func.h.
References DBUG_ASSERT.
01303 { DBUG_ASSERT(0); return 0; }
sys_var* Item_func_get_system_var::var [private] |
1.4.7

