From f78951aa3c9cfdc298795f61ebfea91ca3bbe2de Mon Sep 17 00:00:00 2001 From: unknown Date: Thu, 26 Sep 2002 21:21:44 +0300 Subject: [PATCH] ha_innodb.h: Put the flag HA_NOT_READ_PREFIX_LAST back to index_flags: seems to fix also the LIKE ... DESC bug sql/ha_innodb.h: Put the flag HA_NOT_READ_PREFIX_LAST back to index_flags: seems to fix also the LIKE ... DESC bug --- sql/ha_innodb.h | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/sql/ha_innodb.h b/sql/ha_innodb.h index fad585433d7..357fb31b5e3 100644 --- a/sql/ha_innodb.h +++ b/sql/ha_innodb.h @@ -81,10 +81,6 @@ class ha_innobase: public handler HA_NO_WRITE_DELAYED | HA_PRIMARY_KEY_IN_READ_INDEX | HA_DROP_BEFORE_CREATE | - /* We should also list HA_NOT_READ_PREFIX_LAST - here but it currently seems to break ORDER BY; - until release 4.0.5 some LIKE 'abc%' ... DESC - queries will not work correctly */ HA_NO_PREFIX_CHAR_KEYS | HA_TABLE_SCAN_ON_INDEX), last_dup_key((uint) -1), @@ -100,7 +96,7 @@ class ha_innobase: public handler ulong index_flags(uint idx) const { return (HA_READ_NEXT | HA_READ_PREV | HA_READ_ORDER | - HA_KEY_READ_ONLY); + HA_KEY_READ_ONLY | HA_NOT_READ_PREFIX_LAST); } uint max_record_length() const { return HA_MAX_REC_LENGTH; } uint max_keys() const { return MAX_KEY; }