#include <assert.h>
#include <sys/types.h>
#include <array>
#include "my_inttypes.h"
#include "my_table_map.h"
#include "sql-common/json_dom.h"
#include "sql-common/json_path.h"
#include "sql/create_field.h"
#include "sql/enum_query_type.h"
#include "sql/mem_root_array.h"
#include "sql/psi_memory_key.h"
#include "sql/sql_const.h"
#include "sql/sql_list.h"
#include "sql/table.h"
Go to the source code of this file.
◆ MAX_NESTED_PATH
| #define MAX_NESTED_PATH 16 |
◆ enum_jt_column
Type of columns for JSON_TABLE function.
| Enumerator |
|---|
| JTC_ORDINALITY | |
| JTC_PATH | |
| JTC_EXISTS | |
| JTC_NESTED_PATH | |
◆ Json_on_response_type
Types of ON EMPTY/ON ERROR clauses for JSON_TABLE and JSON_VALUE.
- Note
- uint16 enum base limitation is necessary for YYSTYPE.
| Enumerator |
|---|
| ERROR | |
| NULL_VALUE | |
| DEFAULT | |
| IMPLICIT | |
◆ jt_skip_reason
Reason for skipping a NESTED PATH.
| Enumerator |
|---|
| JTS_NONE | |
| JTS_EOD | |
| JTS_SIBLING | |
◆ print_on_empty_or_error()
Print ON EMPTY or ON ERROR clauses.
- Parameters
-
| 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 |