mirror of
https://github.com/PyMySQL/mysqlclient.git
synced 2025-08-16 03:50:43 +08:00
Bug#778822
This commit is contained in:
@ -80,6 +80,7 @@ class Connection(ConnectionBase):
|
||||
unicode objects with this encoding. If set to None, the
|
||||
default encoding is used. If not set at all, character
|
||||
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
|
||||
documentation for the MySQL C API for some hints on what they do.
|
||||
|
@ -410,6 +410,7 @@ _mysql_ConnectionObject_Initialize(
|
||||
"connect_timeout", "compress",
|
||||
"named_pipe", "init_command",
|
||||
"read_default_file", "read_default_group",
|
||||
"client_flag",
|
||||
NULL } ;
|
||||
int connect_timeout = 0;
|
||||
int compress = -1, named_pipe = -1;
|
||||
@ -420,14 +421,15 @@ _mysql_ConnectionObject_Initialize(
|
||||
self->converter = NULL;
|
||||
self->open = 0;
|
||||
check_server_init(-1);
|
||||
if (!PyArg_ParseTupleAndKeywords(args, kwargs, "|ssssisOiiisss:connect",
|
||||
if (!PyArg_ParseTupleAndKeywords(args, kwargs, "|ssssisOiiisssi:connect",
|
||||
kwlist,
|
||||
&host, &user, &passwd, &db,
|
||||
&port, &unix_socket, &conv,
|
||||
&connect_timeout,
|
||||
&compress, &named_pipe,
|
||||
&init_command, &read_default_file,
|
||||
&read_default_group))
|
||||
&read_default_group,
|
||||
&client_flag))
|
||||
return -1;
|
||||
|
||||
if (!conv)
|
||||
|
Reference in New Issue
Block a user