Navigation Menu

Skip to content

Commit

Permalink
Fix bulk insert nulls into geometry not null column
Browse files Browse the repository at this point in the history
refs #2281

[groonga-dev,02095]

Reported by yoku0825. Thanks!!!
  • Loading branch information
mmmaru777 committed Feb 4, 2014
1 parent 7e7baef commit 6eb8176
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ha_mroonga.cpp
Expand Up @@ -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:
{
Expand Down

0 comments on commit 6eb8176

Please sign in to comment.