]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
The py-postgresql dialect now supports sane rowcounts.
authorMichael Trier <mtrier@gmail.com>
Mon, 22 Feb 2010 21:53:08 +0000 (21:53 +0000)
committerMichael Trier <mtrier@gmail.com>
Mon, 22 Feb 2010 21:53:08 +0000 (21:53 +0000)
lib/sqlalchemy/dialects/postgresql/pypostgresql.py

index 1e401579e04b14d4e50f3ae3f19eae3b0712af00..d5ee05f9f53c2d67da649e2d20c0eb70592aa8c0 100644 (file)
@@ -37,7 +37,9 @@ class PostgreSQL_pypostgresql(PGDialect):
     
     default_paramstyle = 'format'
     
-    supports_sane_rowcount = False  # alas....posting a bug now
+    # requires trunk version to support sane rowcounts
+    # TODO: use dbapi version information to set this flag appropariately
+    supports_sane_rowcount = True
     
     supports_sane_multi_rowcount = False