MySQL 5.6.14 Source Code Document
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
sp_name Class Reference
Inheritance diagram for sp_name:
Collaboration diagram for sp_name:

Public Member Functions

 sp_name (LEX_STRING db, LEX_STRING name, bool use_explicit_name)
 sp_name (const MDL_key *key, char *qname_buff)
void init_qname (THD *thd)

Public Attributes

LEX_STRING m_db
LEX_STRING m_name
LEX_STRING m_qname
bool m_explicit_name

Additional Inherited Members

- Static Public Member Functions inherited from Sql_alloc
static void * operator new (size_t size) throw ()
static void * operator new[] (size_t size) throw ()
static void * operator new[] (size_t size, MEM_ROOT *mem_root) throw ()
static void * operator new (size_t size, MEM_ROOT *mem_root) throw ()
static void operator delete (void *ptr, size_t size)
static void operator delete (void *ptr, MEM_ROOT *mem_root)
static void operator delete[] (void *ptr, MEM_ROOT *mem_root)
static void operator delete[] (void *ptr, size_t size)

Detailed Description

Definition at line 106 of file sp_head.h.

Constructor & Destructor Documentation

sp_name::sp_name ( const MDL_key key,
char *  qname_buff 
)

Create temporary sp_name object from MDL key.

Create temporary sp_name object from MDL key.

Note
The lifetime of this object is bound to the lifetime of the MDL_key. This should be fine as sp_name objects created by this constructor are mainly used for SP-cache lookups.
Parameters
keyMDL key containing database and routine name.
qname_buffBuffer to be used for storing quoted routine name (should be at least 2*NAME_LEN+1+1 bytes).

Definition at line 151 of file sp_head.cc.

Member Function Documentation

void sp_name::init_qname ( THD *  thd)

Init the qualified name from the db and name.

Definition at line 175 of file sp_head.cc.

Here is the caller graph for this function:

Member Data Documentation

bool sp_name::m_explicit_name

Prepend the db name?

Definition at line 113 of file sp_head.h.


The documentation for this class was generated from the following files: