diff options
author | unknown <holyfoot/hf@deer.(none)> | 2006-10-01 15:21:06 +0500 |
---|---|---|
committer | unknown <holyfoot/hf@deer.(none)> | 2006-10-01 15:21:06 +0500 |
commit | 68ecb0cee17f0274958ca6014bddbfe2046af37c (patch) | |
tree | b691f8acc3f551034a6219747b17562a10a559ee /storage | |
parent | d0ab146b7ebfa54aedf831d76181e70a8fa2da84 (diff) | |
parent | e1a3b58ac10f90512ea6848649ac22b3af8a9d9d (diff) | |
download | mariadb-git-68ecb0cee17f0274958ca6014bddbfe2046af37c.tar.gz |
Merge bk@192.168.21.1:mysql-5.1-opt
into mysql.com:/home/hf/work/21888/my51-21888
Diffstat (limited to 'storage')
-rw-r--r-- | storage/myisam/mi_range.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/storage/myisam/mi_range.c b/storage/myisam/mi_range.c index e78f3b11625..a28aed81aec 100644 --- a/storage/myisam/mi_range.c +++ b/storage/myisam/mi_range.c @@ -71,6 +71,21 @@ ha_rows mi_records_in_range(MI_INFO *info, int inx, key_range *min_key, uchar * key_buff; uint start_key_len; + /* + The problem is that the optimizer doesn't support + RTree keys properly at the moment. + Hope this will be fixed some day. + But now NULL in the min_key means that we + didn't make the task for the RTree key + and expect BTree functionality from it. + As it's not able to handle such request + we return the error. + */ + if (!min_key) + { + res= HA_POS_ERROR; + break; + } key_buff= info->lastkey+info->s->base.max_key_length; start_key_len= _mi_pack_key(info,inx, key_buff, (uchar*) min_key->key, min_key->length, |