summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2014-07-09 16:04:07 -0400
committerMike Bayer <mike_mp@zzzcomputing.com>2014-07-09 16:04:07 -0400
commit2b85e80d75f58a7691533a44693378e28ead752c (patch)
treea30099e5221ab4f602705589ac205212617db9a0 /lib
parent04e9a81136902862edfd23d63bfab8dfb0953cc3 (diff)
downloadsqlalchemy-2b85e80d75f58a7691533a44693378e28ead752c.tar.gz
- Changed the default value of "raise_on_warnings" to False for
MySQLconnector. This was set at True for some reason. The "buffered" flag unfortunately must stay at True as MySQLconnector does not allow a cursor to be closed unless all results are fully fetched. fixes #2515 - lots of MySQL tests seemed to not be hitting all backends, so we should be getting some mysqlconnector failures now
Diffstat (limited to 'lib')
-rw-r--r--lib/sqlalchemy/dialects/mysql/mysqlconnector.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/sqlalchemy/dialects/mysql/mysqlconnector.py b/lib/sqlalchemy/dialects/mysql/mysqlconnector.py
index 3536c3ad8..83e731c16 100644
--- a/lib/sqlalchemy/dialects/mysql/mysqlconnector.py
+++ b/lib/sqlalchemy/dialects/mysql/mysqlconnector.py
@@ -87,8 +87,10 @@ class MySQLDialect_mysqlconnector(MySQLDialect):
util.coerce_kw_type(opts, 'buffered', bool)
util.coerce_kw_type(opts, 'raise_on_warnings', bool)
+
+ # unfortunately, MySQL/connector python refuses to release a
+ # cursor without reading fully, so non-buffered isn't an option
opts.setdefault('buffered', True)
- opts.setdefault('raise_on_warnings', True)
# FOUND_ROWS must be set in ClientFlag to enable
# supports_sane_rowcount.