pkgsrc/databases/mysqlcc/patches/patch-af
obache 2f7f7898b9 Update mysqlcc to 1.0.2.
No changelog, but at least, buildable with recent MySQL.

while here:
* removed OpenSSL related stuffs, no reason is found.
* set LICENSE=gnu-gpl-v2 (or later).
* drop needless definitions.
2013-09-17 11:35:47 +00:00

24 lines
1 KiB
Text

$NetBSD: patch-af,v 1.2 2013/09/17 11:35:47 obache Exp $
Use proper max value.
--- src/main.cpp.orig 2013-07-24 13:39:11.000000000 +0000
+++ src/main.cpp
@@ -95,7 +95,7 @@ static struct my_option my_long_options[
0, (void*)1},
{"select_limit", OPT_SELECT_LIMIT, "", (uchar**) &select_limit,
- (uchar**) &select_limit, 0, GET_ULONG, REQUIRED_ARG, 1000L, 1, ~0L, 0, 1, 0},
+ (uchar**) &select_limit, 0, GET_ULONG, REQUIRED_ARG, 1000L, 1, LONG_MAX, 0, 1, 0},
{"net_buffer_length", OPT_NET_BUFFER_LENGTH, "",
(uchar**) &my_net_buffer_length, (uchar**) &my_net_buffer_length, 0, GET_ULONG,
@@ -111,7 +111,7 @@ static struct my_option my_long_options[
(uchar**) &opt_local_infile, 0, GET_BOOL, OPT_ARG, 0, 0, 0, 0, 0, 0},
{"max_join_size", OPT_MAX_JOIN_SIZE, "", (uchar**) &max_join_size,
- (uchar**) &max_join_size, 0, GET_ULONG, REQUIRED_ARG, 1000000L, 1, ~0L, 0, 1,
+ (uchar**) &max_join_size, 0, GET_ULONG, REQUIRED_ARG, 1000000L, 1, LONG_MAX, 0, 1,
0},
{ 0, 0, 0, 0, 0, 0, GET_NO_ARG, NO_ARG, 0, 0, 0, 0, 0, 0}