diff options
author | unknown <heikki@hundin.mysql.fi> | 2002-09-26 21:21:44 +0300 |
---|---|---|
committer | unknown <heikki@hundin.mysql.fi> | 2002-09-26 21:21:44 +0300 |
commit | f78951aa3c9cfdc298795f61ebfea91ca3bbe2de (patch) | |
tree | 38fd855f9a644c5dbeb66d49d71ab3ea0233823e /sql/ha_innodb.h | |
parent | a703057a92d1f62c7f07c9fdde09ff7fad90c1c3 (diff) | |
download | mariadb-git-f78951aa3c9cfdc298795f61ebfea91ca3bbe2de.tar.gz |
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
Diffstat (limited to 'sql/ha_innodb.h')
-rw-r--r-- | sql/ha_innodb.h | 6 |
1 files changed, 1 insertions, 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; } |