MySQL 9.1.0
Source Code Documentation
|
#include "sql/table_function.h"
#include <string.h>
#include <memory>
#include <new>
#include <utility>
#include "field_types.h"
#include "my_sys.h"
#include "mysql/components/services/bits/psi_bits.h"
#include "mysql/strings/m_ctype.h"
#include "mysql_com.h"
#include "mysqld_error.h"
#include "prealloced_array.h"
#include "sql-common/json_dom.h"
#include "sql-common/json_error_handler.h"
#include "sql-common/json_path.h"
#include "sql/current_thd.h"
#include "sql/error_handler.h"
#include "sql/field.h"
#include "sql/handler.h"
#include "sql/item.h"
#include "sql/item_json_func.h"
#include "sql/psi_memory_key.h"
#include "sql/sql_class.h"
#include "sql/sql_exception_handler.h"
#include "sql/sql_list.h"
#include "sql/sql_show.h"
#include "sql/sql_table.h"
#include "sql/sql_tmp_table.h"
#include "sql/table.h"
#include "sql/thd_raii.h"
#include "sql_string.h"
#include "string_with_len.h"
Functions | |
void | print_on_empty_or_error (const THD *thd, String *str, enum_query_type query_type, bool on_empty, Json_on_response_type response_type, const Item *default_string) |
Print ON EMPTY or ON ERROR clauses. More... | |
static bool | print_json_table_column_type (const Field *field, String *str) |
Prints the type of a column in a JSON_TABLE expression. More... | |
static bool | print_nested_path (const THD *thd, const TABLE *table, const Json_table_column *col, enum_query_type query_type, String *str) |
Helper function to print a single NESTED PATH column. More... | |
Prints the type of a column in a JSON_TABLE expression.
|
static |
Helper function to print a single NESTED PATH column.
thd | the current session |
table | the TABLE object representing the JSON_TABLE expression |
col | the column to print |
query_type | the type of the query |
str | the string to print to |
void print_on_empty_or_error | ( | const THD * | thd, |
String * | str, | ||
enum_query_type | query_type, | ||
bool | on_empty, | ||
Json_on_response_type | response_type, | ||
const Item * | default_string | ||
) |
Print ON EMPTY or ON ERROR clauses.
thd | thread handler |
str | the string to print to |
query_type | formatting options |
on_empty | true for ON EMPTY, false for ON ERROR |
response_type | the type of the ON ERROR/ON EMPTY response |
default_string | the default string in case of DEFAULT type |