mirror of https://github.com/dbcli/pgcli
Merge pull request #1341 from dbcli/fix-csv-status
Show status in csv format.
This commit is contained in:
commit
abc03c509f
|
@ -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)
|
||||
==================
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue