diff options
author | Igor Babaev <igor@askmonty.org> | 2016-08-31 16:16:54 -0700 |
---|---|---|
committer | Igor Babaev <igor@askmonty.org> | 2016-08-31 16:16:54 -0700 |
commit | 3fb4f9bb93868ce5c7e385d0545c00755d8e23bd (patch) | |
tree | 8ea1c005920b2ef9d7c7f1114c5433c728751b72 /sql/item_inetfunc.h | |
parent | 670760d504bebdf542df890f4d40f4cd3ff7a2c8 (diff) | |
parent | eb2c1474752a5f743db638d5b06612c9e3f07f74 (diff) | |
download | mariadb-git-3fb4f9bb93868ce5c7e385d0545c00755d8e23bd.tar.gz |
Merge branch '10.2-mdev9197-cons' of github.com:shagalla/server
into branch 10.2-mdev9197.
Diffstat (limited to 'sql/item_inetfunc.h')
-rw-r--r-- | sql/item_inetfunc.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/sql/item_inetfunc.h b/sql/item_inetfunc.h index f5a0596d860..741b9f7d997 100644 --- a/sql/item_inetfunc.h +++ b/sql/item_inetfunc.h @@ -37,6 +37,8 @@ public: maybe_null= 1; unsigned_flag= 1; } + Item *get_copy(THD *thd, MEM_ROOT *mem_root) + { return get_item_copy<Item_func_inet_aton>(thd, mem_root, this); } }; @@ -57,6 +59,8 @@ public: fix_length_and_charset(3 * 8 + 7, default_charset()); maybe_null= 1; } + Item *get_copy(THD *thd, MEM_ROOT *mem_root) + { return get_item_copy<Item_func_inet_ntoa>(thd, mem_root, this); } }; @@ -124,6 +128,8 @@ public: fix_length_and_charset(16, &my_charset_bin); maybe_null= 1; } + Item *get_copy(THD *thd, MEM_ROOT *mem_root) + { return get_item_copy<Item_func_inet6_aton>(thd, mem_root, this); } protected: virtual bool calc_value(String *arg, String *buffer); @@ -156,6 +162,8 @@ public: maybe_null= 1; } + Item *get_copy(THD *thd, MEM_ROOT *mem_root) + { return get_item_copy<Item_func_inet6_ntoa>(thd, mem_root, this); } protected: virtual bool calc_value(String *arg, String *buffer); @@ -176,6 +184,8 @@ public: public: virtual const char *func_name() const { return "is_ipv4"; } + Item *get_copy(THD *thd, MEM_ROOT *mem_root) + { return get_item_copy<Item_func_is_ipv4>(thd, mem_root, this); } protected: virtual bool calc_value(const String *arg); @@ -196,6 +206,8 @@ public: public: virtual const char *func_name() const { return "is_ipv6"; } + Item *get_copy(THD *thd, MEM_ROOT *mem_root) + { return get_item_copy<Item_func_is_ipv6>(thd, mem_root, this); } protected: virtual bool calc_value(const String *arg); @@ -216,6 +228,8 @@ public: public: virtual const char *func_name() const { return "is_ipv4_compat"; } + Item *get_copy(THD *thd, MEM_ROOT *mem_root) + { return get_item_copy<Item_func_is_ipv4_compat>(thd, mem_root, this); } protected: virtual bool calc_value(const String *arg); @@ -236,6 +250,8 @@ public: public: virtual const char *func_name() const { return "is_ipv4_mapped"; } + Item *get_copy(THD *thd, MEM_ROOT *mem_root) + { return get_item_copy<Item_func_is_ipv4_mapped>(thd, mem_root, this); } protected: virtual bool calc_value(const String *arg); |