MySQL  8.0.27
Source Code Documentation
sql_query_rewrite.cc File Reference
#include "sql/sql_query_rewrite.h"
#include <assert.h>
#include <stddef.h>
#include "lex_string.h"
#include "my_sqlcommand.h"
#include "mysql/plugin_audit.h"
#include "mysql/service_mysql_alloc.h"
#include "mysql/service_rules_table.h"
#include "mysql/service_ssl_wrapper.h"
#include "mysqld_error.h"
#include "sql/sql_audit.h"
#include "sql/sql_class.h"
#include "sql/sql_error.h"
#include "sql/sql_lex.h"
#include "sql/sql_parse.h"

Functions

static void raise_query_rewritten_note (THD *thd, const char *original_query, const char *rewritten_query)
 
void invoke_pre_parse_rewrite_plugins (THD *thd)
 Calls the query rewrite plugins' respective rewrite functions before parsing the query. More...
 
bool invoke_post_parse_rewrite_plugins (THD *thd, bool is_prepared)
 Calls query rewrite plugins after parsing the query. More...
 

Function Documentation

◆ invoke_post_parse_rewrite_plugins()

bool invoke_post_parse_rewrite_plugins ( THD thd,
bool  is_prepared 
)

Calls query rewrite plugins after parsing the query.

Parameters
[in]thdThe session with the query to be rewritten.
is_preparedTrue if the query was a prepared statement.

◆ invoke_pre_parse_rewrite_plugins()

void invoke_pre_parse_rewrite_plugins ( THD thd)

Calls the query rewrite plugins' respective rewrite functions before parsing the query.

Parameters
[in]thdThe session sending the query to be rewritten.

◆ raise_query_rewritten_note()

static void raise_query_rewritten_note ( THD thd,
const char *  original_query,
const char *  rewritten_query 
)
static