]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
remove unneeded custom ExecutionContext
authorPhilip Jenvey <pjenvey@underboss.org>
Sun, 26 Jul 2009 23:16:44 +0000 (23:16 +0000)
committerPhilip Jenvey <pjenvey@underboss.org>
Sun, 26 Jul 2009 23:16:44 +0000 (23:16 +0000)
lib/sqlalchemy/dialects/postgresql/zxjdbc.py

index 18f07f3b50af82c3455b9dc8f5e11f7dcf75ad80..b707d2d9eb92ed4cb57422f3a1a5dcb2650a405f 100644 (file)
@@ -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