Skip to content
This repository was archived by the owner on Feb 21, 2020. It is now read-only.

Commit 197776b

Browse files
committed
Override PGDialect initialize
PGDialect initialize sets a number of flags based on Postgres server version, but the Vertica server version doesn't match functionality. Override the PGDialect implementation and set flags compatible with Vertica.
1 parent 5afef6e commit 197776b

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

sqla_vertica_python/vertica_python.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,10 @@ class VerticaDialect(PGDialect):
6060
'MONEY': sqltypes.NUMERIC,
6161
}
6262

63+
# skip all the version-specific stuff in PGDialect's initialize method (Vertica versions don't match feature-wise)
64+
def initialize(self, connection):
65+
super(PGDialect, self).initialize(connection)
66+
self.implicit_returning = False
6367

6468
@classmethod
6569
def dbapi(cls):

0 commit comments

Comments
 (0)