1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-08 11:22:35 +03:00
This commit is contained in:
Brave Galera Crew
2019-01-23 15:30:00 +04:00
committed by Sergey Vojtovich
parent 382115b992
commit 36a2a185fe
791 changed files with 28035 additions and 8865 deletions

View File

@@ -1804,5 +1804,56 @@ public:
Item *get_copy(THD *thd)
{ return get_item_copy<Item_temptable_rowid>(thd, this); }
};
#ifdef WITH_WSREP
#include "wsrep_api.h"
class Item_func_wsrep_last_written_gtid: public Item_str_ascii_func
{
String gtid_str;
public:
Item_func_wsrep_last_written_gtid(THD *thd): Item_str_ascii_func(thd) {}
const char *func_name() const { return "wsrep_last_written_gtid"; }
String *val_str_ascii(String *);
bool fix_length_and_dec()
{
max_length= WSREP_GTID_STR_LEN;
maybe_null= true;
return FALSE;
}
Item *get_copy(THD *thd)
{ return get_item_copy<Item_func_wsrep_last_written_gtid>(thd, this); }
};
class Item_func_wsrep_last_seen_gtid: public Item_str_ascii_func
{
String gtid_str;
public:
Item_func_wsrep_last_seen_gtid(THD *thd): Item_str_ascii_func(thd) {}
const char *func_name() const { return "wsrep_last_seen_gtid"; }
String *val_str_ascii(String *);
bool fix_length_and_dec()
{
max_length= WSREP_GTID_STR_LEN;
maybe_null= true;
return FALSE;
}
Item *get_copy(THD *thd)
{ return get_item_copy<Item_func_wsrep_last_seen_gtid>(thd, this); }
};
class Item_func_wsrep_sync_wait_upto: public Item_int_func
{
String value;
public:
Item_func_wsrep_sync_wait_upto(THD *thd, Item *a): Item_int_func(thd, a) {}
Item_func_wsrep_sync_wait_upto(THD *thd, Item *a, Item* b): Item_int_func(thd, a, b) {}
const Type_handler *type_handler() const { return &type_handler_string; }
const char *func_name() const { return "wsrep_sync_wait_upto_gtid"; }
longlong val_int();
Item *get_copy(THD *thd)
{ return get_item_copy<Item_func_wsrep_sync_wait_upto>(thd, this); }
};
#endif /* WITH_WSREP */
#endif /* ITEM_STRFUNC_INCLUDED */