Additional fix for #12839

sql/field.cc:
  This code still could work for VERY out-of-dated databases
sql/spatial.cc:
  small syntax fixes
This commit is contained in:
unknown 2005-10-31 12:05:27 +04:00
parent 8fdef257ae
commit b47f1efb25
2 changed files with 10 additions and 11 deletions

View File

@ -5745,8 +5745,7 @@ void Field_blob::get_key_image(char *buff,uint length,
return;
}
get_ptr(&blob);
gobj= Geometry::construct(&buffer,
blob + SRID_SIZE, blob_length - SRID_SIZE);
gobj= Geometry::construct(&buffer, blob, blob_length);
if (gobj->get_mbr(&mbr, &dummy))
bzero(buff, SIZEOF_STORED_DOUBLE*4);
else