diff options
author | unknown <holyfoot/hf@hfmain.(none)> | 2007-10-12 15:33:26 +0500 |
---|---|---|
committer | unknown <holyfoot/hf@hfmain.(none)> | 2007-10-12 15:33:26 +0500 |
commit | 9908eceb2a9e9c5039b082d442b65f00f0218932 (patch) | |
tree | dec235c3e716927534da8ddfc44ce5e39e800a7c /sql/item.cc | |
parent | ee1640701635b4ebcb1309388c90dcf49be3f4cb (diff) | |
parent | 813e6bcbbda3d7e4b6ad803e2993f9718ebe7daa (diff) | |
download | mariadb-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.cc')
-rw-r--r-- | sql/item.cc | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/sql/item.cc b/sql/item.cc index d8080d62c39..42d80f414fb 100644 --- a/sql/item.cc +++ b/sql/item.cc @@ -4457,11 +4457,8 @@ Field *Item::tmp_table_field_from_field_type(TABLE *table, bool fixed_length) field= new Field_blob(max_length, maybe_null, name, collation.collation); break; // Blob handled outside of case case MYSQL_TYPE_GEOMETRY: - field= new Field_geom(max_length, maybe_null, name, table->s, - (Field::geometry_type) - ((type() == Item::TYPE_HOLDER) ? - ((Item_type_holder *)this)->get_geometry_type() : - ((Item_geometry_func *)this)->get_geometry_type())); + field= new Field_geom(max_length, maybe_null, + name, table->s, get_geometry_type()); } if (field) field->init(table); @@ -6586,9 +6583,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(); } |