MySQL  8.0.19
Source Code Documentation
Stored_program_creation_ctx Class Referenceabstract

Stored_program_creation_ctx – base class for creation context of stored programs (stored routines, triggers, events). More...

#include <sp_head.h>

Inheritance diagram for Stored_program_creation_ctx:
Default_object_creation_ctx Object_creation_ctx Event_creation_ctx Stored_routine_creation_ctx Trigger_creation_ctx

Public Member Functions

const CHARSET_INFOget_db_cl ()
 
virtual Stored_program_creation_ctxclone (MEM_ROOT *mem_root)=0
 
- Public Member Functions inherited from Default_object_creation_ctx
const CHARSET_INFOget_client_cs ()
 
const CHARSET_INFOget_connection_cl ()
 
- Public Member Functions inherited from Object_creation_ctx
Object_creation_ctxset_n_backup (THD *thd)
 
void restore_env (THD *thd, Object_creation_ctx *backup_ctx)
 
virtual ~Object_creation_ctx ()
 

Protected Member Functions

 Stored_program_creation_ctx (THD *thd)
 
 Stored_program_creation_ctx (const CHARSET_INFO *client_cs, const CHARSET_INFO *connection_cl, const CHARSET_INFO *db_cl)
 
void change_env (THD *thd) const override
 
- Protected Member Functions inherited from Default_object_creation_ctx
 Default_object_creation_ctx (THD *thd)
 
 Default_object_creation_ctx (const CHARSET_INFO *client_cs, const CHARSET_INFO *connection_cl)
 
virtual Object_creation_ctxcreate_backup_ctx (THD *thd) const
 
virtual void delete_backup_ctx ()
 
- Protected Member Functions inherited from Object_creation_ctx
 Object_creation_ctx ()
 

Protected Attributes

const CHARSET_INFOm_db_cl
 db_cl stores the value of the database collation. More...
 
- Protected Attributes inherited from Default_object_creation_ctx
const CHARSET_INFOm_client_cs
 client_cs stores the value of character_set_client session variable. More...
 
const CHARSET_INFOm_connection_cl
 connection_cl stores the value of collation_connection session variable. More...
 

Detailed Description

Stored_program_creation_ctx – base class for creation context of stored programs (stored routines, triggers, events).

Constructor & Destructor Documentation

◆ Stored_program_creation_ctx() [1/2]

Stored_program_creation_ctx::Stored_program_creation_ctx ( THD thd)
explicitprotected

◆ Stored_program_creation_ctx() [2/2]

Stored_program_creation_ctx::Stored_program_creation_ctx ( const CHARSET_INFO client_cs,
const CHARSET_INFO connection_cl,
const CHARSET_INFO db_cl 
)
inlineprotected

Member Function Documentation

◆ change_env()

void Stored_program_creation_ctx::change_env ( THD thd) const
overrideprotectedvirtual

Reimplemented from Default_object_creation_ctx.

◆ clone()

virtual Stored_program_creation_ctx* Stored_program_creation_ctx::clone ( MEM_ROOT mem_root)
pure virtual

◆ get_db_cl()

const CHARSET_INFO* Stored_program_creation_ctx::get_db_cl ( )
inline

Member Data Documentation

◆ m_db_cl

const CHARSET_INFO* Stored_program_creation_ctx::m_db_cl
protected

db_cl stores the value of the database collation.

Both character set and collation attributes are used.

Database collation is included into the context because it defines the default collation for stored-program variables.


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