Skip to content

Commit

Permalink
chore: restore version lookup
Browse files Browse the repository at this point in the history
  • Loading branch information
Mause committed Sep 26, 2023
1 parent 2d76e6a commit 703d2a3
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions duckdb_engine/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -173,8 +173,6 @@ class Dialect(PGDialect_psycopg2):
supports_comments = False
supports_sane_rowcount = False
supports_server_side_cursors = False
supports_native_enum = True
server_version_info = (8, 0)
inspector = DuckDBInspector
# colspecs TODO: remap types to duckdb types
colspecs = util.update_copy(
Expand Down Expand Up @@ -229,7 +227,11 @@ def dbapi(**kwargs: Any) -> Type[DBAPI]:
return DBAPI

def initialize(self, connection: Any) -> None:
pass
super().initialize(connection)
self.supports_native_enum = True

def _get_server_version_info(self, connection: "Connection") -> Tuple[int, int]:
return (8, 0)

def get_default_isolation_level(self, connection: "Connection") -> None:
raise NotImplementedError()
Expand Down

0 comments on commit 703d2a3

Please sign in to comment.