Skip to content

Commit

Permalink
made change to test of str (#4463)
Browse files Browse the repository at this point in the history
* made change to test of str

* changelog update
  • Loading branch information
McKnight-42 authored Dec 13, 2021
1 parent 3fc715f commit 76f7bf9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

### Fixes
- Fix wrong url in the dbt docs overview homepage ([#4442](https://github.com/dbt-labs/dbt-core/pull/4442))
- Fix redefined status param of SQLQueryStatus to typecheck the string which passes on `._message` value of `AdapterResponse` or the `str` value sent by adapter plugin. ([#4463](https://github.com/dbt-labs/dbt-core/pull/4463#issuecomment-990174166))

Contributors:
- [remoyson](https://github.com/remoyson) ([#4442](https://github.com/dbt-labs/dbt-core/pull/4442))
Expand Down
2 changes: 1 addition & 1 deletion core/dbt/adapters/sql/connections.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ def add_query(

fire_event(
SQLQueryStatus(
status=self.get_response(cursor)._message,
status=str(self.get_response(cursor)),
elapsed=round((time.time() - pre), 2)
)
)
Expand Down

0 comments on commit 76f7bf9

Please sign in to comment.