#include <item.h>
Inheritance diagram for Item_null:


Public Member Functions | |
| Item_null (char *name_par=0) | |
| enum Type | type () const |
| bool | eq (const Item *item, bool binary_cmp) const |
| double | val_real () |
| longlong | val_int () |
| String * | val_str (String *str) |
| my_decimal * | val_decimal (my_decimal *) |
| int | save_in_field (Field *field, bool no_conversions) |
| int | save_safe_in_field (Field *field) |
| bool | send (Protocol *protocol, String *str) |
| enum Item_result | result_type () const |
| enum_field_types | field_type () const |
| void | cleanup () |
| bool | basic_const_item () const |
| Item * | new_item () |
| bool | is_null () |
| void | print (String *str) |
| Item * | safe_charset_converter (CHARSET_INFO *tocs) |
| bool | check_partition_func_processor (byte *bool_arg) |
Definition at line 1333 of file item.h.
| Item_null::Item_null | ( | char * | name_par = 0 |
) | [inline] |
Definition at line 1336 of file item.h.
References Item::collation, DERIVATION_IGNORABLE, Item::fixed, Item::max_length, Item::maybe_null, my_charset_bin, Item::name, Item::null_value, DTCollation::set(), and TRUE.
Referenced by new_item().
01337 { 01338 maybe_null= null_value= TRUE; 01339 max_length= 0; 01340 name= name_par ? name_par : (char*) "NULL"; 01341 fixed= 1; 01342 collation.set(&my_charset_bin, DERIVATION_IGNORABLE); 01343 }
Here is the call graph for this function:

Here is the caller graph for this function:

| bool Item_null::basic_const_item | ( | ) | const [inline, virtual] |
| void Item_null::cleanup | ( | ) | [inline, virtual] |
| enum_field_types Item_null::field_type | ( | ) | const [inline, virtual] |
Reimplemented from Item.
Definition at line 1354 of file item.h.
References MYSQL_TYPE_NULL.
01354 { return MYSQL_TYPE_NULL; }
| bool Item_null::is_null | ( | ) | [inline, virtual] |
| Item* Item_null::new_item | ( | ) | [inline, virtual] |
Reimplemented from Item.
Definition at line 1358 of file item.h.
References Item_null(), and Item::name.
Here is the call graph for this function:

| void Item_null::print | ( | String * | str | ) | [inline, virtual] |
Reimplemented from Item.
Definition at line 1360 of file item.h.
References String::append(), and STRING_WITH_LEN.
01360 { str->append(STRING_WITH_LEN("NULL")); }
Here is the call graph for this function:

| enum Item_result Item_null::result_type | ( | ) | const [inline, virtual] |
Reimplemented from Item.
Definition at line 1353 of file item.h.
References STRING_RESULT.
01353 { return STRING_RESULT; }
| Item * Item_null::safe_charset_converter | ( | CHARSET_INFO * | tocs | ) | [virtual] |
Reimplemented from Item.
Definition at line 2193 of file item.cc.
References Item::collation, and DTCollation::set().
Here is the call graph for this function:

Reimplemented from Item.
Definition at line 4151 of file item.cc.
References set_field_to_null_with_conversions().
Referenced by Item_null_result::save_in_result_field().
04152 { 04153 return set_field_to_null_with_conversions(field, no_conversions); 04154 }
Here is the call graph for this function:

Here is the caller graph for this function:

| int Item_null::save_safe_in_field | ( | Field * | field | ) | [virtual] |
Reimplemented from Item.
Definition at line 4169 of file item.cc.
References set_field_to_null().
04170 { 04171 return set_field_to_null(field); 04172 }
Here is the call graph for this function:

Reimplemented from Item.
Definition at line 4532 of file item.cc.
References Protocol::store_null().
04533 { 04534 return protocol->store_null(); 04535 }
Here is the call graph for this function:

| enum Type Item_null::type | ( | ) | const [inline, virtual] |
| my_decimal * Item_null::val_decimal | ( | my_decimal * | ) | [virtual] |
| longlong Item_null::val_int | ( | ) | [virtual] |
Implements Item.
Definition at line 2171 of file item.cc.
References DBUG_ASSERT, Item::fixed, and Item::null_value.
02172 { 02173 // following assert is redundant, because fixed=1 assigned in constructor 02174 DBUG_ASSERT(fixed == 1); 02175 null_value=1; 02176 return 0; 02177 }
| double Item_null::val_real | ( | ) | [virtual] |
Implements Item.
Definition at line 2164 of file item.cc.
References DBUG_ASSERT, Item::fixed, and Item::null_value.
02165 { 02166 // following assert is redundant, because fixed=1 assigned in constructor 02167 DBUG_ASSERT(fixed == 1); 02168 null_value=1; 02169 return 0.0; 02170 }
Implements Item.
Definition at line 2179 of file item.cc.
References DBUG_ASSERT, Item::fixed, and Item::null_value.
02180 { 02181 // following assert is redundant, because fixed=1 assigned in constructor 02182 DBUG_ASSERT(fixed == 1); 02183 null_value=1; 02184 return 0; 02185 }
1.4.7

