diff options
author | Sergei Golubchik <sergii@pisem.net> | 2014-02-22 22:51:20 +0100 |
---|---|---|
committer | Sergei Golubchik <sergii@pisem.net> | 2014-02-22 22:51:20 +0100 |
commit | ff2e82f4a175b7b023cd167b2fa6e6fcd1bd192e (patch) | |
tree | 63150adc067c1bb6cb476eef00094083e1a53865 /sql/item_geofunc.cc | |
parent | 004642525d8c4ed02686719395faf477e94cd618 (diff) | |
parent | 3e03c9eae9089cd2cae0f378bd81ff29367f41eb (diff) | |
download | mariadb-git-ff2e82f4a175b7b023cd167b2fa6e6fcd1bd192e.tar.gz |
5.3 merge
Diffstat (limited to 'sql/item_geofunc.cc')
-rw-r--r-- | sql/item_geofunc.cc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sql/item_geofunc.cc b/sql/item_geofunc.cc index b5289c9b3cc..a38e9d416a7 100644 --- a/sql/item_geofunc.cc +++ b/sql/item_geofunc.cc @@ -859,7 +859,7 @@ String *Item_func_spatial_operation::val_str(String *str_value) str_value->length(0); str_value->q_append(srid); - if (!Geometry::create_from_opresult(&buffer1, str_value, res_receiver)) + if (Geometry::create_from_opresult(&buffer1, str_value, res_receiver)) goto exit; exit: @@ -1116,6 +1116,8 @@ int Item_func_buffer::Transporter::start_line() { if (buffer_op == Gcalc_function::op_difference) { + if (m_fn->reserve_op_buffer(1)) + return 1; m_fn->add_operation(Gcalc_function::op_false, 0); skip_line= TRUE; return 0; @@ -1317,7 +1319,7 @@ String *Item_func_buffer::val_str(String *str_value) str_value->length(0); str_value->q_append(srid); - if (!Geometry::create_from_opresult(&buffer, str_value, res_receiver)) + if (Geometry::create_from_opresult(&buffer, str_value, res_receiver)) goto mem_error; null_value= 0; |