Commit f077c2b5 authored by unknown's avatar unknown

Fix for bug #10839 (myisamchk -rq crashes on spatial field)


myisam/mi_create.c:
  We actually have one real keyseg here - the geometry object itself.
  So we have to reduce on (sp_segs-1)
parent d2e8bf2c
......@@ -253,7 +253,7 @@ int mi_create(const char *name,uint keys,MI_KEYDEF *keydefs,
MYI file and SPATIAL key *does have* additional sp_segs keysegs.
We'd better delete them now
*/
keydef->keysegs-=sp_segs;
keydef->keysegs-=(sp_segs-1);
}
for (j=0, keyseg=keydef->seg ; (int) j < keydef->keysegs ;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment