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


Public Member Functions | |
| Item_ident_for_show (Field *par_field, const char *db_arg, const char *table_name_arg) | |
| enum Type | type () const |
| double | val_real () |
| longlong | val_int () |
| String * | val_str (String *str) |
| my_decimal * | val_decimal (my_decimal *dec) |
| void | make_field (Send_field *tmp_field) |
Public Attributes | |
| Field * | field |
| const char * | db_name |
| const char * | table_name |
Definition at line 1211 of file item.h.
| Item_ident_for_show::Item_ident_for_show | ( | Field * | par_field, | |
| const char * | db_arg, | |||
| const char * | table_name_arg | |||
| ) | [inline] |
Definition at line 1218 of file item.h.
01220 :field(par_field), db_name(db_arg), table_name(table_name_arg) 01221 {}
| void Item_ident_for_show::make_field | ( | Send_field * | tmp_field | ) | [virtual] |
Reimplemented from Item.
Definition at line 1511 of file item.cc.
References Field::charset(), Send_field::charsetnr, Send_field::col_name, db_name, Send_field::db_name, Send_field::decimals, field, Field::field_length, Field::field_name, Field::flags, Send_field::flags, Send_field::length, st_table::maybe_null, NOT_NULL_FLAG, charset_info_st::number, Send_field::org_col_name, Send_field::org_table_name, Field::table, table_name, Send_field::table_name, Field::type(), and Send_field::type.
01512 { 01513 tmp_field->table_name= tmp_field->org_table_name= table_name; 01514 tmp_field->db_name= db_name; 01515 tmp_field->col_name= tmp_field->org_col_name= field->field_name; 01516 tmp_field->charsetnr= field->charset()->number; 01517 tmp_field->length=field->field_length; 01518 tmp_field->type=field->type(); 01519 tmp_field->flags= field->table->maybe_null ? 01520 (field->flags & ~NOT_NULL_FLAG) : field->flags; 01521 tmp_field->decimals= 0; 01522 }
Here is the call graph for this function:

| enum Type Item_ident_for_show::type | ( | ) | const [inline, virtual] |
Implements Item.
Definition at line 1223 of file item.h.
References Item::FIELD_ITEM.
01223 { return FIELD_ITEM; }
| my_decimal* Item_ident_for_show::val_decimal | ( | my_decimal * | dec | ) | [inline, virtual] |
Implements Item.
Definition at line 1227 of file item.h.
References field, and Field::val_decimal().
01227 { return field->val_decimal(dec); }
Here is the call graph for this function:

| longlong Item_ident_for_show::val_int | ( | void | ) | [inline, virtual] |
| double Item_ident_for_show::val_real | ( | void | ) | [inline, virtual] |
| const char* Item_ident_for_show::db_name |
Definition at line 1214 of file item.h.
Referenced by make_field(), val_decimal(), val_int(), val_real(), and val_str().
| const char* Item_ident_for_show::table_name |
1.4.7

