My Project
Public Member Functions | Protected Member Functions | Protected Attributes
Default_object_creation_ctx Class Reference

#include <table.h>

Inheritance diagram for Default_object_creation_ctx:
Object_creation_ctx Stored_program_creation_ctx View_creation_ctx Event_creation_ctx Stored_routine_creation_ctx Trigger_creation_ctx

List of all members.

Public Member Functions

const CHARSET_INFO * get_client_cs ()
const CHARSET_INFO * get_connection_cl ()

Protected Member Functions

 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 change_env (THD *thd) const

Protected Attributes

const CHARSET_INFO * m_client_cs
const CHARSET_INFO * m_connection_cl

Detailed Description

Default_object_creation_ctx -- default implementation of Object_creation_ctx.

Member Data Documentation

const CHARSET_INFO* Default_object_creation_ctx::m_client_cs [protected]

client_cs stores the value of character_set_client session variable. The only character set attribute is used.

Client character set is included into query context, because we save query in the original character set, which is client character set. So, in order to parse the query properly we have to switch client character set on parsing.

const CHARSET_INFO* Default_object_creation_ctx::m_connection_cl [protected]

connection_cl stores the value of collation_connection session variable. Both character set and collation attributes are used.

Connection collation is included into query context, becase it defines the character set and collation of text literals in internal representation of query (item-objects).

The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines