#include <sp_head.h>
Inheritance diagram for sp_name:


Public Member Functions | |
| sp_name (LEX_STRING db, LEX_STRING name) | |
| sp_name (char *key, uint key_len) | |
| void | init_qname (THD *thd) |
| void | set_routine_type (char type) |
| ~sp_name () | |
Public Attributes | |
| LEX_STRING | m_db |
| LEX_STRING | m_name |
| LEX_STRING | m_qname |
| LEX_STRING | m_sroutines_key |
Definition at line 49 of file sp_head.h.
| sp_name::sp_name | ( | LEX_STRING | db, | |
| LEX_STRING | name | |||
| ) | [inline] |
Definition at line 64 of file sp_head.h.
References LEX_STRING::length, m_qname, m_sroutines_key, and LEX_STRING::str.
00065 : m_db(db), m_name(name) 00066 { 00067 m_qname.str= m_sroutines_key.str= 0; 00068 m_qname.length= m_sroutines_key.length= 0; 00069 }
| sp_name::sp_name | ( | char * | key, | |
| uint | key_len | |||
| ) | [inline] |
Definition at line 75 of file sp_head.h.
References LEX_STRING::length, m_db, m_name, m_qname, m_sroutines_key, and LEX_STRING::str.
00076 { 00077 m_sroutines_key.str= key; 00078 m_sroutines_key.length= key_len; 00079 m_name.str= m_qname.str= key + 1; 00080 m_name.length= m_qname.length= key_len - 1; 00081 m_db.str= 0; 00082 m_db.length= 0; 00083 }
| void sp_name::init_qname | ( | THD * | thd | ) |
Definition at line 381 of file sp_head.cc.
References LEX_STRING::length, m_db, m_name, m_qname, m_sroutines_key, and LEX_STRING::str.
Referenced by Event_timed::init_name(), sp_head::init_sp_name(), and Item_func_sp::Item_func_sp().
00382 { 00383 m_sroutines_key.length= m_db.length + m_name.length + 2; 00384 if (!(m_sroutines_key.str= thd->alloc(m_sroutines_key.length + 1))) 00385 return; 00386 m_qname.length= m_sroutines_key.length - 1; 00387 m_qname.str= m_sroutines_key.str + 1; 00388 sprintf(m_qname.str, "%.*s.%.*s", 00389 m_db.length, (m_db.length ? m_db.str : ""), 00390 m_name.length, m_name.str); 00391 }
Here is the caller graph for this function:

| void sp_name::set_routine_type | ( | char | type | ) | [inline] |
Definition at line 88 of file sp_head.h.
References m_sroutines_key, and LEX_STRING::str.
Referenced by sp_add_used_routine().
00089 { 00090 m_sroutines_key.str[0]= type; 00091 }
Here is the caller graph for this function:

Definition at line 53 of file sp_head.h.
Referenced by add_table_for_trigger(), db_update_event(), Item_func_sp::func_name(), Event_timed::init_name(), init_qname(), sp_head::init_sp_name(), sp_name(), and Events::update_event().
Definition at line 54 of file sp_head.h.
Referenced by add_table_for_trigger(), db_update_event(), Item_func_sp::func_name(), Event_timed::init_name(), init_qname(), sp_head::init_sp_name(), Events::show_create_event(), sp_name(), and Events::update_event().
Definition at line 55 of file sp_head.h.
Referenced by Item_func_sp::find_and_check_access(), Event_timed::init_name(), init_qname(), sp_head::init_sp_name(), sp_name(), and Item_func_sp::sp_result_field().
Definition at line 62 of file sp_head.h.
Referenced by init_qname(), set_routine_type(), sp_add_used_routine(), and sp_name().
1.4.7
