25#ifndef ITEM_GTID_INCLUDED
26#define ITEM_GTID_INCLUDED
60 return "wait_for_executed_gtid_set";
78 const char *
func_name()
const override {
return "gtid_subset"; }
93 const char *
func_name()
const override {
return "gtid_subtract"; }
Definition: item_gtid_func.h:70
bool is_bool_func() const override
Definition: item_gtid_func.h:83
longlong val_int() override
Return 1 if both arguments are Gtid_sets and the first is a subset of the second.
Definition: item_gtid_func.cc:128
String buf1
Definition: item_gtid_func.h:71
bool resolve_type(THD *thd) override
Resolve type-related information for this item, such as result field type, maximum size,...
Definition: item_gtid_func.h:79
Item_func_gtid_subset(const POS &pos, Item *a, Item *b)
Definition: item_gtid_func.h:75
const char * func_name() const override
Definition: item_gtid_func.h:78
String buf2
Definition: item_gtid_func.h:72
Definition: item_gtid_func.h:86
const char * func_name() const override
Definition: item_gtid_func.h:93
Item_func_gtid_subtract(const POS &pos, Item *a, Item *b)
Definition: item_gtid_func.h:90
String buf1
Definition: item_gtid_func.h:87
String * val_str_ascii(String *) override
Definition: item_gtid_func.cc:181
bool resolve_type(THD *) override
Resolve type-related information for this item, such as result field type, maximum size,...
Definition: item_gtid_func.cc:163
String buf2
Definition: item_gtid_func.h:87
bool param_type_is_default(THD *thd, uint start, uint end, uint step, enum_field_types def)
For arguments of this Item_func ("args" array), in range [start, start+step, start+2*step,...
Definition: item_func.cc:528
bool null_on_null
Affects how to determine that NULL argument implies a NULL function return.
Definition: item_func.h:186
Definition: item_func.h:1020
Definition: item_strfunc.h:148
This class is used for implementing the new wait_for_executed_gtid_set function and the functions rel...
Definition: item_gtid_func.h:42
Item_int_func super
Definition: item_gtid_func.h:43
const char * func_name() const override
Definition: item_gtid_func.h:59
bool do_itemize(Parse_context *pc, Item **res) override
The core function that does the actual itemization.
Definition: item_gtid_func.cc:36
Item_wait_for_executed_gtid_set(const POS &pos, Item *a, Item *b)
Definition: item_gtid_func.h:52
longlong val_int() override
Wait until the given gtid_set is found in the executed gtid_set independent of the slave threads.
Definition: item_gtid_func.cc:54
bool resolve_type(THD *thd) override
Resolve type-related information for this item, such as result field type, maximum size,...
Definition: item_gtid_func.h:62
String value
Definition: item_gtid_func.h:45
Item_wait_for_executed_gtid_set(const POS &pos, Item *a)
Definition: item_gtid_func.h:48
Base class that is used to represent any kind of expression in a relational query.
Definition: item.h:930
void set_nullable(bool nullable)
Definition: item.h:3687
Using this class is fraught with peril, and you need to be very careful when doing so.
Definition: sql_string.h:167
For each client connection we create a separate thread with THD serving as a thread/connection descri...
Definition: sql_lexer_thd.h:36
@ MYSQL_TYPE_DOUBLE
Definition: field_types.h:61
long long int longlong
Definition: my_inttypes.h:55
Our own string classes, used pervasively throughout the executor.
Bison "location" class.
Definition: parse_location.h:43
Environment data for the contextualization phase.
Definition: parse_tree_node_base.h:420