Navigation Menu

Skip to content

Commit

Permalink
mysql57: follow SELECT_LEX::having API change
Browse files Browse the repository at this point in the history
  • Loading branch information
kou committed Mar 16, 2015
1 parent f7e1599 commit c741df9
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions ha_mroonga.cpp
Expand Up @@ -207,10 +207,14 @@ static mysql_mutex_t *mrn_LOCK_open;

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

Rpl_filter *mrn_binlog_filter;
Expand Down Expand Up @@ -9210,7 +9214,7 @@ void ha_mroonga::check_count_skip(key_part_map start_key_part_map,
thd_sql_command(ha_thd()) == SQLCOM_SELECT &&
!select_lex->non_agg_fields.elements &&
!select_lex->group_list.elements &&
!select_lex->having &&
!MRN_SELECT_LEX_GET_HAVING_COND(select_lex) &&
select_lex->table_list.elements == 1
) {
Item *info = (Item *) select_lex->item_list.first_node()->info;
Expand Down

0 comments on commit c741df9

Please sign in to comment.