summaryrefslogtreecommitdiff
path: root/myisam/mi_search.c
diff options
context:
space:
mode:
authorserg@serg.mysql.com <>2002-10-25 14:09:47 +0000
committerserg@serg.mysql.com <>2002-10-25 14:09:47 +0000
commitd552ba7d8a75cbaa676b487c240aa745f12906af (patch)
tree924363f29111df2ea0eb851433529662bc1aa664 /myisam/mi_search.c
parent0ca3212a8cc3bafab07556e5dab2294fce17258a (diff)
downloadmariadb-git-d552ba7d8a75cbaa676b487c240aa745f12906af.tar.gz
support for HA_READ_PREFIX_LAST_OR_PREV in headres
full support for HA_READ_PREFIX_LAST_OR_PREV in MyISAM protected by #if NOT_IMPLEMENTED_YET in opt_range.cc as not all table handlers support it
Diffstat (limited to 'myisam/mi_search.c')
-rw-r--r--myisam/mi_search.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/myisam/mi_search.c b/myisam/mi_search.c
index 737bb2fd5d3..8aeccbbf559 100644
--- a/myisam/mi_search.c
+++ b/myisam/mi_search.c
@@ -132,7 +132,7 @@ int _mi_search(register MI_INFO *info, register MI_KEYDEF *keyinfo,
if (_mi_get_prev_key(info,keyinfo, buff, info->lastkey, keypos,
&info->lastkey_length))
goto err;
- if ((nextflag & SEARCH_LAST) &&
+ if (!(nextflag & SEARCH_SMALLER) &&
ha_key_cmp(keyinfo->seg, info->lastkey, key, key_len, SEARCH_FIND,
&not_used))
{