diff options
| author | Mike Bayer <mike_mp@zzzcomputing.com> | 2010-03-14 19:31:30 -0400 |
|---|---|---|
| committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2010-03-14 19:31:30 -0400 |
| commit | 9b597425c9e66d1c3ceada5f4e1bb6014f6de2c8 (patch) | |
| tree | 39261850f16da321262548cf79fafba0620dcd5a /lib/sqlalchemy/dialects/postgresql/pg8000.py | |
| parent | 127c02747c519c8e487a01c55a1b407c7e00ede1 (diff) | |
| download | sqlalchemy-9b597425c9e66d1c3ceada5f4e1bb6014f6de2c8.tar.gz | |
- name all the "sub" dialect components <DB><component>_<dialectname>, [ticket:1738]
Diffstat (limited to 'lib/sqlalchemy/dialects/postgresql/pg8000.py')
| -rw-r--r-- | lib/sqlalchemy/dialects/postgresql/pg8000.py | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/lib/sqlalchemy/dialects/postgresql/pg8000.py b/lib/sqlalchemy/dialects/postgresql/pg8000.py index 079b05530..9824ab104 100644 --- a/lib/sqlalchemy/dialects/postgresql/pg8000.py +++ b/lib/sqlalchemy/dialects/postgresql/pg8000.py @@ -50,11 +50,11 @@ class _PGNumeric(sqltypes.Numeric): else: raise exc.InvalidRequestError("Unknown PG numeric type: %d" % coltype) -class PostgreSQL_pg8000ExecutionContext(PGExecutionContext): +class PGExecutionContext_pg8000(PGExecutionContext): pass -class PostgreSQL_pg8000Compiler(PGCompiler): +class PGCompiler_pg8000(PGCompiler): def visit_mod(self, binary, **kw): return self.process(binary.left) + " %% " + self.process(binary.right) @@ -65,13 +65,13 @@ class PostgreSQL_pg8000Compiler(PGCompiler): return text.replace('%', '%%') -class PostgreSQL_pg8000IdentifierPreparer(PGIdentifierPreparer): +class PGIdentifierPreparer_pg8000(PGIdentifierPreparer): def _escape_identifier(self, value): value = value.replace(self.escape_quote, self.escape_to_quote) return value.replace('%', '%%') -class PostgreSQL_pg8000(PGDialect): +class PGDialect_pg8000(PGDialect): driver = 'pg8000' supports_unicode_statements = True @@ -80,9 +80,9 @@ class PostgreSQL_pg8000(PGDialect): default_paramstyle = 'format' supports_sane_multi_rowcount = False - execution_ctx_cls = PostgreSQL_pg8000ExecutionContext - statement_compiler = PostgreSQL_pg8000Compiler - preparer = PostgreSQL_pg8000IdentifierPreparer + execution_ctx_cls = PGExecutionContext_pg8000 + statement_compiler = PGCompiler_pg8000 + preparer = PGIdentifierPreparer_pg8000 colspecs = util.update_copy( PGDialect.colspecs, @@ -105,4 +105,4 @@ class PostgreSQL_pg8000(PGDialect): def is_disconnect(self, e): return "connection is closed" in str(e) -dialect = PostgreSQL_pg8000 +dialect = PGDialect_pg8000 |
