diff options
author | holyfoot/hf@mysql.com/deer.(none) <> | 2006-08-18 22:29:35 +0500 |
---|---|---|
committer | holyfoot/hf@mysql.com/deer.(none) <> | 2006-08-18 22:29:35 +0500 |
commit | cf76884b38917ca685c7d44f891163ac70b16acb (patch) | |
tree | ab1925ed0d6f80f908d33f53dfdb306d202c1e25 /sql/item_geofunc.cc | |
parent | d094b5f2f50254fb2d9f18035b5ab005f27ece70 (diff) | |
download | mariadb-git-cf76884b38917ca685c7d44f891163ac70b16acb.tar.gz |
Fix for the failing gis.test
Diffstat (limited to 'sql/item_geofunc.cc')
-rw-r--r-- | sql/item_geofunc.cc | 7 |
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() |