diff --git a/MySQLdb/MySQLdb/connections.py b/MySQLdb/MySQLdb/connections.py index 19d5489..5f80950 100644 --- a/MySQLdb/MySQLdb/connections.py +++ b/MySQLdb/MySQLdb/connections.py @@ -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. diff --git a/MySQLdb/_mysql.c b/MySQLdb/_mysql.c index 70662b9..b0b47a9 100644 --- a/MySQLdb/_mysql.c +++ b/MySQLdb/_mysql.c @@ -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)