summaryrefslogtreecommitdiff
path: root/sql/item_geofunc.h
diff options
context:
space:
mode:
authorAlexander Barkov <bar@mariadb.org>2017-05-06 19:12:59 +0400
committerAlexander Barkov <bar@mariadb.org>2017-05-06 19:12:59 +0400
commit46239f29c6e624da3b516a25433b5dfb97fe12ea (patch)
treeef896007e3aed74bb7345fe0a5fb2b8322adb5c8 /sql/item_geofunc.h
parent5a644e177f152af6904160259b5e0afac2307747 (diff)
downloadmariadb-git-46239f29c6e624da3b516a25433b5dfb97fe12ea.tar.gz
MDEV-12713 Define virtual type_handler() for all Item classes
Diffstat (limited to 'sql/item_geofunc.h')
-rw-r--r--sql/item_geofunc.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/sql/item_geofunc.h b/sql/item_geofunc.h
index b6a49a38743..633945e8e73 100644
--- a/sql/item_geofunc.h
+++ b/sql/item_geofunc.h
@@ -40,6 +40,7 @@ public:
Item_geometry_func(THD *thd, List<Item> &list): Item_str_func(thd, list) {}
void fix_length_and_dec();
enum_field_types field_type() const { return MYSQL_TYPE_GEOMETRY; }
+ const Type_handler *type_handler() const { return &type_handler_geometry; }
};
class Item_func_geometry_from_text: public Item_geometry_func
@@ -101,6 +102,7 @@ public:
const char *func_name() const { return "st_aswkb"; }
String *val_str(String *);
enum_field_types field_type() const { return MYSQL_TYPE_LONG_BLOB; }
+ const Type_handler *type_handler() const { return &type_handler_long_blob; }
Item *get_copy(THD *thd, MEM_ROOT *mem_root)
{ return get_item_copy<Item_func_as_wkb>(thd, mem_root, this); }
};