Navigation Menu

Skip to content

Commit

Permalink
mariadb10.2: follow ORDER::direction API change
Browse files Browse the repository at this point in the history
  • Loading branch information
kou committed Apr 19, 2016
1 parent 55f628b commit 4c9f912
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions ha_mroonga.cpp
Expand Up @@ -145,10 +145,18 @@ static mysql_mutex_t *mrn_LOCK_open;
# define MRN_NEED_M_LOCK_TYPE_CHECK_FOR_WRAPPER_EXTERNAL_LOCK
#endif

#if MYSQL_VERSION_ID >= 50603 && !defined(MRN_MARIADB_P)
# define MRN_ORDER_IS_ASC(order) ((order)->direction == ORDER::ORDER_ASC)
#ifdef MRN_MARIADB_P
# if MYSQL_VERSION_ID >= 100200
# define MRN_ORDER_IS_ASC(order) ((order)->direction == ORDER::ORDER_ASC)
# else
# define MRN_ORDER_IS_ASC(order) ((order)->asc)
# endif
#else
# define MRN_ORDER_IS_ASC(order) ((order)->asc)
# if MYSQL_VERSION_ID >= 50603
# define MRN_ORDER_IS_ASC(order) ((order)->direction == ORDER::ORDER_ASC)
# else
# define MRN_ORDER_IS_ASC(order) ((order)->asc)
# endif
#endif

#define MRN_STRINGIFY(macro_or_string) MRN_STRINGIFY_ARG(macro_or_string)
Expand Down

0 comments on commit 4c9f912

Please sign in to comment.