diff options
author | unknown <holyfoot/hf@mysql.com/deer.(none)> | 2006-08-18 22:29:35 +0500 |
---|---|---|
committer | unknown <holyfoot/hf@mysql.com/deer.(none)> | 2006-08-18 22:29:35 +0500 |
commit | 8e2b4a3399d68f337d2969beca791ffb3dfb3405 (patch) | |
tree | ab1925ed0d6f80f908d33f53dfdb306d202c1e25 /sql/item_geofunc.cc | |
parent | 655d344b3cc3a87234772fff4b5a64774db53fa3 (diff) | |
download | mariadb-git-8e2b4a3399d68f337d2969beca791ffb3dfb3405.tar.gz |
Fix for the failing gis.test
mysql-test/r/gis.result:
result fixed
sql/item_geofunc.cc:
new_field->init() call added
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() |