summaryrefslogtreecommitdiff
path: root/myisam
diff options
context:
space:
mode:
authorunknown <hf@deer.(none)>2005-01-03 17:33:04 +0400
committerunknown <hf@deer.(none)>2005-01-03 17:33:04 +0400
commitd942c9a87b9fedd6559f97650f3223cfb10819b0 (patch)
treee0ae67b48d017a61a606076d31f0765a85051f82 /myisam
parent7a18eb7a6bee68767b0b2d59722d0bdfe551f7ce (diff)
downloadmariadb-git-d942c9a87b9fedd6559f97650f3223cfb10819b0.tar.gz
Fix for bug #7545 (Undefined symbols if --without-geometry)
myisam/mi_check.c: This code should be ifdefed in no HAVE_SPATIAL case
Diffstat (limited to 'myisam')
-rw-r--r--myisam/mi_check.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/myisam/mi_check.c b/myisam/mi_check.c
index f7e7ffd42f6..0123278a23f 100644
--- a/myisam/mi_check.c
+++ b/myisam/mi_check.c
@@ -1466,12 +1466,14 @@ static int writekeys(MI_CHECK *param, register MI_INFO *info, byte *buff,
if (_mi_ft_add(info,i,(char*) key,buff,filepos))
goto err;
}
+#ifdef HAVE_SPATIAL
else if (info->s->keyinfo[i].flag & HA_SPATIAL)
{
uint key_length=_mi_make_key(info,i,key,buff,filepos);
if (rtree_insert(info, i, key, key_length))
goto err;
}
+#endif /*HAVE_SPATIAL*/
else
{
uint key_length=_mi_make_key(info,i,key,buff,filepos);