diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2009-10-15 16:09:59 +0000 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2009-10-15 16:09:59 +0000 |
commit | bc351a2dc423987f05f4bf88db4987be507ee0a1 (patch) | |
tree | 9f6f8c8ab74abfa8d2d03690178693d0412ca462 /lib/sqlalchemy/dialects/postgresql/pypostgresql.py | |
parent | ad89932715193275d37b5e22b830f092e350b1fe (diff) | |
download | sqlalchemy-bc351a2dc423987f05f4bf88db4987be507ee0a1.tar.gz |
- DefaultRunner and subclasses have been removed. The job
of this object has been simplified and moved into
ExecutionContext. Dialects which support sequences should
add a `fire_sequence()` method to their execution context
implementation. [ticket:1566]
Diffstat (limited to 'lib/sqlalchemy/dialects/postgresql/pypostgresql.py')
-rw-r--r-- | lib/sqlalchemy/dialects/postgresql/pypostgresql.py | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/lib/sqlalchemy/dialects/postgresql/pypostgresql.py b/lib/sqlalchemy/dialects/postgresql/pypostgresql.py index 975006d92..517d41aaf 100644 --- a/lib/sqlalchemy/dialects/postgresql/pypostgresql.py +++ b/lib/sqlalchemy/dialects/postgresql/pypostgresql.py @@ -11,7 +11,7 @@ from sqlalchemy.engine import default import decimal from sqlalchemy import util from sqlalchemy import types as sqltypes -from sqlalchemy.dialects.postgresql.base import PGDialect, PGDefaultRunner +from sqlalchemy.dialects.postgresql.base import PGDialect, PGExecutionContext class PGNumeric(sqltypes.Numeric): def bind_processor(self, dialect): @@ -28,13 +28,9 @@ class PGNumeric(sqltypes.Numeric): return value return process -class PostgreSQL_pypostgresqlExecutionContext(default.DefaultExecutionContext): +class PostgreSQL_pypostgresqlExecutionContext(PGExecutionContext): pass -class PostgreSQL_pypostgresqlDefaultRunner(PGDefaultRunner): - def execute_string(self, stmt, params=None): - return PGDefaultRunner.execute_string(self, stmt, params or ()) - class PostgreSQL_pypostgresql(PGDialect): driver = 'pypostgresql' @@ -43,8 +39,6 @@ class PostgreSQL_pypostgresql(PGDialect): supports_unicode_binds = True description_encoding = None - defaultrunner = PostgreSQL_pypostgresqlDefaultRunner - default_paramstyle = 'format' supports_sane_rowcount = False # alas....posting a bug now |