summaryrefslogtreecommitdiff
path: root/sql/item.h
diff options
context:
space:
mode:
authorunknown <holyfoot/hf@hfmain.(none)>2007-10-12 15:33:26 +0500
committerunknown <holyfoot/hf@hfmain.(none)>2007-10-12 15:33:26 +0500
commit9908eceb2a9e9c5039b082d442b65f00f0218932 (patch)
treedec235c3e716927534da8ddfc44ce5e39e800a7c /sql/item.h
parentee1640701635b4ebcb1309388c90dcf49be3f4cb (diff)
parent813e6bcbbda3d7e4b6ad803e2993f9718ebe7daa (diff)
downloadmariadb-git-9908eceb2a9e9c5039b082d442b65f00f0218932.tar.gz
Merge mysql.com:/home/hf/work/31155/my50-31155
into mysql.com:/home/hf/work/31155/my51-31155 sql/item.h: Auto merged sql/item_geofunc.h: Auto merged sql/item.cc: merging sql/item_geofunc.cc: merging
Diffstat (limited to 'sql/item.h')
-rw-r--r--sql/item.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/sql/item.h b/sql/item.h
index 2beb4b66fba..ab82bdef8bb 100644
--- a/sql/item.h
+++ b/sql/item.h
@@ -1001,6 +1001,8 @@ public:
*/
virtual bool result_as_longlong() { return FALSE; }
bool is_datetime();
+ virtual Field::geometry_type get_geometry_type() const
+ { return Field::GEOM_GEOMETRY; };
};
@@ -1469,7 +1471,7 @@ public:
int fix_outer_field(THD *thd, Field **field, Item **reference);
virtual Item *update_value_transformer(uchar *select_arg);
void print(String *str);
- Field::geometry_type get_geometry_type()
+ Field::geometry_type get_geometry_type() const
{
DBUG_ASSERT(field_type() == MYSQL_TYPE_GEOMETRY);
return field->get_geometry_type();
@@ -2807,7 +2809,7 @@ public:
Field *make_field_by_type(TABLE *table);
static uint32 display_length(Item *item);
static enum_field_types get_real_type(Item *);
- Field::geometry_type get_geometry_type() { return geometry_type; };
+ Field::geometry_type get_geometry_type() const { return geometry_type; };
};