summaryrefslogtreecommitdiff
path: root/sql/field.h
diff options
context:
space:
mode:
authorAlexander Barkov <bar@mariadb.com>2019-10-10 08:12:14 +0400
committerAlexander Barkov <bar@mariadb.com>2019-10-10 08:12:14 +0400
commit312ba3cc3dd13fe3da1aeac8a32887be98c8a7ae (patch)
tree608d138c261c1b20fea2daaa0a88b53139b3643f /sql/field.h
parentb37386d854b37743a7b4ae578312dd27bec055ce (diff)
downloadmariadb-git-312ba3cc3dd13fe3da1aeac8a32887be98c8a7ae.tar.gz
MDEV-20783 INET6 cannot be converted to BINARY(16)
Diffstat (limited to 'sql/field.h')
-rw-r--r--sql/field.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/sql/field.h b/sql/field.h
index 9c98ea810f6..a0d8476df94 100644
--- a/sql/field.h
+++ b/sql/field.h
@@ -742,6 +742,7 @@ protected:
}
void error_generated_column_function_is_not_allowed(THD *thd, bool error)
const;
+ static void do_field_eq(Copy_field *copy);
static void do_field_int(Copy_field *copy);
static void do_field_real(Copy_field *copy);
static void do_field_string(Copy_field *copy);
@@ -893,6 +894,10 @@ public:
*/
typedef void Copy_func(Copy_field*);
virtual Copy_func *get_copy_func(const Field *from) const= 0;
+ virtual Copy_func *get_copy_func_to(const Field *to) const
+ {
+ return to->get_copy_func(this);
+ }
/* Store functions returns 1 on overflow and -1 on fatal error */
virtual int store_field(Field *from) { return from->save_in_field(this); }
virtual int save_in_field(Field *to)= 0;