Skip to content

Commit

Permalink
add query commenting back (#537) (#538)
Browse files Browse the repository at this point in the history
(cherry picked from commit 5958da3)

Co-authored-by: Anders <[email protected]>
Co-authored-by: colin-rogers-dbt <[email protected]>
  • Loading branch information
3 people authored Jul 31, 2023
1 parent b76d874 commit 3f16d20
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .changes/unreleased/Fixes-20230713-190412.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
kind: Fixes
body: re-enable query commenting
time: 2023-07-13T19:04:12.580073-04:00
custom:
Author: dataders
Issue: "536"
1 change: 1 addition & 0 deletions dbt/adapters/redshift/connections.py
Original file line number Diff line number Diff line change
Expand Up @@ -337,6 +337,7 @@ def exponential_backoff(attempt: int):
def execute(
self, sql: str, auto_begin: bool = False, fetch: bool = False
) -> Tuple[AdapterResponse, agate.Table]:
sql = self._add_query_comment(sql)
_, cursor = self.add_query(sql, auto_begin)
response = self.get_response(cursor)
if fetch:
Expand Down

0 comments on commit 3f16d20

Please sign in to comment.