summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAmjith Ramanujam <amjith.r@gmail.com>2015-03-09 23:49:27 -0700
committerAmjith Ramanujam <amjith.r@gmail.com>2015-03-09 23:49:27 -0700
commitcc41a4ea6caa07b104f8a6e6aebe743ffd8098d9 (patch)
treec8d38f2f0f9822608383418eb5f7bd6e7a6722fb
parent7bb9e51b104af9d8a3b9fd2530637a68cd21cec5 (diff)
Add <null> as a placeholder for missingvalue.
-rwxr-xr-xpgcli/main.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pgcli/main.py b/pgcli/main.py
index eadc5d09..ff4091eb 100755
--- a/pgcli/main.py
+++ b/pgcli/main.py
@@ -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