Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 0ec68a0

Browse files
committed
Make \watch respect the user's \pset null setting.
Previously \watch always ignored the user's \pset null setting. \pset null setting should be ignored for \d and similar queries. For those, the code can reasonably have an opinion about what the presentation should be like, since it knows what SQL query it's issuing. This argument surely doesn't apply to \watch, so this commit makes \watch use the user's \pset null setting. Back-patch to 9.3 where \watch was added.
1 parent 6e9d43e commit 0ec68a0

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/bin/psql/command.c

-1
Original file line numberDiff line numberDiff line change
@@ -2754,7 +2754,6 @@ do_watch(PQExpBuffer query_buf, long sleep)
27542754
* Set up rendering options, in particular, disable the pager, because
27552755
* nobody wants to be prompted while watching the output of 'watch'.
27562756
*/
2757-
myopt.nullPrint = NULL;
27582757
myopt.topt.pager = 0;
27592758

27602759
for (;;)

0 commit comments

Comments
 (0)