Kenji Maruyama
null+****@clear*****
Tue Feb 4 09:01:57 JST 2014
Kenji Maruyama 2014-02-04 09:01:57 +0900 (Tue, 04 Feb 2014) New Revision: 6eb81763866ae01ed5f9d03e366a28db9901b87b https://github.com/mroonga/mroonga/commit/6eb81763866ae01ed5f9d03e366a28db9901b87b Message: Fix bulk insert nulls into geometry not null column refs #2281 [groonga-dev,02095] Reported by yoku0825. Thanks!!! Modified files: ha_mroonga.cpp Modified: ha_mroonga.cpp (+3 -1) =================================================================== --- ha_mroonga.cpp 2014-02-04 08:53:19 +0900 (2ede276) +++ ha_mroonga.cpp 2014-02-04 09:01:57 +0900 (995a0a8) @@ -1183,7 +1183,9 @@ static int mrn_set_geometry(grn_ctx *ctx, grn_obj *buf, Geometry_buffer buffer; Geometry *geometry; - geometry = Geometry::construct(&buffer, wkb, wkb_size); + if (!(geometry = Geometry::construct(&buffer, wkb, wkb_size))) { + return -1; + } switch (geometry->get_class_info()->m_type_id) { case Geometry::wkb_point: { -------------- next part -------------- HTML����������������������������... Download