diff options
author | heikki@hundin.mysql.fi <> | 2003-01-17 15:26:13 +0200 |
---|---|---|
committer | heikki@hundin.mysql.fi <> | 2003-01-17 15:26:13 +0200 |
commit | 7c63696a426613d7bbaf64c173576772ad588297 (patch) | |
tree | 969ba5c560728d6134315b48e58c5459eec08b63 | |
parent | 19e81a98e2d2aebf9796c6c4d733654403b90982 (diff) | |
download | mariadb-git-7c63696a426613d7bbaf64c173576772ad588297.tar.gz |
page0cur.c:
Fix bug in PAGE_CUR_LE_OR_EXTENDS search
-rw-r--r-- | innobase/page/page0cur.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/innobase/page/page0cur.c b/innobase/page/page0cur.c index bb49e9080ce..1ea6e3e3018 100644 --- a/innobase/page/page0cur.c +++ b/innobase/page/page0cur.c @@ -253,7 +253,8 @@ page_cur_search_with_match( up_matched_bytes = cur_matched_bytes; } - } else if ((mode == PAGE_CUR_G) || (mode == PAGE_CUR_LE)) { + } else if (mode == PAGE_CUR_G || mode == PAGE_CUR_LE + || mode == PAGE_CUR_LE_OR_EXTENDS) { low = mid; low_matched_fields = cur_matched_fields; low_matched_bytes = cur_matched_bytes; @@ -308,7 +309,8 @@ page_cur_search_with_match( up_matched_fields = cur_matched_fields; up_matched_bytes = cur_matched_bytes; } - } else if ((mode == PAGE_CUR_G) || (mode == PAGE_CUR_LE)) { + } else if (mode == PAGE_CUR_G || mode == PAGE_CUR_LE + || mode == PAGE_CUR_LE_OR_EXTENDS) { low_rec = mid_rec; low_matched_fields = cur_matched_fields; low_matched_bytes = cur_matched_bytes; |