diff options
Diffstat (limited to 'lib/sqlalchemy/dialects/postgresql/pypostgresql.py')
-rw-r--r-- | lib/sqlalchemy/dialects/postgresql/pypostgresql.py | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/lib/sqlalchemy/dialects/postgresql/pypostgresql.py b/lib/sqlalchemy/dialects/postgresql/pypostgresql.py index d5ee05f9f..87582a6cd 100644 --- a/lib/sqlalchemy/dialects/postgresql/pypostgresql.py +++ b/lib/sqlalchemy/dialects/postgresql/pypostgresql.py @@ -31,18 +31,15 @@ class PostgreSQL_pypostgresql(PGDialect): driver = 'pypostgresql' supports_unicode_statements = True - supports_unicode_binds = True description_encoding = None - - default_paramstyle = 'format' - + default_paramstyle = 'pyformat' + # 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 - + execution_ctx_cls = PostgreSQL_pypostgresqlExecutionContext colspecs = util.update_copy( PGDialect.colspecs, @@ -51,7 +48,7 @@ class PostgreSQL_pypostgresql(PGDialect): sqltypes.Float: sqltypes.Float, # prevents PGNumeric from being used } ) - + @classmethod def dbapi(cls): from postgresql.driver import dbapi20 |