]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
- mention that FOUND_ROWS is hardcoded; fixes #3146
authorMike Bayer <mike_mp@zzzcomputing.com>
Mon, 25 Aug 2014 21:06:28 +0000 (17:06 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Mon, 25 Aug 2014 21:15:16 +0000 (17:15 -0400)
lib/sqlalchemy/dialects/mysql/base.py

index 37496076596ea08cd6d17fd1d01772cc4bf55ac2..012d178e7bf08d2ee577be3f0b6cc2a87d4a0f89 100644 (file)
@@ -190,15 +190,13 @@ SQLAlchemy standardizes the DBAPI ``cursor.rowcount`` attribute to be the
 usual definition of "number of rows matched by an UPDATE or DELETE" statement.
 This is in contradiction to the default setting on most MySQL DBAPI drivers,
 which is "number of rows actually modified/deleted".  For this reason, the
-SQLAlchemy MySQL dialects always set the ``constants.CLIENT.FOUND_ROWS`` flag,
-or whatever is equivalent for the DBAPI in use, on connect, unless the flag
-value is overridden using DBAPI-specific options
-(such as ``client_flag`` for the MySQL-Python driver, ``found_rows`` for the
-OurSQL driver).
+SQLAlchemy MySQL dialects always add the ``constants.CLIENT.FOUND_ROWS``
+flag, or whatever is equivalent for the target dialect, upon connection.
+This setting is currently hardcoded.
 
-See also:
+.. seealso::
 
-:attr:`.ResultProxy.rowcount`
+    :attr:`.ResultProxy.rowcount`
 
 
 CAST Support