Navigation Menu

Skip to content

Commit

Permalink
[mysql-5.6] use handler::ha_index_next_same(). refs #1046
Browse files Browse the repository at this point in the history
  • Loading branch information
kou committed Aug 12, 2011
1 parent 7a88af4 commit a175922
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ha_mroonga.cc
Expand Up @@ -3996,7 +3996,11 @@ int ha_mroonga::wrapper_index_next_same(uchar *buf, const uchar *key,
MRN_SET_WRAP_TABLE_KEY(this, table);
if (fulltext_searching)
set_pk_bitmap();
#ifdef MRN_HANDLER_HAVE_HA_INDEX_NEXT_SAME
error = wrap_handler->ha_index_next_same(buf, key, keylen);
#else
error = wrap_handler->index_next_same(buf, key, keylen);
#endif
MRN_SET_BASE_SHARE_KEY(share, table->s);
MRN_SET_BASE_TABLE_KEY(this, table);
DBUG_RETURN(error);
Expand Down
1 change: 1 addition & 0 deletions ha_mroonga.h
Expand Up @@ -46,6 +46,7 @@ extern "C" {
# define MRN_HANDLER_HAVE_HA_INDEX_PREV 1
# define MRN_HANDLER_HAVE_HA_INDEX_FIRST 1
# define MRN_HANDLER_HAVE_HA_INDEX_LAST 1
# define MRN_HANDLER_HAVE_HA_INDEX_NEXT_SAME 1

# define MRN_HANDLER_HAVE_MULTI_RANGE_READ 1
#endif
Expand Down

0 comments on commit a175922

Please sign in to comment.