diff options
author | monty@narttu.mysql.fi <> | 2003-02-26 01:03:47 +0200 |
---|---|---|
committer | monty@narttu.mysql.fi <> | 2003-02-26 01:03:47 +0200 |
commit | 9a46698e1efe164ac17ce0ca82b8e8ed12892c09 (patch) | |
tree | c9b14451b3f66dc4b11dc35d49edd35f23787e07 /include/my_base.h | |
parent | f4e1a2f292a03f4d9b5072365ef6e9ebac1cb595 (diff) | |
parent | 045ac4b84b783fd93edd45abdd63b87a04584987 (diff) | |
download | mariadb-git-9a46698e1efe164ac17ce0ca82b8e8ed12892c09.tar.gz |
Merge with 4.0.11
Diffstat (limited to 'include/my_base.h')
-rw-r--r-- | include/my_base.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/include/my_base.h b/include/my_base.h index f167ae3d30e..b806436fe0e 100644 --- a/include/my_base.h +++ b/include/my_base.h @@ -49,6 +49,21 @@ /* The following is parameter to ha_rkey() how to use key */ +/* We define a complete-field prefix of a key value as a prefix where the +last included field in the prefix contains the full field, not just some bytes +from the start of the field. A partial-field prefix is allowed to +contain only a few first bytes from the last included field. + +Below HA_READ_KEY_EXACT, ..., HA_READ_BEFORE_KEY can take a +complete-field prefix of a key value as the search key. HA_READ_PREFIX +and HA_READ_PREFIX_LAST could also take a partial-field prefix, but +currently (4.0.10) they are only used with complete-field prefixes. MySQL uses +a padding trick to implement LIKE 'abc%' queries. + +NOTE that in InnoDB HA_READ_PREFIX_LAST will NOT work with a partial-field +prefix because InnoDB currently strips spaces from the end of varchar +fields! */ + enum ha_rkey_function { HA_READ_KEY_EXACT, /* Find first record else error */ HA_READ_KEY_OR_NEXT, /* Record or next record */ |