]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
oursql doesn't need the warnings propagate flag
authorMike Bayer <mike_mp@zzzcomputing.com>
Fri, 29 Jan 2010 20:21:47 +0000 (20:21 +0000)
committerMike Bayer <mike_mp@zzzcomputing.com>
Fri, 29 Jan 2010 20:21:47 +0000 (20:21 +0000)
lib/sqlalchemy/dialects/mysql/oursql.py

index dc1310db7e61caaa03c1232ad2dbfad31696ef2a..a03aa988eb9392ca4d063ba471f35b300561a9e3 100644 (file)
@@ -147,9 +147,8 @@ class MySQL_oursql(MySQLDialect):
 
         # FOUND_ROWS must be set in CLIENT_FLAGS to enable
         # supports_sane_rowcount.
-        opts['found_rows'] = True
-        # And sqlalchemy assumes that you get an exception when mysql reports a warning.
-        opts['raise_on_warnings'] = True
+        opts.setdefault('found_rows', True)
+
         return [[], opts]
     
     def _get_server_version_info(self, connection):