From: Philip Jenvey Date: Sun, 26 Jul 2009 23:16:44 +0000 (+0000) Subject: remove unneeded custom ExecutionContext X-Git-Tag: rel_0_6_6~66 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=90643e804775e49faf5b032cb0fcb99eb73c9e3e;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git remove unneeded custom ExecutionContext --- diff --git a/lib/sqlalchemy/dialects/postgresql/zxjdbc.py b/lib/sqlalchemy/dialects/postgresql/zxjdbc.py index 18f07f3b50..b707d2d9eb 100644 --- a/lib/sqlalchemy/dialects/postgresql/zxjdbc.py +++ b/lib/sqlalchemy/dialects/postgresql/zxjdbc.py @@ -6,12 +6,8 @@ JDBC Driver The official Postgresql JDBC driver is at http://jdbc.postgresql.org/. """ -from sqlalchemy.dialects.postgresql.base import PGCompiler, PGDialect from sqlalchemy.connectors.zxJDBC import ZxJDBCConnector -from sqlalchemy.engine import default - -class PostgreSQL_jdbcExecutionContext(default.DefaultExecutionContext): - pass +from sqlalchemy.dialects.postgresql.base import PGCompiler, PGDialect class PostgreSQL_jdbcCompiler(PGCompiler): @@ -19,14 +15,14 @@ class PostgreSQL_jdbcCompiler(PGCompiler): # Don't escape '%' like PGCompiler return text + class PostgreSQL_jdbc(ZxJDBCConnector, PGDialect): - execution_ctx_cls = PostgreSQL_jdbcExecutionContext statement_compiler = PostgreSQL_jdbcCompiler jdbc_db_name = 'postgresql' - jdbc_driver_name = "org.postgresql.Driver" + jdbc_driver_name = 'org.postgresql.Driver' def _get_server_version_info(self, connection): return tuple(int(x) for x in connection.connection.dbversion.split('.')) - + dialect = PostgreSQL_jdbc