MySQL 9.1.0
Source Code Documentation
trigger.cc File Reference
#include "sql/trigger.h"
#include <assert.h>
#include <stdio.h>
#include <atomic>
#include "lex_string.h"
#include "my_psi_config.h"
#include "mysql/components/services/bits/psi_statement_bits.h"
#include "mysql/psi/mysql_sp.h"
#include "mysql/strings/m_ctype.h"
#include "mysqld_error.h"
#include "mysys_err.h"
#include "nulls.h"
#include "sql/derror.h"
#include "sql/error_handler.h"
#include "sql/sp.h"
#include "sql/sp_head.h"
#include "sql/sql_class.h"
#include "sql/sql_db.h"
#include "sql/sql_digest_stream.h"
#include "sql/sql_error.h"
#include "sql/sql_lex.h"
#include "sql/sql_parse.h"
#include "sql/sql_show.h"
#include "sql/strfunc.h"
#include "sql/system_variables.h"
#include "sql/trigger_creation_ctx.h"
#include "sql_string.h"
#include "string_with_len.h"
#include "strxmov.h"

Classes

class  Deprecated_trigger_syntax_handler
 An error handler that catches all non-OOM errors which can occur during parsing of trigger body. More...
 

Functions

static bool construct_definer_value (MEM_ROOT *mem_root, LEX_CSTRING *definer, const LEX_CSTRING &definer_user, const LEX_CSTRING &definer_host)
 Create a definer value from its user and host parts. More...
 

Variables

static const LEX_CSTRING trg_action_time_type_names []
 
static const LEX_CSTRING trg_event_type_names []
 

Function Documentation

◆ construct_definer_value()

static bool construct_definer_value ( MEM_ROOT mem_root,
LEX_CSTRING definer,
const LEX_CSTRING definer_user,
const LEX_CSTRING definer_host 
)
static

Create a definer value from its user and host parts.

Parameters
mem_rootmem-root where needed strings will be allocated
[out]definerpointer to LEX_CSTRING holder where to store a constructed value of definer
definer_useruser part of a definer value
definer_hosthost part of a definer value
Returns
Operation status.
Return values
falseSuccess
trueFailure

Variable Documentation

◆ trg_action_time_type_names

const LEX_CSTRING trg_action_time_type_names[]
static
Initial value:
= {
{STRING_WITH_LEN("BEFORE")}, {STRING_WITH_LEN("AFTER")}}
#define STRING_WITH_LEN(X)
Definition: string_with_len.h:29

◆ trg_event_type_names

const LEX_CSTRING trg_event_type_names[]
static
Initial value:
= {{STRING_WITH_LEN("INSERT")},
{STRING_WITH_LEN("UPDATE")},
{STRING_WITH_LEN("DELETE")}}