34#define PARSE_FILE_TIMESTAMPLENGTH 19
72 const char *)
override;
78 const char *line,
uchar *base,
84 bool bad_format_errors);
104 bool bad_format_errors);
Kerberos Client Authentication nullptr
Definition: auth_kerberos_client_plugin.cc:250
Dummy hook for parsers which do not need hook for unknown keys.
Definition: parse_file.h:69
bool process_unknown_string(const char *&unknown_key, uchar *, MEM_ROOT *, const char *) override
Dummy unknown key hook.
Definition: parse_file.cc:520
Definition: parse_file.h:86
bool content_ok
Definition: parse_file.h:89
LEX_CSTRING file_type
Definition: parse_file.h:88
bool ok()
Definition: parse_file.h:97
friend File_parser * sql_parse_prepare(const LEX_STRING *file_name, MEM_ROOT *mem_root, bool bad_format_errors)
Prepare frm to parse (read to memory).
Definition: parse_file.cc:61
const LEX_CSTRING & type() const
Definition: parse_file.h:98
File_parser()
Definition: parse_file.h:92
const char * end
Definition: parse_file.h:87
const char * start
Definition: parse_file.h:87
bool parse(uchar *base, MEM_ROOT *mem_root, struct File_option *parameters, uint required, Unknown_key_hook *hook) const
parse parameters.
Definition: parse_file.cc:344
This hook used to catch no longer supported keys and process them for backward compatibility.
Definition: parse_file.h:59
virtual bool process_unknown_string(const char *&unknown_key, uchar *base, MEM_ROOT *mem_root, const char *end)=0
virtual ~Unknown_key_hook()=default
static MEM_ROOT mem_root
Definition: client_plugin.cc:113
Some integer typedefs for easier portability.
unsigned char uchar
Definition: my_inttypes.h:51
std::string file_name(Log_file_id file_id)
Provides name of the log file with the given file id, e.g.
Definition: log0pre_8_0_30.cc:93
Cursor end()
A past-the-end Cursor.
Definition: rules_table_service.cc:191
File_parser * sql_parse_prepare(const LEX_STRING *file_name, MEM_ROOT *mem_root, bool bad_format_errors)
Prepare frm to parse (read to memory).
Definition: parse_file.cc:61
file_opt_type
Definition: parse_file.h:36
@ FILE_OPTIONS_STRING
String (LEX_STRING)
Definition: parse_file.h:37
@ FILE_OPTIONS_ULONGLONG
ulonglong parameter (ulonglong)
Definition: parse_file.h:39
@ FILE_OPTIONS_ESTRING
Escaped string (LEX_STRING)
Definition: parse_file.h:38
@ FILE_OPTIONS_ULLLIST
list of ulonglong values (List<ulonglong>)
Definition: parse_file.h:44
@ FILE_OPTIONS_TIMESTAMP
timestamp (LEX_STRING have to be allocated with length 20 (19+1)
Definition: parse_file.h:40
@ FILE_OPTIONS_STRLIST
list of escaped strings (List<LEX_STRING>)
Definition: parse_file.h:42
bool get_file_options_ulllist(const char *&ptr, const char *end, const char *line, uchar *base, File_option *parameter, MEM_ROOT *mem_root)
Parser for FILE_OPTIONS_ULLLIST type value.
Definition: parse_file.cc:288
File_parser_dummy_hook file_parser_dummy_hook
Definition: parse_file.cc:43
Definition: parse_file.h:48
file_opt_type type
Option type.
Definition: parse_file.h:51
size_t offset
offset to base address of value
Definition: parse_file.h:50
LEX_CSTRING name
Name of the option.
Definition: parse_file.h:49
The MEM_ROOT is a simple arena, where allocations are carved out of larger blocks.
Definition: my_alloc.h:82
Definition: mysql_lex_string.h:39
const char * str
Definition: mysql_lex_string.h:40
size_t length
Definition: mysql_lex_string.h:41
Definition: mysql_lex_string.h:34