Navigation Menu

Skip to content

Commit

Permalink
mysql57: use UINT_MAX64
Browse files Browse the repository at this point in the history
  • Loading branch information
kou committed Mar 17, 2015
1 parent 0beeadd commit ce6f7fe
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion ha_mroonga.cpp
Expand Up @@ -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);
Expand Down
6 changes: 6 additions & 0 deletions mrn_mysql_compat.h
Expand Up @@ -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_ */

0 comments on commit ce6f7fe

Please sign in to comment.