From f749357a210a7228c9ea4d072abd2135fdf9ff1e Mon Sep 17 00:00:00 2001 From: "heikki@hundin.mysql.fi" <> Date: Tue, 18 Feb 2003 20:36:16 +0200 Subject: [PATCH] ha_innodb.cc: InnoDB maps HA_READ_PREFIX_LAST_OR_PREV to PAGE_CUR_LE, but note that only complete-field prefixes of the kay value can be used as the search key --- sql/ha_innodb.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/sql/ha_innodb.cc b/sql/ha_innodb.cc index a037c6989aa..86c56a81b4d 100644 --- a/sql/ha_innodb.cc +++ b/sql/ha_innodb.cc @@ -2293,6 +2293,7 @@ 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); + case HA_READ_PREFIX_LAST_OR_PREV: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 tuple. I.e., it is not allowed that the last field would