Skip to content

Commit

Permalink
feat(python): Try to support native SAP HANA driver via `read_databas…
Browse files Browse the repository at this point in the history
…e` (#19733)
  • Loading branch information
alexander-beedie authored Nov 12, 2024
1 parent 017508b commit 260e8e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion py-polars/polars/io/database/_executor.py
Original file line number Diff line number Diff line change
Expand Up @@ -511,7 +511,7 @@ def execute(
result = cursor_execute(query, *positional_options)

# note: some cursors execute in-place, some access results via a property
result = self.cursor if result is None else result
result = self.cursor if (result is None or result is True) else result
if self.driver_name == "duckdb":
result = result.cursor

Expand Down

0 comments on commit 260e8e2

Please sign in to comment.