diff options
author | pem@mysql.com <> | 2004-05-26 17:04:45 +0200 |
---|---|---|
committer | pem@mysql.com <> | 2004-05-26 17:04:45 +0200 |
commit | 71eddc362e7d22b9922bad9d093819592208726b (patch) | |
tree | e4e5bb1f8b9718ec195b357c050b3dc3254b447d /sql/ha_isam.cc | |
parent | 350d8a215bb83518519a2c7c1bc218170bb6b8a9 (diff) | |
parent | 94c0611e6b1f7a1ee93facc31a2f2876cf664e7a (diff) | |
download | mariadb-git-71eddc362e7d22b9922bad9d093819592208726b.tar.gz |
Merging 4.1 to 5.0.
Diffstat (limited to 'sql/ha_isam.cc')
-rw-r--r-- | sql/ha_isam.cc | 23 |
1 files changed, 13 insertions, 10 deletions
diff --git a/sql/ha_isam.cc b/sql/ha_isam.cc index 09c2aeceafc..85ab25a31d9 100644 --- a/sql/ha_isam.cc +++ b/sql/ha_isam.cc @@ -382,18 +382,21 @@ int ha_isam::create(const char *name, register TABLE *form, } +static key_range no_range= { (byte*) 0, 0, HA_READ_KEY_EXACT }; -ha_rows ha_isam::records_in_range(int inx, - const byte *start_key,uint start_key_len, - enum ha_rkey_function start_search_flag, - const byte *end_key,uint end_key_len, - enum ha_rkey_function end_search_flag) +ha_rows ha_isam::records_in_range(uint inx, key_range *min_key, + key_range *max_key) { + /* ISAM checks if 'key' pointer <> 0 to know if there is no range */ + if (!min_key) + min_key= &no_range; + if (!max_key) + max_key= &no_range; return (ha_rows) nisam_records_in_range(file, - inx, - start_key,start_key_len, - start_search_flag, - end_key,end_key_len, - end_search_flag); + (int) inx, + min_key->key, min_key->length, + min_key->flag, + max_key->key, max_key->length, + max_key->flag); } #endif /* HAVE_ISAM */ |