Skip to content

Commit

Permalink
fix bind
Browse files Browse the repository at this point in the history
  • Loading branch information
Mause committed Oct 30, 2023
1 parent eb8404d commit 439503b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions duckdb_engine/tests/test_basic.py
Original file line number Diff line number Diff line change
Expand Up @@ -417,8 +417,8 @@ def test_361(engine: Engine) -> None:
conn.execute(text("create table test (dt date);"))
conn.execute(text("insert into test values ('2022-01-01');"))

metadata = MetaData(engine)
metadata.reflect()
metadata = MetaData()
metadata.reflect(bind=conn)
test = metadata.tables["test"]
part = "year"
date_part = func.date_part(part, test.c.dt)
Expand Down

0 comments on commit 439503b

Please sign in to comment.