diff options
author | Georgi Kodinov <joro@sun.com> | 2009-10-24 09:57:31 +0300 |
---|---|---|
committer | Georgi Kodinov <joro@sun.com> | 2009-10-24 09:57:31 +0300 |
commit | 9db41de0428c529582b281c75415b6f0feb8d8a4 (patch) | |
tree | a351f8da600536a5ddbd59b8f1fc97281141e181 /sql/item_geofunc.cc | |
parent | dd1719397ea92596918245206e055c6a5d433a53 (diff) | |
parent | dd02c4a12b1c210d65dbf940e0d5b59aa65b6326 (diff) | |
download | mariadb-git-9db41de0428c529582b281c75415b6f0feb8d8a4.tar.gz |
automerge
Diffstat (limited to 'sql/item_geofunc.cc')
-rw-r--r-- | sql/item_geofunc.cc | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/sql/item_geofunc.cc b/sql/item_geofunc.cc index a34204b7181..3c5990eb359 100644 --- a/sql/item_geofunc.cc +++ b/sql/item_geofunc.cc @@ -84,7 +84,9 @@ String *Item_func_geometry_from_wkb::val_str(String *str) if (args[0]->field_type() == MYSQL_TYPE_GEOMETRY) { - return args[0]->val_str(str); + String *str_ret= args[0]->val_str(str); + null_value= args[0]->null_value; + return str_ret; } wkb= args[0]->val_str(&arg_val); @@ -94,7 +96,10 @@ String *Item_func_geometry_from_wkb::val_str(String *str) str->set_charset(&my_charset_bin); if (str->reserve(SRID_SIZE, 512)) - return 0; + { + null_value= TRUE; /* purecov: inspected */ + return 0; /* purecov: inspected */ + } str->length(0); str->q_append(srid); if ((null_value= |