Skip to content
  • Georgi Kodinov's avatar
    3d8b4570
    Bug #16102788: INDETERMINATE BEHAVIOR DUE TO EMPTY OPTION VALUES · 3d8b4570
    Georgi Kodinov authored
    Currently mysql programs silently accept empty strings as option values,
    e.g. "--port=" will work the same as "--port=0" and -P "" will work the same as
    -P 0.
    This is unintuitive and can cause a lot of confusion.
    Fixed the options collection code to throw an error if the explicit argument to 
    an numeric or enum option is empty string.
    
    Test case added.
    3d8b4570
    Bug #16102788: INDETERMINATE BEHAVIOR DUE TO EMPTY OPTION VALUES
    Georgi Kodinov authored
    Currently mysql programs silently accept empty strings as option values,
    e.g. "--port=" will work the same as "--port=0" and -P "" will work the same as
    -P 0.
    This is unintuitive and can cause a lot of confusion.
    Fixed the options collection code to throw an error if the explicit argument to 
    an numeric or enum option is empty string.
    
    Test case added.
Loading