Navigation Menu

Skip to content

Commit

Permalink
mysql5.6: make buidable again
Browse files Browse the repository at this point in the history
  • Loading branch information
kou committed Mar 13, 2012
1 parent 51eb095 commit 1f2774c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ha_mroonga.cc
Expand Up @@ -11665,6 +11665,7 @@ char *ha_mroonga::get_foreign_key_create_info()
DBUG_RETURN(res);
}

#ifdef MRN_HANDLER_HAVE_GET_TABLESPACE_NAME
char *ha_mroonga::wrapper_get_tablespace_name(THD *thd, char *name,
uint name_len)
{
Expand Down Expand Up @@ -11698,6 +11699,7 @@ char *ha_mroonga::get_tablespace_name(THD *thd, char *name, uint name_len)
}
DBUG_RETURN(res);
}
#endif

bool ha_mroonga::wrapper_can_switch_engines()
{
Expand Down
8 changes: 8 additions & 0 deletions ha_mroonga.h
Expand Up @@ -76,6 +76,10 @@ extern "C" {
# define MRN_HANDLER_HAVE_GET_PARENT_FOREIGN_KEY_LIST
#endif

#if (MYSQL_VERSION_ID < 50600)
# define MRN_HANDLER_HAVE_GET_TABLESPACE_NAME 1
#endif

#if MYSQL_VERSION_ID >= 50500
# define MRN_TABLE_LIST_INIT_REQUIRE_ALIAS
#endif
Expand Down Expand Up @@ -415,7 +419,9 @@ class ha_mroonga: public handler
bool primary_key_is_clustered();
bool is_fk_defined_on_table_or_index(uint index);
char *get_foreign_key_create_info();
#ifdef MRN_HANDLER_HAVE_GET_TABLESPACE_NAME
char *get_tablespace_name(THD *thd, char *name, uint name_len);
#endif
bool can_switch_engines();
int get_foreign_key_list(THD *thd, List<FOREIGN_KEY_INFO> *f_key_list);
#ifdef MRN_HANDLER_HAVE_GET_PARENT_FOREIGN_KEY_LIST
Expand Down Expand Up @@ -884,8 +890,10 @@ class ha_mroonga: public handler
bool storage_is_fk_defined_on_table_or_index(uint index);
char *wrapper_get_foreign_key_create_info();
char *storage_get_foreign_key_create_info();
#ifdef MRN_HANDLER_HAVE_GET_TABLESPACE_NAME
char *wrapper_get_tablespace_name(THD *thd, char *name, uint name_len);
char *storage_get_tablespace_name(THD *thd, char *name, uint name_len);
#endif
bool wrapper_can_switch_engines();
bool storage_can_switch_engines();
int wrapper_get_foreign_key_list(THD *thd, List<FOREIGN_KEY_INFO> *f_key_list);
Expand Down

0 comments on commit 1f2774c

Please sign in to comment.