Skip to content

Commit

Permalink
add query commenting back (#537)
Browse files Browse the repository at this point in the history
(cherry picked from commit 5958da3)
  • Loading branch information
dataders authored and github-actions[bot] committed Jul 14, 2023
1 parent 26f0c99 commit abb0ff4
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 abb0ff4

Please sign in to comment.