summaryrefslogtreecommitdiff
path: root/sql/ha_innodb.h
diff options
context:
space:
mode:
authorheikki@hundin.mysql.fi <>2002-09-26 21:21:44 +0300
committerheikki@hundin.mysql.fi <>2002-09-26 21:21:44 +0300
commitffdff5f76365b916b4d9b1c7235c153eb0cc061e (patch)
tree38fd855f9a644c5dbeb66d49d71ab3ea0233823e /sql/ha_innodb.h
parent7a7a0ae84295e8d1b454606822536a366fea90ad (diff)
downloadmariadb-git-ffdff5f76365b916b4d9b1c7235c153eb0cc061e.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
Diffstat (limited to 'sql/ha_innodb.h')
-rw-r--r--sql/ha_innodb.h6
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; }