MySQL 9.1.0
Source Code Documentation
|
Go to the source code of this file.
Functions | |
bool | set_sp_multi_result_state (THD *thd, LEX *lex) |
Sets multi-result state for SP being executed by the Statement_handle family. More... | |
void | set_query_for_display (THD *thd) |
Set query to be displayed in performance schema. More... | |
LEX_CSTRING | convert_and_store (MEM_ROOT *mem_root, const char *str, size_t length, const CHARSET_INFO *src_cs, const CHARSET_INFO *dst_cs) |
Potentially convert a string from src charset to destination charset and store the returned string on the specified memroot. More... | |
LEX_CSTRING convert_and_store | ( | MEM_ROOT * | mem_root, |
const char * | str, | ||
size_t | length, | ||
const CHARSET_INFO * | src_cs, | ||
const CHARSET_INFO * | dst_cs | ||
) |
Potentially convert a string from src charset to destination charset and store the returned string on the specified memroot.
mem_root | The mem_root to store the result str |
str | The input string to be converted |
length | Length of the input string |
src_cs | Source charset |
dst_cs | Dest charset |
void set_query_for_display | ( | THD * | thd | ) |
Set query to be displayed in performance schema.
thd | Thread Handle. |
Sets multi-result state for SP being executed by the Statement_handle family.
For SQL SP, flags required for multi-result are set while parsing SP statements. SPs for which parsing its statement is deferred to execution phase, multi-result state is set by this function.
The function invoker need not have to reset this state. State is reset in the Sql_cmd_call::execute_inner.
thd | Thread Handle. |
lex | Lex instance of SP statement. |