Skip to content

Commit

Permalink
fix: Add SQLAlchemy 2 support for sql2csv, #1212
Browse files Browse the repository at this point in the history
  • Loading branch information
jpmckinney committed Oct 4, 2023
1 parent e9d6a68 commit 9762f66
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion csvkit/utilities/sql2csv.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ def main(self):

self.input_file.close()

rows = connection.execution_options(no_parameters=True).execute(query)
rows = connection.execution_options(no_parameters=True).exec_driver_sql(query)
output = agate.csv.writer(self.output_file, **self.writer_kwargs)

if rows.returns_rows:
Expand Down

0 comments on commit 9762f66

Please sign in to comment.