diff options
author | unknown <heikki@hundin.mysql.fi> | 2003-02-18 19:43:41 +0200 |
---|---|---|
committer | unknown <heikki@hundin.mysql.fi> | 2003-02-18 19:43:41 +0200 |
commit | b3fa1d867f29137240c46a6a0396bb9a1c7019fa (patch) | |
tree | 78b5f15491b173d4287553ba50a0ed18b9b4ae52 /sql/ha_innodb.cc | |
parent | 65508b65ba04d499f900259d52d6b16be871ef4a (diff) | |
download | mariadb-git-b3fa1d867f29137240c46a6a0396bb9a1c7019fa.tar.gz |
page0cur.c:
Prepare for 5.x where HA_READ_PREFIX_LAST may pass only a few first bytes of the last field in a key value
ha_innodb.cc:
In 4.0 always assume HA_READ_PREFIX_LAST passes a complete-field prefix of a key value; LIKE queries use a padding trick
sql/ha_innodb.cc:
In 4.0 always assume HA_READ_PREFIX_LAST passes a complete-field prefix of a key value; LIKE queries use a padding trick
innobase/page/page0cur.c:
Prepare for 5.x where HA_READ_PREFIX_LAST may pass only a few first bytes of the last field in a key value
Diffstat (limited to 'sql/ha_innodb.cc')
-rw-r--r-- | sql/ha_innodb.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sql/ha_innodb.cc b/sql/ha_innodb.cc index fce9500a47c..3ceb5cbeb36 100644 --- a/sql/ha_innodb.cc +++ b/sql/ha_innodb.cc @@ -2256,8 +2256,8 @@ convert_search_mode_to_innobase( case HA_READ_BEFORE_KEY: return(PAGE_CUR_L); case HA_READ_PREFIX: return(PAGE_CUR_GE); case HA_READ_PREFIX_LAST: return(PAGE_CUR_LE); - /* In MySQL HA_READ_PREFIX and HA_READ_PREFIX_LAST always - use a complete-field-prefix of a kay value as the search + /* In MySQL-4.0 HA_READ_PREFIX and HA_READ_PREFIX_LAST always + pass a complete-field-prefix of a key value as the search tuple. I.e., it is not allowed that the last field would just contain n first bytes of the full field value. MySQL uses a 'padding' trick to convert LIKE 'abc%' |