Skip to content
Permalink
Browse files
MDEV-11917 enum/set command-line options aren't respecting max-* sett…
…ings.

my_option strucures for command-line variables should be set properly.
  • Loading branch information
Alexey Botchkov committed Jun 20, 2018
1 parent 621caad commit be9d923
Showing 1 changed file with 4 additions and 0 deletions.
@@ -341,6 +341,8 @@ public:
substitute)
{
option.var_type|= GET_ENUM;
option.min_value= 0;
option.max_value= ULONG_MAX;
global_var(ulong)= def_val;
if ((option.u_max_value= (uchar**)max_var_ptr()))
{
@@ -1349,6 +1351,8 @@ public:
substitute)
{
option.var_type|= GET_SET;
option.min_value= 0;
option.max_value= ~0ULL;
global_var(ulonglong)= def_val;
if ((option.u_max_value= (uchar**)max_var_ptr()))
{

0 comments on commit be9d923

Please sign in to comment.