-
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.
Georgi Kodinov authoredCurrently 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