mirror of
https://github.com/dbcli/pgcli
synced 2024-06-24 02:03:20 +00:00
Add <null> as a placeholder for missingvalue.
This commit is contained in:
parent
7bb9e51b10
commit
cc41a4ea6c
|
@ -350,7 +350,7 @@ def format_output(cur, headers, status, table_format):
|
||||||
if is_expanded_output():
|
if is_expanded_output():
|
||||||
output.append(expanded_table(cur, headers))
|
output.append(expanded_table(cur, headers))
|
||||||
else:
|
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.
|
if status: # Only print the status if it's not None.
|
||||||
output.append(status)
|
output.append(status)
|
||||||
return output
|
return output
|
||||||
|
|
Loading…
Reference in New Issue
Block a user