diff options
author | unknown <monty@narttu.mysql.fi> | 2003-03-18 03:16:12 +0200 |
---|---|---|
committer | unknown <monty@narttu.mysql.fi> | 2003-03-18 03:16:12 +0200 |
commit | 71dabe96446df03a5e2db34a536ea22624aa22cd (patch) | |
tree | 4cbc2905eb99dbc5a88c0e19fd34ad99336c9bc0 /sql/ha_myisam.cc | |
parent | 14d4cddea3cbd6325f75c8bb2181ec510e90f9ff (diff) | |
download | mariadb-git-71dabe96446df03a5e2db34a536ea22624aa22cd.tar.gz |
Test of range optimizer in InnoDB
sql/ha_myisam.cc:
Added function comment
Diffstat (limited to 'sql/ha_myisam.cc')
-rw-r--r-- | sql/ha_myisam.cc | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/sql/ha_myisam.cc b/sql/ha_myisam.cc index 6933b47449b..fd1a115ddff 100644 --- a/sql/ha_myisam.cc +++ b/sql/ha_myisam.cc @@ -1242,6 +1242,35 @@ longlong ha_myisam::get_auto_increment() } +/* + Find out how many rows there is in the given range + + SYNOPSIS + records_in_range() + inx Index to use + start_key Start of range. Null pointer if from first key + start_key_len Length of start key + start_search_flag Flag if start key should be included or not + end_key End of range. Null pointer if to last key + end_key_len Length of end key + end_search_flag Flag if start key should be included or not + + NOTES + start_search_flag can have one of the following values: + HA_READ_KEY_EXACT Include the key in the range + HA_READ_AFTER_KEY Don't include key in range + + end_search_flag can have one of the following values: + HA_READ_BEFORE_KEY Don't include key in range + HA_READ_AFTER_KEY Include all 'end_key' values in the range + + RETURN + HA_POS_ERROR Something is wrong with the index tree. + 0 There is no matching keys in the given range + number > 0 There is approximately 'number' matching rows in + the range. +*/ + ha_rows ha_myisam::records_in_range(int inx, const byte *start_key,uint start_key_len, enum ha_rkey_function start_search_flag, @@ -1256,6 +1285,7 @@ ha_rows ha_myisam::records_in_range(int inx, end_search_flag); } + int ha_myisam::ft_read(byte * buf) { int error; |