This commit is contained in:
adustman
2009-03-30 23:01:58 +00:00
parent 91de6b7b70
commit f19386dd83

View File

@ -28,7 +28,8 @@ PERFORMANCE OF THIS SOFTWARE.
#include "pymemcompat.h" #include "pymemcompat.h"
#include "structmember.h" #include "structmember.h"
#if defined(_WIN32) || defined(_WIN64) || defined(__WIN32__) || defined(WIN32) || defined(MS_WIN32) #if defined(MS_WINDOWS)
#include <winsock2.h>
#include <windows.h> #include <windows.h>
#include <config-win.h> #include <config-win.h>
#else #else
@ -480,7 +481,7 @@ _mysql_ConnectionObject_Initialize(
#endif #endif
char *host = NULL, *user = NULL, *passwd = NULL, char *host = NULL, *user = NULL, *passwd = NULL,
*db = NULL, *unix_socket = NULL; *db = NULL, *unix_socket = NULL;
unsigned int port = MYSQL_PORT; unsigned int port = 0;
unsigned int client_flag = 0; unsigned int client_flag = 0;
static char *kwlist[] = { "host", "user", "passwd", "db", "port", static char *kwlist[] = { "host", "user", "passwd", "db", "port",
"unix_socket", "conv", "unix_socket", "conv",
@ -508,7 +509,8 @@ _mysql_ConnectionObject_Initialize(
&init_command, &read_default_file, &init_command, &read_default_file,
&read_default_group, &read_default_group,
&client_flag, &ssl, &client_flag, &ssl,
&local_infile &local_infile /* DO NOT PATCH FOR RECONNECT, IDIOTS
IF YOU DO THIS, I WILL NOT SUPPORT YOUR PACKAGES. */
)) ))
return -1; return -1;