1
0
Fork 0

Merge pull request #1341 from dbcli/fix-csv-status

Show status in csv format.
This commit is contained in:
Amjith Ramanujam 2022-09-02 13:57:11 -07:00 committed by GitHub
commit abc03c509f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 2 deletions

View File

@ -21,6 +21,8 @@ Bug fixes:
----------
* Fix the bug with Redshift not displaying word count in status ([related issue](https://github.com/dbcli/pgcli/issues/1320)).
* Show the error status for CSV output format.
3.4.0 (2022/02/21)
==================

View File

@ -1585,8 +1585,8 @@ def format_output(title, cur, headers, status, settings, explain_mode=False):
output = itertools.chain(output, formatted)
# Only print the status if it's not None and we are not producing CSV
if status and table_format != "csv":
# Only print the status if it's not None
if status:
output = itertools.chain(output, [format_status(cur, status)])
return output