summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/databases/mysql.py
diff options
context:
space:
mode:
authorJason Kirtland <jek@discorporate.us>2007-05-25 23:21:12 +0000
committerJason Kirtland <jek@discorporate.us>2007-05-25 23:21:12 +0000
commit8f59ea5a096257272d78eb6ca24885a87226db18 (patch)
treed790837d39ad21f3a40f9da601402cacd7963664 /lib/sqlalchemy/databases/mysql.py
parent24c20b014663123fbae487dd2be0e6fc43539685 (diff)
downloadsqlalchemy-8f59ea5a096257272d78eb6ca24885a87226db18.tar.gz
- Micro-documentation for why we set FOUND_ROWS flag (supports_sane_rowcount)
Diffstat (limited to 'lib/sqlalchemy/databases/mysql.py')
-rw-r--r--lib/sqlalchemy/databases/mysql.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/sqlalchemy/databases/mysql.py b/lib/sqlalchemy/databases/mysql.py
index 0fe5489fc..2fd8ca4a5 100644
--- a/lib/sqlalchemy/databases/mysql.py
+++ b/lib/sqlalchemy/databases/mysql.py
@@ -985,6 +985,8 @@ class MySQLDialect(ansisql.ANSIDialect):
if len(ssl):
opts['ssl'] = ssl
+ # FOUND_ROWS must be set in CLIENT_FLAGS for to enable
+ # supports_sane_rowcount.
client_flag = opts.get('client_flag', 0)
if self.dbapi is not None:
try: