Navigation Menu

Skip to content

Commit

Permalink
mysql57: follow Diagnostics_area::current_row_for_warning() API change
Browse files Browse the repository at this point in the history
  • Loading branch information
kou committed Mar 16, 2015
1 parent 830ce09 commit 4024e83
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion mrn_mysql_compat.h
Expand Up @@ -87,7 +87,13 @@
# define MRN_GET_CURRENT_ROW_FOR_WARNING(thd) thd_get_error_row(thd)
# else
# define MRN_GET_ERROR_MESSAGE current_thd->get_stmt_da()->message()
# define MRN_GET_CURRENT_ROW_FOR_WARNING(thd) thd->get_stmt_da()->current_row_for_warning()
# if MYSQL_VERSION_ID >= 50706
# define MRN_GET_CURRENT_ROW_FOR_WARNING(thd) \
thd->get_stmt_da()->current_row_for_condition()
# else
# define MRN_GET_CURRENT_ROW_FOR_WARNING(thd) \
thd->get_stmt_da()->current_row_for_warning()
# endif
# endif
#else
# if MYSQL_VERSION_ID >= 50500
Expand Down

0 comments on commit 4024e83

Please sign in to comment.