[Groonga-mysql-commit] mroonga/mroonga at 4024e83 [master] mysql57: follow Diagnostics_area::current_row_for_warning() API change

Zurück zum Archiv-Index

Kouhei Sutou null+****@clear*****
Mon Mar 16 23:13:40 JST 2015


Kouhei Sutou	2015-03-16 23:13:40 +0900 (Mon, 16 Mar 2015)

  New Revision: 4024e83809c40ced58f8de62abd21c33bb341945
  https://github.com/mroonga/mroonga/commit/4024e83809c40ced58f8de62abd21c33bb341945

  Message:
    mysql57: follow Diagnostics_area::current_row_for_warning() API change

  Modified files:
    mrn_mysql_compat.h

  Modified: mrn_mysql_compat.h (+7 -1)
===================================================================
--- mrn_mysql_compat.h    2015-03-16 22:59:29 +0900 (15f8dc3)
+++ mrn_mysql_compat.h    2015-03-16 23:13:40 +0900 (9099251)
@@ -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
-------------- next part --------------
HTML����������������������������...
Download 



More information about the Groonga-mysql-commit mailing list
Zurück zum Archiv-Index