Bug#778822

This commit is contained in:
adustman
2003-09-07 02:25:05 +00:00
parent 2ee619e3b7
commit 2d62b499d4
2 changed files with 5 additions and 2 deletions

View File

@ -80,6 +80,7 @@ class Connection(ConnectionBase):
unicode objects with this encoding. If set to None, the unicode objects with this encoding. If set to None, the
default encoding is used. If not set at all, character default encoding is used. If not set at all, character
columns are returned as normal strings. columns are returned as normal strings.
client_flag -- integer, flags to use or 0 (see MySQL docs or constants/CLIENTS.py)
There are a number of undocumented, non-standard methods. See the There are a number of undocumented, non-standard methods. See the
documentation for the MySQL C API for some hints on what they do. documentation for the MySQL C API for some hints on what they do.

View File

@ -410,6 +410,7 @@ _mysql_ConnectionObject_Initialize(
"connect_timeout", "compress", "connect_timeout", "compress",
"named_pipe", "init_command", "named_pipe", "init_command",
"read_default_file", "read_default_group", "read_default_file", "read_default_group",
"client_flag",
NULL } ; NULL } ;
int connect_timeout = 0; int connect_timeout = 0;
int compress = -1, named_pipe = -1; int compress = -1, named_pipe = -1;
@ -420,14 +421,15 @@ _mysql_ConnectionObject_Initialize(
self->converter = NULL; self->converter = NULL;
self->open = 0; self->open = 0;
check_server_init(-1); check_server_init(-1);
if (!PyArg_ParseTupleAndKeywords(args, kwargs, "|ssssisOiiisss:connect", if (!PyArg_ParseTupleAndKeywords(args, kwargs, "|ssssisOiiisssi:connect",
kwlist, kwlist,
&host, &user, &passwd, &db, &host, &user, &passwd, &db,
&port, &unix_socket, &conv, &port, &unix_socket, &conv,
&connect_timeout, &connect_timeout,
&compress, &named_pipe, &compress, &named_pipe,
&init_command, &read_default_file, &init_command, &read_default_file,
&read_default_group)) &read_default_group,
&client_flag))
return -1; return -1;
if (!conv) if (!conv)