diff options
author | unknown <tnurnberg@mysql.com/white.intern.koehntopp.de> | 2007-12-03 10:01:56 +0100 |
---|---|---|
committer | unknown <tnurnberg@mysql.com/white.intern.koehntopp.de> | 2007-12-03 10:01:56 +0100 |
commit | 53f7db282dc982e48c0a944e9c3f68ebc3d26db3 (patch) | |
tree | 9dfddae4fce46f28fa673e892155521b2f2966b8 /mysys/my_getopt.c | |
parent | 89a208850a714d5653207cffa2d654e86063a7e7 (diff) | |
download | mariadb-git-53f7db282dc982e48c0a944e9c3f68ebc3d26db3.tar.gz |
Bug#31177: Server variables can't be set to their current values
additional fixes for 64-bit
mysql-test/t/variables.test:
replace 32-bit and 64-bit values
mysys/my_getopt.c:
'mod' no longer used.
on 64-bit, limit to (signed) (LONG)LONG_MAX to prevent badness
in classes using longlong.
Diffstat (limited to 'mysys/my_getopt.c')
-rw-r--r-- | mysys/my_getopt.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/mysys/my_getopt.c b/mysys/my_getopt.c index f41e8166876..9174d91dce7 100644 --- a/mysys/my_getopt.c +++ b/mysys/my_getopt.c @@ -799,7 +799,7 @@ ulonglong getopt_ull_limit_value(ulonglong num, const struct my_option *optp, bool *fix) { bool adjusted= FALSE; - ulonglong old= num, mod; + ulonglong old= num; char buf1[255], buf2[255]; if ((ulonglong) num > (ulonglong) optp->max_value && @@ -824,6 +824,8 @@ ulonglong getopt_ull_limit_value(ulonglong num, const struct my_option *optp, num= ((ulonglong) ULONG_MAX); adjusted= TRUE; } +#else + num= min(num, LONG_MAX); #endif break; default: |