Skip to content

Commit

Permalink
fix: update constant
Browse files Browse the repository at this point in the history
  • Loading branch information
Mause committed Dec 5, 2023
1 parent edeeae8 commit ec61da2
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion duckdb_engine/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,11 @@ def execute(
try:
if statement.lower() == "commit": # this is largely for ipython-sql
self.__c.commit()
elif statement.lower() in ("register", "register(?, ?)"):
elif statement.lower() in (
"register",
"register(?, ?)",
"register($1, $2)",
):
assert parameters and len(parameters) == 2, parameters
view_name, df = parameters
self.__c.register(view_name, df)
Expand Down

0 comments on commit ec61da2

Please sign in to comment.