[Groonga-mysql-commit] mroonga/mroonga at ce6f7fe [master] mysql57: use UINT_MAX64

Back to archive index

Kouhei Sutou null+****@clear*****
Tue Mar 17 21:08:31 JST 2015


Kouhei Sutou	2015-03-17 21:08:31 +0900 (Tue, 17 Mar 2015)

  New Revision: ce6f7fec2e3c1da531b94b38653a049e7bb7b409
  https://github.com/mroonga/mroonga/commit/ce6f7fec2e3c1da531b94b38653a049e7bb7b409

  Message:
    mysql57: use UINT_MAX64

  Modified files:
    ha_mroonga.cpp
    mrn_mysql_compat.h

  Modified: ha_mroonga.cpp (+1 -1)
===================================================================
--- ha_mroonga.cpp    2015-03-17 00:10:40 +0900 (7e0269f)
+++ ha_mroonga.cpp    2015-03-17 21:08:31 +0900 (726943e)
@@ -14827,7 +14827,7 @@ void ha_mroonga::storage_get_auto_increment(ulonglong offset,
       *first_value = long_term_share->auto_inc_value;
       DBUG_PRINT("info", ("mroonga: *first_value(auto_inc_value)=%llu",
         *first_value));
-      *nb_reserved_values = ULONGLONG_MAX;
+      *nb_reserved_values = UINT_MAX64;
     } else {
       handler::get_auto_increment(offset, increment, nb_desired_values,
                                   first_value, nb_reserved_values);

  Modified: mrn_mysql_compat.h (+6 -0)
===================================================================
--- mrn_mysql_compat.h    2015-03-17 00:10:40 +0900 (c1b2b14)
+++ mrn_mysql_compat.h    2015-03-17 21:08:31 +0900 (2d323c6)
@@ -184,4 +184,10 @@
 #  define INT_MAX64 LONGLONG_MAX
 #endif
 
+#ifdef UINT_MAX
+#  define UINT_MAX64 UINT_MAX
+#else
+#  define UINT_MAX64 LONGLONG_MAX
+#endif
+
 #endif /* MRN_MYSQL_COMPAT_H_ */
-------------- next part --------------
HTML����������������������������...
Download 



More information about the Groonga-mysql-commit mailing list
Back to archive index