Skip to content

Commit

Permalink
Merge pull request #278 from Mause/feature/enable-interval-support
Browse files Browse the repository at this point in the history
feat: enable interval support
  • Loading branch information
Mause authored Jun 21, 2022
2 parents cdd1ee8 + 709615d commit 5bfc64a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 1 addition & 0 deletions duckdb_engine/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ class Dialect(postgres_dialect):
# the psycopg2 driver registers a _PGNumeric with custom logic for
# postgres type_codes (such as 701 for float) that duckdb doesn't have
sqltypes.Numeric: sqltypes.Numeric,
sqltypes.Interval: sqltypes.Interval,
},
)

Expand Down
1 change: 0 additions & 1 deletion duckdb_engine/tests/test_basic.py
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,6 @@ def test_description() -> None:
duckdb.connect("").description


@mark.xfail(reason="support not released", raises=RuntimeError)
def test_intervals(session: Session) -> None:
session.add(IntervalModel(field=timedelta(days=1)))
session.commit()
Expand Down

0 comments on commit 5bfc64a

Please sign in to comment.