Skip to content

Commit abc03c5

Browse files
authored
Merge pull request #1341 from dbcli/fix-csv-status
Show status in csv format.
2 parents f858c4d + 318cdb9 commit abc03c5

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

changelog.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ Bug fixes:
2121
----------
2222

2323
* Fix the bug with Redshift not displaying word count in status ([related issue](https://github.com/dbcli/pgcli/issues/1320)).
24+
* Show the error status for CSV output format.
25+
2426

2527
3.4.0 (2022/02/21)
2628
==================

pgcli/main.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1585,8 +1585,8 @@ def format_status(cur, status):
15851585

15861586
output = itertools.chain(output, formatted)
15871587

1588-
# Only print the status if it's not None and we are not producing CSV
1589-
if status and table_format != "csv":
1588+
# Only print the status if it's not None
1589+
if status:
15901590
output = itertools.chain(output, [format_status(cur, status)])
15911591

15921592
return output

0 commit comments

Comments
 (0)