summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/dialects/postgresql/pypostgresql.py
diff options
context:
space:
mode:
authorMichael Trier <mtrier@gmail.com>2010-02-22 21:53:08 +0000
committerMichael Trier <mtrier@gmail.com>2010-02-22 21:53:08 +0000
commit91bca6b4701272257c714bb18b2b14d1264b2ca3 (patch)
treefab8fd41e9bbc25694a862ee5b26bfb146104544 /lib/sqlalchemy/dialects/postgresql/pypostgresql.py
parent4f00f200724815f953a6f8d0527c1c78015afe6f (diff)
downloadsqlalchemy-91bca6b4701272257c714bb18b2b14d1264b2ca3.tar.gz
The py-postgresql dialect now supports sane rowcounts.
Diffstat (limited to 'lib/sqlalchemy/dialects/postgresql/pypostgresql.py')
-rw-r--r--lib/sqlalchemy/dialects/postgresql/pypostgresql.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/sqlalchemy/dialects/postgresql/pypostgresql.py b/lib/sqlalchemy/dialects/postgresql/pypostgresql.py
index 1e401579e..d5ee05f9f 100644
--- a/lib/sqlalchemy/dialects/postgresql/pypostgresql.py
+++ b/lib/sqlalchemy/dialects/postgresql/pypostgresql.py
@@ -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