summaryrefslogtreecommitdiff
path: root/sql/item.cc
diff options
context:
space:
mode:
authorunknown <holyfoot/hf@hfmain.(none)>2007-10-12 15:35:16 +0500
committerunknown <holyfoot/hf@hfmain.(none)>2007-10-12 15:35:16 +0500
commit1ccf107a5e7ee705a0bf8ac90b1aa97b3f93971b (patch)
treefe59a81bee0078ad410dd130230659775425ec68 /sql/item.cc
parentf30eacb223f581ece4bce02b3c4dfac1310f9f72 (diff)
parent813e6bcbbda3d7e4b6ad803e2993f9718ebe7daa (diff)
downloadmariadb-git-1ccf107a5e7ee705a0bf8ac90b1aa97b3f93971b.tar.gz
Merge bk@192.168.21.1:mysql-5.0-opt
into mysql.com:/home/hf/work/31155/my50-31155 sql/item.cc: Auto merged
Diffstat (limited to 'sql/item.cc')
-rw-r--r--sql/item.cc11
1 files changed, 3 insertions, 8 deletions
diff --git a/sql/item.cc b/sql/item.cc
index b4d1e1e2f52..d1a847afe03 100644
--- a/sql/item.cc
+++ b/sql/item.cc
@@ -4399,11 +4399,8 @@ Field *Item::tmp_table_field_from_field_type(TABLE *table)
collation.collation);
break; // Blob handled outside of case
case MYSQL_TYPE_GEOMETRY:
- return new Field_geom(max_length, maybe_null, name, table,
- (Field::geometry_type)
- ((type() == Item::TYPE_HOLDER) ?
- ((Item_type_holder *)this)->get_geometry_type() :
- ((Item_geometry_func *)this)->get_geometry_type()));
+ return new Field_geom(max_length, maybe_null,
+ name, table, get_geometry_type());
}
}
@@ -6524,9 +6521,7 @@ Item_type_holder::Item_type_holder(THD *thd, Item *item)
decimals= 0;
prev_decimal_int_part= item->decimal_int_part();
if (item->field_type() == MYSQL_TYPE_GEOMETRY)
- geometry_type= (item->type() == Item::FIELD_ITEM) ?
- ((Item_field *)item)->get_geometry_type() :
- (Field::geometry_type)((Item_geometry_func *)item)->get_geometry_type();
+ geometry_type= item->get_geometry_type();
}