diff options
author | monty@mashka.mysql.fi <> | 2003-10-15 22:40:36 +0300 |
---|---|---|
committer | monty@mashka.mysql.fi <> | 2003-10-15 22:40:36 +0300 |
commit | 9ef2a83fbe93da4b5d69389e2c5368f96debedc7 (patch) | |
tree | dcc59a0d59657900722d4e51c1daeceec81df437 /include/my_base.h | |
parent | e71b53a8fec86ee65c136a9447b56361cbf918fb (diff) | |
download | mariadb-git-9ef2a83fbe93da4b5d69389e2c5368f96debedc7.tar.gz |
Portability fixes for windows
After merge fixes
Diffstat (limited to 'include/my_base.h')
-rw-r--r-- | include/my_base.h | 32 |
1 files changed, 18 insertions, 14 deletions
diff --git a/include/my_base.h b/include/my_base.h index e36f73afe75..5af8a968cd0 100644 --- a/include/my_base.h +++ b/include/my_base.h @@ -49,20 +49,24 @@ /* 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! */ +/* + 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 */ |