MySQL  8.0.18
Source Code Documentation
table_function.cc File Reference
#include "sql/table_function.h"
#include <string.h>
#include <algorithm>
#include <memory>
#include <new>
#include "m_string.h"
#include "my_sys.h"
#include "mysql/psi/psi_base.h"
#include "mysql/udf_registration_types.h"
#include "mysql_com.h"
#include "mysql_time.h"
#include "mysqld_error.h"
#include "prealloced_array.h"
#include "sql/field.h"
#include "sql/handler.h"
#include "sql/item.h"
#include "sql/item_json_func.h"
#include "sql/json_dom.h"
#include "sql/json_path.h"
#include "sql/my_decimal.h"
#include "sql/psi_memory_key.h"
#include "sql/rpl_utility.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/system_variables.h"
#include "sql/table.h"
#include "sql_string.h"
#include "template_utils.h"

Functions

bool can_store_json_value_unencoded (const Field *field_to_store_in, const Json_wrapper *json_data)
 Check if a JSON value is a JSON OPAQUE, and if it can be printed in the field as a non base64 value. More...
 
static bool print_on_empty_error (String *str, enum_jtc_on jto, LEX_STRING *default_str)
 

Function Documentation

◆ can_store_json_value_unencoded()

bool can_store_json_value_unencoded ( const Field field_to_store_in,
const Json_wrapper json_data 
)

Check if a JSON value is a JSON OPAQUE, and if it can be printed in the field as a non base64 value.

This is currently used by JSON_TABLE to see if we can print the JSON value in a field without having to encode it in base64.

Parameters
field_to_store_inThe field we want to store the JSON value in
json_dataThe JSON value we want to store.
Returns
true The JSON value can be stored without encoding it in base64 false The JSON value can not be stored without encoding it, or it is not a JSON OPAQUE value.

◆ print_on_empty_error()

static bool print_on_empty_error ( String str,
enum_jtc_on  jto,
LEX_STRING default_str 
)
static