Navigation Menu

Skip to content

Commit

Permalink
make buildable with MySQL 5.5.13. fixes #984
Browse files Browse the repository at this point in the history
  • Loading branch information
kou committed Jun 9, 2011
1 parent e0ca429 commit 74c14d8
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
8 changes: 8 additions & 0 deletions ha_mroonga.cc
Expand Up @@ -2787,11 +2787,19 @@ int ha_mroonga::reset()
DBUG_RETURN(0);
}

#if MYSQL_VERSION_ID >= 50513
handler *ha_mroonga::clone(const char *name, MEM_ROOT *mem_root)
{
DBUG_ENTER("ha_mroonga::clone");
DBUG_RETURN(handler::clone(name, mem_root));
}
#else
handler *ha_mroonga::clone(MEM_ROOT *mem_root)
{
DBUG_ENTER("ha_mroonga::clone");
DBUG_RETURN(handler::clone(mem_root));
}
#endif

uint8 ha_mroonga::table_cache_type()
{
Expand Down
4 changes: 4 additions & 0 deletions ha_mroonga.h
Expand Up @@ -173,7 +173,11 @@ class ha_mroonga: public handler

int reset();

#if MYSQL_VERSION_ID >= 50513
handler *clone(const char *name, MEM_ROOT *mem_root);
#else
handler *clone(MEM_ROOT *mem_root);
#endif
uint8 table_cache_type();
int read_multi_range_first(KEY_MULTI_RANGE **found_range_p,
KEY_MULTI_RANGE *ranges,
Expand Down

0 comments on commit 74c14d8

Please sign in to comment.