diff options
author | bar@gw.udmsearch.izhnet.ru <> | 2002-02-20 14:11:21 +0400 |
---|---|---|
committer | bar@gw.udmsearch.izhnet.ru <> | 2002-02-20 14:11:21 +0400 |
commit | fc74d81b3f41ff95d3d20f829740b28da41cce8a (patch) | |
tree | 20573ea174df56ec053e23fa07eb87679f3b7a38 /myisam/mi_key.c | |
parent | d477322963c6684e44038cfdb71e06f6d0944ec8 (diff) | |
download | mariadb-git-fc74d81b3f41ff95d3d20f829740b28da41cce8a.tar.gz |
This ChangeSet adds RTREE support into myisam library.
RTREEs will be used for GIS extension in MySQL
Diffstat (limited to 'myisam/mi_key.c')
-rw-r--r-- | myisam/mi_key.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/myisam/mi_key.c b/myisam/mi_key.c index 6ec8668ab61..055b18284de 100644 --- a/myisam/mi_key.c +++ b/myisam/mi_key.c @@ -18,6 +18,7 @@ #include "myisamdef.h" #include "m_ctype.h" +#include "sp_defs.h" #ifdef HAVE_IEEEFP_H #include <ieeefp.h> #endif @@ -39,6 +40,14 @@ uint _mi_make_key(register MI_INFO *info, uint keynr, uchar *key, reg1 MI_KEYSEG *keyseg; DBUG_ENTER("_mi_make_key"); + if(info->s->keyinfo[keynr].flag & HA_SPATIAL) + { + /* + TODO: nulls processing + */ + return sp_make_key(info,keynr,key,record,filepos); + } + start=key; for (keyseg=info->s->keyinfo[keynr].seg ; keyseg->type ;keyseg++) { |