summaryrefslogtreecommitdiff
path: root/sql/item_geofunc.cc
diff options
context:
space:
mode:
authorholyfoot/hf@mysql.com/deer.(none) <>2006-08-18 22:29:35 +0500
committerholyfoot/hf@mysql.com/deer.(none) <>2006-08-18 22:29:35 +0500
commitcf76884b38917ca685c7d44f891163ac70b16acb (patch)
treeab1925ed0d6f80f908d33f53dfdb306d202c1e25 /sql/item_geofunc.cc
parentd094b5f2f50254fb2d9f18035b5ab005f27ece70 (diff)
downloadmariadb-git-cf76884b38917ca685c7d44f891163ac70b16acb.tar.gz
Fix for the failing gis.test
Diffstat (limited to 'sql/item_geofunc.cc')
-rw-r--r--sql/item_geofunc.cc7
1 files changed, 5 insertions, 2 deletions
diff --git a/sql/item_geofunc.cc b/sql/item_geofunc.cc
index ee4df8f1cfc..ef71dc9b8b5 100644
--- a/sql/item_geofunc.cc
+++ b/sql/item_geofunc.cc
@@ -27,8 +27,11 @@
Field *Item_geometry_func::tmp_table_field(TABLE *t_arg)
{
- return new Field_geom(max_length, maybe_null, name, t_arg->s,
- (Field::geometry_type) get_geometry_type());
+ Field *result;
+ if ((result= new Field_geom(max_length, maybe_null, name, t_arg->s,
+ (Field::geometry_type) get_geometry_type())))
+ result->init(t_arg);
+ return result;
}
void Item_geometry_func::fix_length_and_dec()