Navigation Menu

Skip to content

Commit

Permalink
mysql57: follow SELECT_LEX::where API change
Browse files Browse the repository at this point in the history
  • Loading branch information
kou committed Mar 16, 2015
1 parent 57821b5 commit f7e1599
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion ha_mroonga.cpp
Expand Up @@ -205,6 +205,14 @@ static mysql_mutex_t *mrn_LOCK_open;
calculate_key_len(table, key_index, buffer, keypart_map)
#endif

#if MYSQL_VERSION_ID >= 50706 && !defined(MRN_MARIADB_P)
# define MRN_SELECT_LEX_GET_WHERE_COND(select_lex) \
(select_lex)->where_cond()
#else
# define MRN_SELECT_LEX_GET_WHERE_COND(select_lex) \
(select_lex)->where
#endif

Rpl_filter *mrn_binlog_filter;
Time_zone *mrn_my_tz_UTC;
#ifdef MRN_HAVE_TABLE_DEF_CACHE
Expand Down Expand Up @@ -7754,7 +7762,8 @@ void ha_mroonga::generic_ft_init_ext_add_conditions_fast_order_limit(
{
MRN_DBUG_ENTER_METHOD();

Item *where = table->pos_in_table_list->select_lex->where;
Item *where =
MRN_SELECT_LEX_GET_WHERE_COND(table->pos_in_table_list->select_lex);

bool is_storage_mode = !(share->wrapper_mode);
mrn::ConditionConverter converter(info->ctx, grn_table, is_storage_mode);
Expand Down

0 comments on commit f7e1599

Please sign in to comment.