MySQL 8.4.3
Source Code Documentation
sp_name Class Reference

#include <sp_head.h>

Public Member Functions

 sp_name (const LEX_CSTRING &db, const LEX_STRING &name, bool use_explicit_name)
 
 sp_name (const Sroutine_hash_entry *rt, char *qname_buff)
 Create temporary sp_name object for Sroutine_hash_entry. More...
 
void init_qname (THD *thd)
 Init the qualified name from the db and name. More...
 

Public Attributes

LEX_CSTRING m_db
 
LEX_STRING m_name
 
LEX_STRING m_qname
 
bool m_explicit_name
 Prepend the db name? More...
 

Constructor & Destructor Documentation

◆ sp_name() [1/2]

sp_name::sp_name ( const LEX_CSTRING db,
const LEX_STRING name,
bool  use_explicit_name 
)
inline

◆ sp_name() [2/2]

sp_name::sp_name ( const Sroutine_hash_entry rt,
char *  qname_buff 
)

Create temporary sp_name object for Sroutine_hash_entry.

Note
The lifetime of this object is bound to the lifetime of the Sroutine_hash_entry object. This should be fine as sp_name objects created by this constructor are mainly used for SP-cache lookups.
Stored routine names are case insensitive. So for the proper key comparison, routine name is converted to the lower case while creating Sroutine_hash_entry. Hence the instance of sp_name created from it has the routine name in lower case. Since instances created by this constructor are mainly used for SP-cache lookups, routine name in lower case should work fine.
Parameters
rtSroutine_hash_entry with 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).

Member Function Documentation

◆ init_qname()

void sp_name::init_qname ( THD thd)

Init the qualified name from the db and name.

Member Data Documentation

◆ m_db

LEX_CSTRING sp_name::m_db

◆ m_explicit_name

bool sp_name::m_explicit_name

Prepend the db name?

◆ m_name

LEX_STRING sp_name::m_name

◆ m_qname

LEX_STRING sp_name::m_qname

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