mirror of
https://github.com/MariaDB/server.git
synced 2026-04-24 09:15:30 +02:00
fowwlowup fixes for index_flags()
This commit is contained in:
parent
3b95283baa
commit
7b1b7bc666
6 changed files with 23 additions and 23 deletions
|
|
@ -97,8 +97,7 @@ class ha_berkeley: public handler
|
|||
ulong index_flags(uint idx, uint part) const
|
||||
{
|
||||
ulong flags=HA_READ_NEXT | HA_READ_PREV;
|
||||
if (part == (uint)~0 ||
|
||||
table->key_info[idx].key_part[part].field->key_type() != HA_KEYTYPE_TEXT)
|
||||
if (table->key_info[idx].key_part[part].field->key_type() != HA_KEYTYPE_TEXT)
|
||||
flags|= HA_READ_ORDER | HA_KEYREAD_ONLY | HA_READ_RANGE;
|
||||
return flags;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue