1
0
mirror of https://github.com/dbcli/pgcli synced 2024-06-16 01:42:23 +00:00

Add <null> as a placeholder for missingvalue.

This commit is contained in:
Amjith Ramanujam 2015-03-09 23:49:27 -07:00
parent 7bb9e51b10
commit cc41a4ea6c

View File

@ -350,7 +350,7 @@ def format_output(cur, headers, status, table_format):
if is_expanded_output():
output.append(expanded_table(cur, headers))
else:
output.append(tabulate(cur, headers, tablefmt=table_format))
output.append(tabulate(cur, headers, tablefmt=table_format, missingval='<null>'))
if status: # Only print the status if it's not None.
output.append(status)
return output