MySQL 9.1.0
Source Code Documentation
sql_query_rewrite.h File Reference

Go to the source code of this file.

Functions

void invoke_pre_parse_rewrite_plugins (THD *thd)
 Calls the query rewrite plugins' respective rewrite functions before parsing the query. More...
 
void enable_digest_if_any_plugin_needs_it (THD *thd, Parser_state *ps)
 Enables digests in the parser state if any plugin needs it. More...
 
bool invoke_post_parse_rewrite_plugins (THD *thd, bool is_prepared)
 Calls query rewrite plugins after parsing the query. More...
 

Function Documentation

◆ enable_digest_if_any_plugin_needs_it()

void enable_digest_if_any_plugin_needs_it ( THD thd,
Parser_state ps 
)

Enables digests in the parser state if any plugin needs it.

Parameters
thdThe session.
psThis parser state will have digests enabled if any plugin needs it.
Note
For the time being, only post-parse query rewrite plugins are able to request digests. If other plugin types need the same, this function needs to be modified.

◆ 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.