Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
gshank committed Mar 16, 2022
1 parent 5329267 commit 4d762c3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/dbt/adapters/sql/impl.py
Original file line number Diff line number Diff line change
Expand Up @@ -224,10 +224,10 @@ def run_sql_for_tests(self, sql, fetch, conn):
cursor = conn.handle.cursor()
try:
cursor.execute(sql)
if hasattr(conn.handle, 'commit'):
if hasattr(conn.handle, "commit"):
conn.handle.commit()
if fetch == "one":
if hasattr(cursor, 'fetchone'): # for spark
if hasattr(cursor, "fetchone"): # for spark
return cursor.fetchone()
else:
# for spark
Expand Down

0 comments on commit 4d762c3

Please sign in to comment.