summaryrefslogtreecommitdiff
path: root/sql/item.h
diff options
context:
space:
mode:
authorholyfoot/hf@hfmain.(none) <>2007-06-14 16:41:10 +0500
committerholyfoot/hf@hfmain.(none) <>2007-06-14 16:41:10 +0500
commit8ccc50b303389879acc3055912577958d94547dc (patch)
tree6a54e529a87637aaecb9e9ea0eaa44a985ecf02c /sql/item.h
parentd870247de1f242c9f44c06e20a0fb2f5e308107d (diff)
parent20ad51500325027dcf629867c053ce0efeb5a81e (diff)
downloadmariadb-git-8ccc50b303389879acc3055912577958d94547dc.tar.gz
Merge bk@192.168.21.1:mysql-5.0
into mysql.com:/d2/hf/mrg/mysql-5.0-opt
Diffstat (limited to 'sql/item.h')
-rw-r--r--sql/item.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/sql/item.h b/sql/item.h
index a1704aa6103..9268afaba0c 100644
--- a/sql/item.h
+++ b/sql/item.h
@@ -1304,6 +1304,11 @@ public:
int fix_outer_field(THD *thd, Field **field, Item **reference);
virtual Item *update_value_transformer(byte *select_arg);
void print(String *str);
+ Field::geometry_type get_geometry_type()
+ {
+ DBUG_ASSERT(field_type() == MYSQL_TYPE_GEOMETRY);
+ return field->get_geometry_type();
+ }
friend class Item_default_value;
friend class Item_insert_value;
friend class st_select_lex_unit;
@@ -2570,6 +2575,7 @@ class Item_type_holder: public Item
protected:
TYPELIB *enum_set_typelib;
enum_field_types fld_type;
+ Field::geometry_type geometry_type;
void get_full_info(Item *item);
@@ -2589,6 +2595,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; };
};