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


Public Member Functions | |
| Item_user_var_as_out_param (LEX_STRING a) | |
| enum Type | type () const |
| double | val_real () |
| longlong | val_int () |
| String * | val_str (String *str) |
| my_decimal * | val_decimal (my_decimal *decimal_buffer) |
| bool | fix_fields (THD *thd, Item **ref) |
| void | print (String *str) |
| void | set_null_value (CHARSET_INFO *cs) |
| void | set_value (const char *str, uint length, CHARSET_INFO *cs) |
Private Attributes | |
| LEX_STRING | name |
| user_var_entry * | entry |
Definition at line 1265 of file item_func.h.
| Item_user_var_as_out_param::Item_user_var_as_out_param | ( | LEX_STRING | a | ) | [inline] |
Reimplemented from Item.
Definition at line 4172 of file item_func.cc.
References DBUG_ASSERT, FALSE, Item::fix_fields(), Item::fixed, get_variable(), name, STRING_RESULT, and TRUE.
04173 { 04174 DBUG_ASSERT(fixed == 0); 04175 if (Item::fix_fields(thd, ref) || 04176 !(entry= get_variable(&thd->user_vars, name, 1))) 04177 return TRUE; 04178 entry->type= STRING_RESULT; 04179 /* 04180 Let us set the same collation which is used for loading 04181 of fields in LOAD DATA INFILE. 04182 (Since Item_user_var_as_out_param is used only there). 04183 */ 04184 entry->collation.set(thd->variables.collation_database); 04185 entry->update_query_id= thd->query_id; 04186 return FALSE; 04187 }
Here is the call graph for this function:

| void Item_user_var_as_out_param::print | ( | String * | str | ) | [virtual] |
Reimplemented from Item.
Definition at line 4235 of file item_func.cc.
References String::append(), LEX_STRING::length, name, and LEX_STRING::str.
Here is the call graph for this function:

| void Item_user_var_as_out_param::set_null_value | ( | CHARSET_INFO * | cs | ) |
Definition at line 4190 of file item_func.cc.
References current_thd, DERIVATION_IMPLICIT, STRING_RESULT, TRUE, and update_hash().
04191 { 04192 if (::update_hash(entry, TRUE, 0, 0, STRING_RESULT, cs, 04193 DERIVATION_IMPLICIT, 0 /* unsigned_arg */)) 04194 current_thd->fatal_error(); // Probably end of memory 04195 }
Here is the call graph for this function:

| void Item_user_var_as_out_param::set_value | ( | const char * | str, | |
| uint | length, | |||
| CHARSET_INFO * | cs | |||
| ) |
Definition at line 4198 of file item_func.cc.
References current_thd, DERIVATION_IMPLICIT, FALSE, STRING_RESULT, and update_hash().
04200 { 04201 if (::update_hash(entry, FALSE, (void*)str, length, STRING_RESULT, cs, 04202 DERIVATION_IMPLICIT, 0 /* unsigned_arg */)) 04203 current_thd->fatal_error(); // Probably end of memory 04204 }
Here is the call graph for this function:

| enum Type Item_user_var_as_out_param::type | ( | ) | const [inline, virtual] |
Implements Item.
Definition at line 1272 of file item_func.h.
References Item::STRING_ITEM.
01272 { return STRING_ITEM;}
| my_decimal * Item_user_var_as_out_param::val_decimal | ( | my_decimal * | decimal_buffer | ) | [virtual] |
Implements Item.
Definition at line 4228 of file item_func.cc.
References DBUG_ASSERT.
04229 { 04230 DBUG_ASSERT(0); 04231 return 0; 04232 }
| longlong Item_user_var_as_out_param::val_int | ( | ) | [virtual] |
Implements Item.
Definition at line 4214 of file item_func.cc.
References DBUG_ASSERT.
04215 { 04216 DBUG_ASSERT(0); 04217 return 0; 04218 }
| double Item_user_var_as_out_param::val_real | ( | ) | [virtual] |
Implements Item.
Definition at line 4207 of file item_func.cc.
References DBUG_ASSERT.
04208 { 04209 DBUG_ASSERT(0); 04210 return 0.0; 04211 }
Implements Item.
Definition at line 4221 of file item_func.cc.
References DBUG_ASSERT.
04222 { 04223 DBUG_ASSERT(0); 04224 return 0; 04225 }
user_var_entry* Item_user_var_as_out_param::entry [private] |
Definition at line 1268 of file item_func.h.
LEX_STRING Item_user_var_as_out_param::name [private] |
Reimplemented from Item.
Definition at line 1267 of file item_func.h.
Referenced by fix_fields(), and print().
1.4.7

