From: Mike Bayer Date: Wed, 10 Oct 2012 17:15:16 +0000 (-0400) Subject: - [feature] Added "read_timeout" flag to MySQLdb X-Git-Tag: rel_0_8_0b1~67 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ec538d355562d448bb9981d77d1dc6025a6e1f1a;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git - [feature] Added "read_timeout" flag to MySQLdb dialect. [ticket:2554] --- diff --git a/CHANGES b/CHANGES index a89ef55fdd..c36cdd7885 100644 --- a/CHANGES +++ b/CHANGES @@ -828,6 +828,9 @@ are also present in 0.8. - [feature] Added "raise_on_warnings" flag to OurSQL dialect. [ticket:2523] + - [feature] Added "read_timeout" flag to MySQLdb + dialect. [ticket:2554] + 0.7.9 ===== - orm diff --git a/lib/sqlalchemy/connectors/mysqldb.py b/lib/sqlalchemy/connectors/mysqldb.py index 613a8f5b27..4479deafec 100644 --- a/lib/sqlalchemy/connectors/mysqldb.py +++ b/lib/sqlalchemy/connectors/mysqldb.py @@ -63,6 +63,7 @@ class MySQLDBConnector(Connector): util.coerce_kw_type(opts, 'compress', bool) util.coerce_kw_type(opts, 'connect_timeout', int) + util.coerce_kw_type(opts, 'read_timeout', int) util.coerce_kw_type(opts, 'client_flag', int) util.coerce_kw_type(opts, 'local_infile', int) # Note: using either of the below will cause all strings to be returned