(cur, status)
| 1882 | return data, headers |
| 1883 | |
| 1884 | def format_status(cur, status): |
| 1885 | # redshift does not return rowcount as part of status. |
| 1886 | # See https://github.com/dbcli/pgcli/issues/1320 |
| 1887 | if cur and hasattr(cur, "rowcount") and cur.rowcount is not None: |
| 1888 | if status and not status.endswith(str(cur.rowcount)): |
| 1889 | status += " %s" % cur.rowcount |
| 1890 | return status |
| 1891 | |
| 1892 | output_kwargs = { |
| 1893 | "sep_title": "RECORD {n}", |