summaryrefslogtreecommitdiff
path: root/sql/ha_innodb.cc
diff options
context:
space:
mode:
authorheikki@hundin.mysql.fi <>2003-02-18 19:43:41 +0200
committerheikki@hundin.mysql.fi <>2003-02-18 19:43:41 +0200
commite690ea09f7ef22079246f00360cccf109452deda (patch)
tree78b5f15491b173d4287553ba50a0ed18b9b4ae52 /sql/ha_innodb.cc
parent126e0857499a730458cca7f243a634b8f30be826 (diff)
downloadmariadb-git-e690ea09f7ef22079246f00360cccf109452deda.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
Diffstat (limited to 'sql/ha_innodb.cc')
-rw-r--r--sql/ha_innodb.cc4
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%'